09-22-2017 10:27 AM
I'm getting the following error after executing a .NET action step within a sub sequence. I can't figure out. If I step through the .NET code, everything appears fine. If I step through the sequence, everything seems fine until I step out of the sub sequence. I can't figure out what is causing this. I'm using TestStand 2010 SP1. I have reporting disabled. Here is the error message:
Error executing sequence file: A UUT error occurred. Item is locked, protected, or in use and cannot be deleted. Error accessing item 'ResultList'.
I would appreciate any ideas. Thanks.
Solved! Go to Solution.
09-25-2017 09:47 AM
Was this sequence file saved in TestStand 2016 at some point? The 'Not Deletable' flag was added to that property in 2016 to prevent some equally confusing behavior if you accidentally delete that local variable. Unfortunately, this caused a bug if you back-save that file for a previous version because that flag isn't removed. That bug was fixed in 2016 SP1.
Check the flags on Locals.ResultList for "Not Deletable" (right click » Advanced » Edit Flags). If it exists, you'll need to remove it from all subsequences if you want them to run in any version before 2016.
Hope this helps!
Trent
09-25-2017 03:30 PM
That was exactly the issue. I was able to clear the flag and things work fine now. Thank you very much!!!
02-12-2023 07:05 AM
I had the exact same issue today (12 Feb 2023). The solution worked like a charm. Many thanks!