Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Args object not Initialized

(0) ShareShare
ReportReport
Posted on by 125

Hi I am working on a custom form,like below,i want store number lookup multi select and values in drop down should come based on first lookup enum value(Category lookup)

3005.s1.PNG

Below is class declaration

2480.a5.PNG

on forms init method,i write this code

2555.a1.PNG

On modified of first control,i write below code

4621.a2.PNG

but on running form,this error comes up

1050.a3.PNG

Some one tell me how to resolve this error.

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    RE: Args object not Initialized

    I'm glad we've managed to fix the error. Regarding the one, I suggest you use the debugger to see what's going on in code.

  • Faran Baig Profile Picture
    Faran Baig 125 on at
    RE: Args object not Initialized

    By initializing query variable,form opens up,but when i change first lookup,this windows come up

    3513.m_2E00__2E00_.PNG

  • Faran Baig Profile Picture
    Faran Baig 125 on at
    RE: Args object not Initialized

    Sorry i forgot to attach the error message,After pressing okay on stack trace window ,this infolog came

    Yes Martin i tried with initiliazing query variable,but it did not worked for me.

    m_2E00__2E00_.PNG

  • Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    RE: Args object not Initialized

    Your screenshot shows a different error message.

    Have you looked a the 'query' variable, that I mentioned before?

  • Faran Baig Profile Picture
    Faran Baig 125 on at
    RE: Args object not Initialized

    Hi Martin,

    Error says unable to create queryrun  , 'QueryRun' could not be created

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    RE: Args object not Initialized

    I guess you forgot to initialize query variable.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans