web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error executing code: Query (data source) has no valid runable code in method 'new'.

(0) ShareShare
ReportReport
Posted on by 2,050

when i try to open from i'v got this message error

820438.Capture.PNG

*This post is locked for comments

I have the same question (0)
  • mohammed.mqi Profile Picture
    2,050 on at
    RE: Error executing code: Query (data source) has no valid runable code in method 'new'.

    it fix by compile the whole application

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,585 on at
    RE: Error executing code: Query (data source) has no valid runable code in method 'new'.

    Try to debug. You copied this form and there must be methods which are using/referring old form name in code.

    I am sure, debug will help to identify the right place.

  • Verified answer
    Martin Dráb Profile Picture
    236,279 Most Valuable Professional on at
    RE: Error executing code: Query (data source) has no valid runable code in method 'new'.

    What if you compile the whole application?

  • mohammed.mqi Profile Picture
    2,050 on at
    RE: Error executing code: Query (data source) has no valid runable code in method 'new'.

    yes it's copy from another form and i call it by display menu item which have custom query and nd yes it does compile without errors the form showing and appear ok when i call it but stil getting this error

    and now even original form show this error too

  • Martin Dráb Profile Picture
    236,279 Most Valuable Professional on at
    RE: Error executing code: Query (data source) has no valid runable code in method 'new'.

    Please tell us more about the problem. Is it a form you're developing? Does it compile without errors?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans