Changing project name breaks dependencies on project library scripts

I have expression tags with the expression, runScript('Name1.Name2', 0, argument). Where Name1 is the name of the project library script and Name2 is the name of the function in that script. I recently updated the name of the project that this is in, now these expression tags are all Error_ExpressionEval.

I tried adding the new project name to the runscript script argument, 'NewName.Name1.Name2', that did not work. The only way I could find to get these tags to evaluate properly was to revert the project name. That makes me think something in the background of Ignition is not being updated when the project name changes.

Are the scripts in an inherited project? I don't know how one goes about changing a project name, but I wonder if doing so causes you to have re-specify what it inherits from...

Expression tags only have access to the gateway scripting project. Is the project you are renaming marked as the gateway scripting project?

3 Likes

It is not an inherited project. To change the name of the project you navigate to Gateway>Config>Projects then click More and Rename.

That was the issue, thank you!