When trying to find element Id using the DMS Notify method this error is raised. I've tried researching the error but can't find much on the issue specific to this. Does anyone have any idea what the possible causes of this exception are?
2021/07/29 10:01:37.255|SLManagedScripting.exe|ManagedInterop|ERR|0|33|QA1030|180|Run|Exception thrown: System.Runtime.InteropServices.COMException (0x80040221): Exception from HRESULT: 0x80040221 at Interop.SLDms.DMSClass.Notify(Int32 iType, Int32 iSubType, Object varValue, Object varValue2, Object& pvarValue) at Utilities.FindElementId(String elementName)
Error 0x80040221 is a DataMiner defined error and means SL_INVALID_DATA. This usually gets thrown when the data sent is either incorrect/incomplete or in an unexpected format.
In this case I suspect the Utilities.FindElementId is not sending the data in the correct format, I am unaware of the Utilities class and cithout the code there is not much more information to give.
However do note that skyline recommends using the code class library for these types of call rather than implementing the raw notify.