Page 1 of 1
Frustrating bug
Posted: Fri Sep 12, 2014 5:23 pm
by gabrielp
I renamed a property value and now Switch is saying:
"Requested property value is not defined: 'PrivateDataValue1'; trying to use default value"
I renamed PrivateDataValue1 to Value1 and nowhere in my code does it reference PrivateDataValue1.
It runs fine in SwitchScripter but errors out in Switch.
I tried reloading the script, remaking the property values, putting the script in a new flow. I have no idea what is going on here...
Frustrating bug
Posted: Fri Sep 12, 2014 6:26 pm
by dkelly
If you are using Switch 12 you have to restart Switch Server to get it pickup script changes.
Another problem we have discovered in Switch 12 is importing a flow with scripts will use an existing potentially older script if it's in the same location as the system you exported flow from. It creates a new script when you imported it but doesn't automatically reload it so properties and input/output connections may be wrong. Always reload your scripts after importing a flow.
Frustrating bug
Posted: Fri Sep 12, 2014 9:31 pm
by gabrielp
dkelly wrote: If you are using Switch 12 you have to restart Switch Server to get it pickup script changes.
Another problem we have discovered in Switch 12 is importing a flow with scripts will use an existing potentially older script if it's in the same location as the system you exported flow from. It creates a new script when you imported it but doesn't automatically reload it so properties and input/output connections may be wrong. Always reload your scripts after importing a flow.
Thanks man... that was really driving me crazy!
Re: Frustrating bug
Posted: Fri Sep 09, 2016 5:56 pm
by gabrielp
I still run into this all the time and its very frustrating. We have to restart our entire production Switch server to load in a small script change.