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

When i open the List Page, the following error came…

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

Stack trace

(C)\Classes\Query\new
(C)\Classes\QueryRun\new
(C)\Classes\SysQueryRun\new - line 6
(C)\Classes\ClassFactory\QueryRunClass - line 5
(C)\Classes\FormDataSource\executeQuery
(C)\Forms\NetAgreementList\Data Sources\NetAgreement_1\Methods\executeQuery - line 3
(C)\Classes\FormRun\run

  • Unable to create queryRun
  • Object ‘QueryRun’ could not be created

How can i solve this issue?

AX 2012 R2
Kernal Version 6.2.3000.110

I believe incompatible code exists in executeQuery method of NetAgreement darasource.
“(C)\Forms\NetAgreementList\Data Sources\NetAgreement_1\Methods\executeQuery - line 3”
If you are a developer, you can find out the cause by examining the code.

Hi Bro,

There is no code in Execute query… i.e not override the executeQuery method.

Make a work around. Compile the form → Save & restore.

Thanks. I tried all those ways. Even though Full CL also completd.

But not yet solved

You said “Full CL also completd.”
does it mean full compilation?
don’t be fatigue to mention more details.
“But not yet solved”. Did you get any errors?
Have you done Compilation & Cil generation?