Skip to main content What is Dynamics 365? Guided tours Customer stories Try our products CRM ERP Sales Service Sales Customer Insights Customer Service Contact Center Field Service Supply Chain Management Commerce Finance Project Operations Human Resources Business Central Pricing Business application topics Training & certifications Migrate to the cloud Documentation Events Dynamics 365 Blog Product updates Onboarding and implementation Community Find a partner Software Development Companies Partner resources Microsoft Marketplace Product documentation Technical support On-premises product support Contact us Try for free Sign in
  • 1 min read

Error executing code: FormRun (data source) has no valid runable code in method ‘new’ when trying to edit Project workflow


If you go to Project management and accounting > Setup > Project Management and accounting workflow and you select any workflow and hit Edit and you get an error stating

“Error executing code: FormRun (data source) has no valid runnable code in methodnew

Try to to locate the form that is failing to launch in the AOT. In this case it will be ‘WorkFlowEditorHost’. Make a small change to the form, compile it and then delete the change and recompile.

Try now to see if you are able to edit the workflow after this.

 

 

Get started with Dynamics 365

Drive more efficiency, reduce costs, and create a hyperconnected business that links people, data, and processes across your organization—enabling every team to quickly adapt and innovate.