# Script error when running in gateway

**URL:** <https://forum.inductiveautomation.com/t/script-error-when-running-in-gateway/95639>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [September 6, 2024, 2:11pm UTC](https://forum.inductiveautomation.com/t/script-error-when-running-in-gateway/95639 "2024-09-06T14:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 6, 2024, 4:00pm UTC](https://forum.inductiveautomation.com/t/script-error-when-running-in-gateway/95639/7 "2024-09-06T16:00:10Z")

</div>

Please consult this topic to fix your formatting when posting code:

> [@Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831):
>
> This thread is intended as a short help file for all those struggling to post formatted code on the forum. Code block formatting Posting formatted code on the forum (and most others) is as simple as selecting the code and pressing the \</\> button. It works the same as applying Bold or Italic styles to your document. It preserves indentation and applies syntax highlighting. [How to post code] Note that all the \</\> button does is add three backticks ``` on the line before the code block and anot…

As for your actual problem: Ignition by default runs as a "system" service account. This limited privilege account probably doesn't have access to your user folder. If this is a test only scenario, you can change the Ignition service to run as your user - see steps 4 - 9 in this section; ignore the MSSQL related pieces:

> **[Set Up the Service to Use Windows Authentication​ - Connecting to Microsoft SQL...](https://www.docs.inductiveautomation.com/docs/8.1/platform/database-connections/connecting-to-databases/connecting-to-microsoft-sql-server-express#set-up-the-service-to-use-windows-authentication)**
>
> This guide helps you with any difficulties you may have in getting the correct settings and parameters when connecting Ignition to Microsoft SQL Serverv

---

_[View the full topic](https://forum.inductiveautomation.com/t/script-error-when-running-in-gateway/95639)._
