I have an automation script that does SetParameters on Buttons.
The process involves first clicking a Confirm Button (Set Parameter) on the Element, followed by a period of .sleep() then clicking the Discovery button (Set Parameter) to repoll data on the Element.
However, I frequently encounter set parameter failures only on the Discovery button. The issue occurs inconsistently, and I haven't been able to determine the cause.
Does anyone know what might be causing this?
SLAutomation Logs:
2025/03/27 09:20:56.929|SLAutomation.exe 10.4.2343.16222|24560|25596|CActionHandler::SetParameter|DBG|-1|(Script SunAutomationScript/1) Set Parameter 10008/8/4/ failed (: 0x80131500)
2025/03/27 09:20:56.930|SLAutomation.exe 10.4.2343.16222|24560|25596|Script|INF|-1|[Skyline] (Script SunAutomationScript) Log Message: "Unable to do set on Discovery Button ID: DiscoveryButton | (Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Set Parameter ('_10008_8':4/) Failed: 0x80004005
at Skyline.DataMiner.Automation.ScriptDummy.SetParameter(Int32 pid, String idx, Object value)
at Skyline.DataMiner.Automation.ScriptDummy.SetParameter(Int32 pid, Object value)
at Skyline.DataMiner.Automation.Element.SetParameter(Int32 pid, Object value)
at SunAutomationScript_1.ToggleInputs.DiscoverServicesAsync(IEngine engine, Element element)"
2025/03/27 09:20:56.931|SLAutomation.exe 10.4.2343.16222|24560|25596|CScriptLoader::ExitNow|DBG|-1|[Skyline] (Script SunAutomationScript) EXIT: "Run|Something went wrong: (Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Set Parameter ('_10008_8':4/) Failed: 0x80004005
at Skyline.DataMiner.Automation.ScriptDummy.SetParameter(Int32 pid, String idx, Object value)
at Skyline.DataMiner.Automation.ScriptDummy.SetParameter(Int32 pid, Object value)
at Skyline.DataMiner.Automation.Element.SetParameter(Int32 pid, Object value)
at SunAutomationScript_1.ToggleInputs.DiscoverServicesAsync(IEngine engine, Element element)
at SunAutomationScript_1.ToggleInputs.TryRetrieveUpdatedServicesTableRows(IEngine engine, Element element, IDmsTable servicesTable, Object[][]& servicesTableRows)
at SunAutomationScript_1.ToggleInputs.RunToggleInputs(IEngine engine, List`1 irdTypeCheckBoxList)
at SunAutomationScript_1.ToggleServicesProcess.ToggleServicesProcessPresenter.ConfirmButton_Pressed(List`1 IrdTypeCheckBoxList)
at SunAutomationScript_1.Script.<>c__DisplayClass1_0.<RunSafe>b__2(Object sender, EventArgs args)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.Button.RaiseResultEvents()
at Skyline.DataMiner.Utils.InteractiveAutomationScript.Dialog.RaiseResultEvents(UIResults uir)
at Skyline.DataMiner.Utils.InteractiveAutomationScript.InteractiveController.Run(Dialog startDialog)
at SunAutomationScript_1.Script.RunSafe(IEngine engine)
at SunAutomationScript_1.Script.Run(IEngine engine)"