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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

0

File path too long issue

I am currently coming across an issue of not being able to save a .pbip file because at least one file path exceeds the 256-character limit. I understand that I can try to rename some things to bring everything to under that limit, but there is only so much that can be done when Microsoft/Power BI appends, in this specific case, 17 characters to an image file included in the report.

 

Why does Microsoft/Power BI put such a small limit on file path length while simultaneously adding so many characters to an included file name? How can we best work around these limitations?

Status: Delivered

Hi @mlabrum ,

 

Thanks for reaching out to us.

Unfortunately, this is by design.

When saving as a Power BI Project, the maximum length of the project files path is 260 characters.

For more details, you can read related document: Power BI Desktop projects (PBIP) - Power BI | Microsoft Learn

 

As a workaround, maybe this similar post can help you:

Solved: [DataFormat.Error] The file name is longer than th... - Microsoft Fabric Community

 

Best Regards,
Stephen Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Comments
v-stephen-msft
Community Support
Status changed to: Delivered

Hi @mlabrum ,

 

Thanks for reaching out to us.

Unfortunately, this is by design.

When saving as a Power BI Project, the maximum length of the project files path is 260 characters.

For more details, you can read related document: Power BI Desktop projects (PBIP) - Power BI | Microsoft Learn

 

As a workaround, maybe this similar post can help you:

Solved: [DataFormat.Error] The file name is longer than th... - Microsoft Fabric Community

 

Best Regards,
Stephen Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

mlabrum
Regular Visitor

Hi Stephen,

 

That is unfortunate, and quite poor design (especially when so many of the limited characters are consumed by further poor design from Microsoft). It looks like the documentation also needs to be updated, since I've seen error messages for the path needing to be no more than 248 characters, and the file being no more than 260 characters, but the most recent error message I encountered put the limit at 256:

Error Message:
[file path] is too long. Maximum allowed path length is 256.

 

That possible workaround also does not seem relevant as I'm not attempting to read in data files, I'm attempting to save a file.

mlabrum
Regular Visitor

Quick follow-up: I have seen a lot of search results from people complaining about these small path length limitations, and followed enough links to get to https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation. Is editing the registry as suggested a viable work-around? Is Power BI "long path aware"?