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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

FetchXML Query Missing Columns with NULL values

(1) ShareShare
ReportReport
Posted on by 10

Hi,

Hope am reaching out to the right corner of Dynamics 365. 

Below is the issue encountered while loading data using Azure Data Factory:

To extract the data from Dynamics 365 source using Azure Data Factory, we are using XML query in ADF which defines only specific set of columns to be pulled from the source. However, it has been noticed that though we define the column names(attribute names), few columns are missing out after the data is loaded into Data Lake file(.csv).

Here is an example for better clarification: Below is the XML query which has 9 columns but only 7 columns are getting extracted, upon checking the data we see the missing columns has large no. of NULL/ALL NULL values in the source. Kindly, please advice if there is any feasible solution to handle such scenarios.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="xts_employee">
<attribute name="createddate" />
<attribute name="modifieddate" />
<attribute name="xts_employeeid" />
<attribute name="xts_businessunitid" />
<attribute name="xts_employeetype" />
<attribute name="xts_status" />
<attribute name="xts_employeeregion" />
<attribute name="xts_joindate" />
<attribute name="xts_resigndate" />
</entity>
</fetch> 

Thanks & Regards,

Pramod.

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at
    RE: FetchXML Query Missing Columns with NULL values

    Hi Partner,

    If the column data is null which means sparse, columns without any value in top rows would be missing. we suggest that you could use explicit column mapping.

    I also find this thread about the same issue for you.

    https://github.com/MicrosoftDocs/azure-docs/issues/21216

    Regards,

    Leo

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans