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

An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

(0) ShareShare
ReportReport
Posted on by 95

Hi experts,

I have an issue in LedgerJournalReport ( I want To get CompanyLogo In report ) there is no error in RDP Class. But when I referesh the Dataset it gives error in VS.

after refereshing the dataset when i open it in visual studion it gives an error 

Error 1 An exception occurred in the query metadata execution. The exception is Map object not initialized.

Stack trace

(S)\Classes\SrsReportProviderQueryBuilder\addTempDBCursorToQueryRun - line 18
(S)\Classes\SrsReportProviderQueryBuilder\getQueryRun - line 22
(S)\Jobs\
. LedgerJournal.Report [Preview] 0 0

please guide me how to resolve this error 

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

    Hi AXx,

    Do you run the report from code (there is a job line in stack trace)? Have you tried to run it through a menu item?

  • AXx Profile Picture
    95 on at
    RE: An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

    I have tried all these things but no positive result

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

    Hi AXx,

    Here are a couple of points you can try perform to resolve the issue:

    1. Can you compare with an unchanged report version that all parameters under dataset and report node are the same.

    2. Try to re-deploy the report

    3. Try to refresh report server cache (in ax developer workspace you can find it under Tools - Caches menu)

    4. Restart SSRS service

  • AXx Profile Picture
    95 on at
    RE: An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

    just add a new field to the tmpTable

  • Sergei Minozhenko Profile Picture
    23,091 on at
    RE: An exception occurred in the query metadata execution. The exception is Map object not initialized IN AX 2012

    Hi AXx,

    What kind of modifications have you made in RDP class? Did you just add a new field to the temp table and populate it from company info parameters?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,041 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans