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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    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.

  • Fawad Ahmad Profile Picture
    61 on at

    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
    237,878 Most Valuable Professional on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans