Error executing code: FormRun (data source) has no valid runable code in method ‘new’.

Whenever we tried to edit a workflow (it happened with EVERY workflow, but did not seem to be happening outside of workflow) we would get this error:

“Error executing code: FormRun (data source) has no valid runable code in method ‘new’.”
ErrorExecutingCode
The first thing in this case is ALWAYS to do a compile, cross your fingers, full CIL, restart the compile because the users clobbered it, dance around the moon, incremental CIL, … no, sorry, got carried away.

90% of the time this type of error is because something did not compile. However that was not the case with me. I opened up a support case and insisted to Microsoft that the code was unmodified. However, once they got me to delve into the call stack (thanks to Scott Wright at Microsoft), I see that there WAS a modification – the security development tool!

I removed that tool, went through the checklist, and the users are editing their workflows again. *shakes head*

Next time it would be nice to post a happy post rather than “here are my problems and how I fixed them.” How about AXTech2014?

Happy DAXing!

Unknown's avatar

About janeteblake

My triple passions are Dynamics AX technical, learning, and AI
This entry was posted in AX2012, Bug, Dynamics AX. Bookmark the permalink.

3 Responses to Error executing code: FormRun (data source) has no valid runable code in method ‘new’.

  1. Thanks for sharing. That could take a while to figure out 🙂

    Like

  2. chile's avatar chile says:

    what changes should we be doing in securitydevelopment tool to resolve this error..Please help

    Like

  3. Burcu Ata's avatar Burcu Ata says:

    Please give further information about the solution of the problem.

    Like

Leave a reply to Burcu Ata Cancel reply