Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

ADLS2 - Warning: Number of columns in source data file does not match the number of attributes

(0) ShareShare
ReportReport
Posted on by 45

Hi Community,

I am facing the following issue: I have a CDM folder in ADLS2 with a "clean" test data table (generated by Power BI dataflow, so the format should be ok).

I can import this datasource using PowerQuery and the ADLS2 connector (CDM) with no problems.

When I import the same CDM folder  connecting directly to the ADLS2 (import method) "Azure data lake storage" it always completes with the following Warning:

"Number of columns in source data file does not match the number of attributes: [n] defined in the source data schema for the entity '[tablename]'.

Any thoughts on this are appreciated.

Thanks!

  • Johannes Wagner Profile Picture
    Johannes Wagner 45 on at
    RE: ADLS2 - Warning: Number of columns in source data file does not match the number of attributes

    Thanks Bill!

    I have checked the schema in all places (ADLS/model.json, CI, PowerQuery) and it is identical everywhere. It is a very simple test table so this can be easily verified.

    And both ADLS and Powerquery read from exactly the same source.

  • Bill Ryan Profile Picture
    Bill Ryan 8 on at
    RE: ADLS2 - Warning: Number of columns in source data file does not match the number of attributes

    My first guess is that it's schema drift if it's CSV but if it's parquet than that's unlikely.  If you look at the Column Count in the Dataflow, can you confirm it's the same number of attributes that are being defined?  It's possilbe that the manifest.json/model.json file didn't get updated at some point, so you can always downloand and check it and modify if you see something else is in there.

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans