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!

Advertisements

About janeteblake

Dynamics AX developer
This entry was posted in AX2012, Bug, Dynamics AX. Bookmark the permalink.

2 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 🙂

  2. chile says:

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s