We have a use case for setting parameters on a virtual element created by a redundancy group via automation. This fails with an error (shown below). I created a test script to simplify testing.
When using the test script if I provide the name of the virtual element as param1, i get the error. If I use the main or redundant element name the script runs fine. Is there something more to using a redundancy group in automation?
Test script:
string mcsName = engine.GetScriptParam("param1").Value;
Element mcs = engine.FindElement(mcsName);
string loginStatus = mcs.GetParameter(104).ToString();
Error Returned:
Skyline.DataMiner.Net.Exceptions.DataMinerException: Create Dummy Failed: 0x80004005
at CManagedAutomation.RunWrapped(CManagedAutomation* , Int32 iCookie, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* pvarReturn, String scriptName)
at CManagedAutomation.Run(CManagedAutomation* , Int32 iCookie, Char* bstrScriptName, IUnknown* pIAutomation, tagVARIANT* varParameters, tagVARIANT* varEntryPoint, tagVARIANT* pvarReturn, tagVARIANT* pvarEntryPointResult) (CSharp; 0x80131500h):