Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Krishna09
Helper III
Helper III

Name of 'Attribute' cannot contain leading or trailing blank spaces or consist only of whitespace.

Hello all,

 

I am creating a datflow in dataverse. can anyone explain what this means? how to solve this error.

 

Krishna09_0-1674580258031.png

 

10 REPLIES 10
PhilipTreacy
Super User
Super User

Glad you got it figured out.

 

@dukeofrockville  @Krishna09 

 

Please mark my answer as the correct resolution so that others may benefit from learning how to solve this issue.

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Yes the end and beginning spaces are key and also on one of the columns there was a <cr/lf> character.  The dataflows are able to handle the spaces within the column name but not at the beginning or end or any special characters all of which are usually invisible

@dukeofrockville @Krishna09 

 

Yes that's why I suggested you check for all white space like CR/LF, Tab etc.

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Krishna09
Helper III
Helper III

@dukeofrockville ,

The columns in table have space after the column name. once I removed them, this error was resolved.

dukeofrockville
Frequent Visitor

Dataflow automatically removes spaces but I manually did that too in the power query piece.  Further also added an alternate key.  Tried with a simple Excel file as well.  Nothing works. 

Hi @dukeofrockville 

 

Need to see your data to assist any further.

 

As @Krishna09  confirmed, removing spaces in column names fixed the issue.  You certain you've removed all white space fromt he column names?  Not just the space character (ASCII #32) ?

 

regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy This error has been resolved  for me. Thank you.

PhilipTreacy
Super User
Super User

Hi @Krishna09  @dukeofrockville 

 

Have you got any spaces in your column names?

 

See here Solved: Details: Name of 'CdmModel' cannot contain leading... - Power Platform Community (microsoft....

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thanks @PhilipTreacy  yes there actually blanks at the end of each column name!  Hard to find but resolved by removing them.

dukeofrockville
Frequent Visitor

I am getting the same error message when loading any Excel sheet using DataFlow

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.