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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error while importing data from staging table to target tables

(0) ShareShare
ReportReport
Posted on by

i have successfully imported a csv file from my local file system to staging table BUT while importing that staging table to target tables the debugger runs automatically at the below code::

else if (qRun.query().dataSourceName(DMFTargetXML.TargetDataSourceName).findRange(keyIndex.field(k)))
{
childQdb.addRange(keyIndex.field(k)).value(qRun.query().dataSourceName(DMFTargetXML.TargetDataSourceName).findRange(keyIndex.field(k)).value());
}


Error:

Error executing code: QueryBuildDataSource object not initialised.

Stack trace

(C)\Classes\QueryBuildDataSource\findRange
(C)\Classes\DMFEntityWriter\write - line 446
(S)\Classes\DMFEntityWriter\runOnServerWriter - line 47
(C)\Classes\DMFEntityWriter\run - line 113
(C)\Classes\DMFEntityWriter\main - line 24
(C)\Classes\xMenuFunction\run
(C)\Classes\MenuFunction\run - line 85
(C)\Forms\DMFWriteData\Designs\DesignList\DMFEntityWriterBatch\Methods\Clicked - line 23

*This post is locked for comments

I have the same question (0)
  • Ivan (Vanya) Kashperuk Profile Picture
    Microsoft Employee on at

    Please create a support case for this - this looks like a bug at first glance.

    Thanks

  • Sangram Shinde Profile Picture
    2,114 on at

    Hi Rajesh,

    What data you are importing exactly and which entity you are using? Is it a standard data entity or it is customized. Please provide more details.

    Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans