I have a driver with a QAction that has the precompile option specified. Some QActions are then importing this QAction.
I have the problem that sometimes when the DataMiner agent starts up, that some QActions can't be executed because the compilation fails due to some missing items. It turns out that this is caused because the missing items are part of the precompile QAction. Investigation shows that the precompiled QAction was not compiled, hence preventing the other QActions that rely on this from executing.
When I restart the element then the precompile QAction gets compiled, and everything works fine again.
I'm wondering if there's a way to call the compilation of the precompile QAction without restarting the element (these are quite heavy loaded elements and it takes a bit to restart) ? Can this be done by some SLNet call? Or should I add a trigger parameter to the driver on such a QAction with an empty Run method (but then code analysis will probably make a notice), or can the Run method be even omitted without further causing issues?
You can force the compilation by having a normal trigger after start up that will end up running your pre compiled QAction, that's normally a good way to debug what is happening since then you have the compilation log (in case of errors) in the element log file.
Maybe it wont fix your issue, but should at least give you more information on what is happening.