• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Archives
  • Findings
  • Videos
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp Dashboards
    • ControlUp for Desktops
    • ControlUp for VDI
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp Workflows
  • Topics
  • Meetups
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Fixing Script Errors in ControlUp Version 8.8

Posted on March 13, 2024

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:


  1. Error type – KeyNotFoundException : The given key was not present in the dictionary.

Stack Trace:


  1. 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
Topics: Citrix, Scripts, Triggers

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp DEX solutions.

Browse here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2026 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..