A user was having trouble with a script on ControlUp version 8.8. The script was supposed to restart Citrix desktop service when a specific user session went from active to disconnected, but it failed with an error involving a missing key in the dictionary. The user discovered it was a bug in the software and was able to fix it by upgrading to version 9.0. The community script used can be found at https://www.controlup.com/script-library-posts/restart-citrix-desktop-service/
Read the entire ‘Fixing Script Errors in ControlUp Version 8.8’ thread below:
Hey Guys, trying to make trigger based off a specific user session to restart citrix desktop service after the user state goes from active to disconnected.
using the community script – https://www.controlup.com/script-library-posts/restart-citrix-desktop-service/
The action to take is set to that restart script and sending me an email. I recieved the email however the script fails with the following error:
Result: Error
Message: The given key was not present in the dictionary.
Exception: Error Description:
- Error type – KeyNotFoundException : The given key was not present in the dictionary.
Stack Trace:
- at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SmartX.ControlUp.Instructions.SBA.SBAStrategyFactory.CreateStrategy(ScriptType type, Boolean useSdk)
at SmartX.ControlUp.Instructions.SBA.SBARunner.StartNew(paAction oAction, Action`1 Update)
Properties:
[exitCode]:
[stdOut]:
[stdErr]: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary….
[failureReason]:
[actionControl]:
[executionStartTime]: 1/1/0001 12:00:00 AM
[executionEndTime]: 1/1/0001 12:00:00 AM
[cu_action_origin]: Automated Actions
Current thought is that the scipt does not know which server to target as the trigger is set to target session. Any ideas on how to get this working?
turns out it was a bug in version 8.8. upgraded to version 9.0 and the trigger ran successfully.
Continue reading and comment on the thread ‘Fixing Script Errors in ControlUp Version 8.8’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers