I am currently getting the following error when trying to run a qaction
The purpose of the qaction is to get a parameter from a remote element and then use that value to set a parameter. It updates on change of an IP parameter and then uses that parameter to look up the remote element. However whenever I add the line with the "GetValue", the qaction fails to execute:
What could be causing this issue? It also fails when I use "GetDisplayValue".
Is it possible the autogenerated code in QAction 63000 was not regenerated and didn’t contain all necessary code from the Code Library you were using in your QActions? Probably DIS rebuilt the QAction 63000 when you did additional changes and this then solved your compilation errors.
It’s possible. I had it set to auto generate though, but maybe there was some bug where it wasn’t able to generate all the necessary code?
That's probably caused by a compilation error in one of the QActions. Would check if the triggered QAction (12050) compiles, and also all precompile QActions that it references. An easy way to verify this, especially on older DataMiner versions that don't show errors in precompile QActions, is to look in the ProtocolScripts folder to see if a DLL exists for all QActions.
Don't think the error is caused the GetError() or GetDisplayValue() method.
Indeed, the qaction is not compiling as I do not find it in the protocolscripts. However, I’m not able to find out why it’s not compiling.
An update to this – the qaction was indeed not compiling. But it randomly started compiling once I added a button to manually trigger it. Do note that I didn’t have to manually trigger the qaction for it to work, it just was a coincidence.
So I’m not exactly sure why it wasn’t compiling, but it’s fixed now! I did end up using the int? instead of the int, but that was not the issue.