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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Arno4444
New Member

Import folder with long name

Hi,

 

i'm trying to import from folder but i have the error :

 

DataFormat.Error : Le nom de fichier « \\XXX\blablabla\blablabla\blablabla\* » est plus long que la limite maximale définie par le système.
Détails :
\\XXX

 

i have alredy done      Source = Folder.Files(""&Parameter1),

XXX as parameter1 but it still doesn't work 

https://community.fabric.microsoft.com/t5/Desktop/Import-Folder-long-path/m-p/678693

 

can ignore the error ?

 

here is the editor :

 

let
Source = Folder.Files(""&Parameter1),
#"Attributes développé" = Table.ExpandRecordColumn(Source, "Attributes", {"Size"}, {"Attributes.Size"}),
#"Colonnes supprimées" = Table.RemoveColumns(#"Attributes développé",{"Content", "Extension", "Date accessed", "Date modified", "Date created"}),
#"Colonnes renommées" = Table.RenameColumns(#"Colonnes supprimées",{{"Attributes.Size", "Taille"}, {"Folder Path", "Chemin"}, {"Name", "Nom"}}),
#"Valeur remplacée" = Table.ReplaceValue(#"Colonnes renommées",Parameter2,"",Replacer.ReplaceText,{"Chemin"}),
#"Erreurs supprimées" = Table.RemoveRowsWithErrors(#"Valeur remplacée", {"Chemin"}),
#"Lignes triées" = Table.Sort(#"Erreurs supprimées",{{"Chemin", Order.Descending}})
in
#"Lignes triées"

2 REPLIES 2
gnochy
New Member

Thank you for your reply,

 

If I can't rename or move the file, isn't there a way to ignore it. So that I can process the others that are OK ?

 

Best regards,

Arno

v-cgao-msft
Community Support
Community Support

Hi @Arno4444 ,


1. If possible:
Rename the file so that it has a shorter name.
Rename one or more folders that contain the file so that they have shorter names.
Move the file to a folder with a shorter path name.

2. The error you’re encountering is due to the filename being longer than the system-defined maximum limit. This is a common issue in Windows systems where the maximum path length is 260 characters by default. Starting from Windows 10 version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behavior.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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