Forum Discussion

sushiat's avatar
sushiat
Helper I
1 year ago
Solved

Mapping issue with Dataverse FetchXML column missing

We have an issue with a copy activity using a dataverse connection to one of our CRM entities. The table has some 300 columns and 20k rows and I wrote a fetch xml query to retrieve about 20 of those ...
  • v-veshwara-msft's avatar
    1 year ago

    Hi sushiat ,
    Thnaks for using Microsoft Fabric Community,

    Unfortunately, this is a known limitation related to schema inference in Microsoft Fabric (and Azure Data Factory), which can be quite frustrating. The schema inference process typically inspects only a limited number of rows , and if those rows contain only NULL values for certain columns, they may not be included in the inferred schema.

    Reference:

    Troubleshoot the Dynamics 365, Dataverse (Common Data Service), and Dynamics CRM connectors - Azure Data Factory & Azure Synapse | Microsoft Learn

     

    One workaround for this is:

    Add a dummy row with non-NULL values for the missing columns. This ensures that these columns are detected during schema inference. Once the schema is imported and detected, you can remove the dummy row or filter it out.

    Dummy row to detect NULL value Columns 

     

    If you've already attempted Explicit mappings and still faced issues, I recommend the dummy row workaround to get the column into the schema detection process.


    We understand how cumbersome this issue can be, especially when dealing with dynamic or frequently changing data. Please consider creating an idea in the Fabric Ideas portal to request a more flexible schema detection feature that could handle columns with NULL values more gracefully. If it gets more votes then Microsoft may consider this to implement in future.

     

    Hope this helps. Please reach out for further assistance.
    If this post helps, then please consider to Accept it as the solution to help the other members find it more quickly and a kudos would be appreciated.

    Thank you.