Hi all,
i wanted to try to create an interactive automation script using the IAS Toolkit. Unfortunately i ran into an issue where i get the following error when executing the script:
Script 'SES CAS Canal Plus Report Email' failed:
The following was returned from the script:
Interactive UI can only be used when running in interactive mode.
EXIT: "Something went wrong: (Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Show UI Failed: 0x800402F5 (Interactive UI can only be used in interactive mode.
)
at Skyline.DataMiner.Automation.Engine.ShowUI(String uiData, Boolean requireResponse)
at Skyline.DataMiner.Automation.Engine.ShowUI(UIBuilder uiBuilder)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.InteractiveController.Run(Dialog startDialog)
at Script.Run(Engine engine)"
Exception :
Interactive UI can only be used when running in interactive mode.
EXIT: "Something went wrong: (Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Show UI Failed: 0x800402F5 (Interactive UI can only be used in interactive mode.
)
at Skyline.DataMiner.Automation.Engine.ShowUI(String uiData, Boolean requireResponse)
at Skyline.DataMiner.Automation.Engine.ShowUI(UIBuilder uiBuilder)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.InteractiveController.Run(Dialog startDialog)
at Script.Run(Engine engine)"
To make sure i did not make any mistakes i also tried the exact example used in the documentation: Getting started with the IAS Toolkit | DataMiner Docs
But with that example Dataminer is still showing the same error message:
Would really appreciate any input on this.
Thanks in advance!
Hi Manuel,
DataMiner is trying to automatically determine if the script should be an interactive script or not. This is done by searching for "engine.ShowUI".
This would normally be in the code, but with the toolkit, this code is hidden inside the nuget.
Can you try adding this as a comment somewhere in your script:
//engine.ShowUI();
Many thanks for you quick response!!! With the additional comment it is working.
I have created a pull request to add the workaround to the examples:
https://github.com/SkylineCommunications/dataminer-docs/pull/1443
It will be added as soon as our technical writing team had a chance to review it.