Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

QueryBuildDataSource object not initialized. Stack trace --> Error Show in Payment Journal when i want to open Enter Customer Payment Form.

(0) ShareShare
ReportReport
Posted on by 61

1157.Screenshot-_2800_55_2900_.png

I am new Developer in AX2012. I simple Click to Open "Enter Customer Payment " > Form .  Below Error are create  . I can't find out there solution.

QueryBuildDataSource object not initialized.

Stack trace

(C)\Forms\CustPaymEntry\Methods\init - line 109
(C)\Classes\SysSetupFormRun\init - line 3
(C)\Classes\FormFunctionButtonControl\Clicked

  • Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    RE: QueryBuildDataSource object not initialized. Stack trace --> Error Show in Payment Journal when i want to open Enter Customer Payment Form.

    Realize that the problem is caused by a wrong, and that the debugger can show you values of variables, therefore you'll make your debugging if you start paying attention to this information

    If I put a breakpoint at line 112, you'll likely see that qbds contains null. You don't have to continue; it's clear that any attempt to call a method on null will fail.

    When you know what's empty, you can start analyzing why. You're trying to get CustLergerTransTypeMapping data source from the query used for CustTransOpen data source. The fact that you get null means that no such a data source exists. For example, you may have a data source in the form, but it's not joined to CustTransOpen.

  • Fawad Ahmad Profile Picture
    Fawad Ahmad 61 on at
    RE: QueryBuildDataSource object not initialized. Stack trace --> Error Show in Payment Journal when i want to open Enter Customer Payment Form.

    forupload.png

    I initialized QueryBuildDataSource  object  and debug code where qbds object used . when debugger reach on line 112 and jump to 113 then again show me these same error.

  • Martin Dráb Profile Picture
    Martin Dráb 230,458 Most Valuable Professional on at
    RE: QueryBuildDataSource object not initialized. Stack trace --> Error Show in Payment Journal when i want to open Enter Customer Payment Form.

    It seems that a piece of code at line 109 in init() method of CustPaymEntry form is trying to use an QueryBuildDataSource object, but there is no object available - the object reference is empty (null).

    That's already quite a lot of information. You can look at code in init() to see which data source it's trying to use and what code is supposed to set the value. You can also put a breakpoint there to see how it behaves at runtime.

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

Product updates

Dynamics 365 release plans