# Cannot save gateway script

**URL:** <https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472>\
**Category:** Ignition\
**Created:** [February 6, 2023, 9:56am UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472 "2023-02-06T09:56:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.parola](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@andrea.parola](https://forum.inductiveautomation.com/u/andrea.parola)\
**Post date:** [February 6, 2023, 9:56am UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472/1 "2023-02-06T09:56:56Z")

</div>

Hello,

I am saving a global script and I am geeting the following error message when saving the project  
GatewayException: Executing INSERT INTO PROJECT\_RESOURCES (PROJECT\_RESOURCES\_ID, ResourceId, ProjectId, Name, Documentation, ModuleId, ResourceType, SerializationVersion, Scope, ParentUUID, Data, LastEdit) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) for [ProjectResourceRecord 8265 NewRecord Dirty1]  
caused by SException$Jdbc: Executing INSERT INTO PROJECT\_RESOURCES (PROJECT\_RESOURCES\_ID, ResourceId, ProjectId, Name, Documentation, ModuleId, ResourceType, SerializationVersion, Scope, ParentUUID, Data, LastEdit) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) for [ProjectResourceRecord 8265 NewRecord Dirty1]

any idea on how to solve it? seems it cannot insert some data into Ignition internal database

many thanks  
Andrea

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [February 6, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472/2 "2023-02-06T14:08:18Z")

</div>

Please use the preformatted text button \</\> for errors and code as it will make it readable for us.

Also, if possible, it would be beneficial to post your code alongside the error. That way we can review the actual code and suggest edits to it.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [February 6, 2023, 4:19pm UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472/3 "2023-02-06T16:19:13Z")

</div>

It would also help to know what version of Ignition you're using. Thanks.

---

<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:** [February 6, 2023, 5:23pm UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472/4 "2023-02-06T17:23:27Z")

</div>

You're probably going to need to contact support. The gateway logs may have more information about the error, and you're likely going to want to update to the latest 7.X release for whatever major version you're on (hopefully 7.9) as soon as possible.

---

<div class="post-metadata">

**Author:** ![andrea.parola](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@andrea.parola](https://forum.inductiveautomation.com/u/andrea.parola)\
**Post date:** [February 6, 2023, 5:37pm UTC](https://forum.inductiveautomation.com/t/cannot-save-gateway-script/69472/5 "2023-02-06T17:37:11Z")

</div>

Well I haven't found any logs, but after 4 hours I tried to reopen the designer, do the same modification (adding one code row on a global script) save and all was working fine, without even restarting Ignition.
