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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SharonB
Frequent Visitor

Load error caused by colon

In one of our PowerBI datasets, we import an excel worksheet that has a text column called contract number. It has been working fine until this past week. Suddenly it is not importing. When I reviewed the error message, it says there is a binary error. I've identified the issue as two contract number rows where the contract number starts with a colon. When I remove the colon, the spreadsheet imports fine. I'm not sure why this suddenly started happening, the colons have been there all along. Does anyone have an idea for how to solve for this?

1 ACCEPTED SOLUTION
jaweher899
Super User
Super User

The issue is likely caused by a mismatch between the data type of the column in Power BI and the actual data in the Excel worksheet. The colon (":") in the contract number is most likely causing Power BI to interpret the column as a different data type, leading to the binary error.

A solution to this issue would be to remove the colon from the contract number in the Excel worksheet or to modify the data type of the column in Power BI to match the actual data. This can be done by going to the Power BI Desktop, clicking on the column header, and selecting a new data type from the dropdown menu.

If you're unable to modify the data in the Excel worksheet, you could also try creating a calculated column in Power BI that removes the colon from the contract number before it's imported into the report. This can be done using the DAX formula, such as =SUBSTITUTE(<column name>, ":", "").

It's always important to review the data type of columns in your reports to ensure they match the actual data and prevent errors during the import process.

View solution in original post

3 REPLIES 3
SharonB
Frequent Visitor

Yes, this suggestion resolved the issue.  Another method that seemed to work was to use the Replace Value to replace ":" with "".  Thank you!

SharonB
Frequent Visitor

Hi jaweher899.  Thank you for the quick reply.  I’m not able to remove the colons from the worksheet so I will try your solutions. 

jaweher899
Super User
Super User

The issue is likely caused by a mismatch between the data type of the column in Power BI and the actual data in the Excel worksheet. The colon (":") in the contract number is most likely causing Power BI to interpret the column as a different data type, leading to the binary error.

A solution to this issue would be to remove the colon from the contract number in the Excel worksheet or to modify the data type of the column in Power BI to match the actual data. This can be done by going to the Power BI Desktop, clicking on the column header, and selecting a new data type from the dropdown menu.

If you're unable to modify the data in the Excel worksheet, you could also try creating a calculated column in Power BI that removes the colon from the contract number before it's imported into the report. This can be done using the DAX formula, such as =SUBSTITUTE(<column name>, ":", "").

It's always important to review the data type of columns in your reports to ensure they match the actual data and prevent errors during the import process.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.