I am using Sentinel 2 images downloaded from https://scihub.copernicus.eu

Image downloaded as zipped folder has very large file and folder names. Example 'S2A_MSIL1C_20220405T063631_N0400_R120_T40QDG_20220405T073739.SAFE' folder has a file 'MTD_MSIL1C.xml'

When I renamed folder from 'S2A_MSIL1C_20220405T063631_N0400_R120_T40QDG_20220405T073739.SAFE' to 'Img4' the icon of 'MTD_MSIL1C.xml' changed to xml. Now when I add it in ArcMap or ArcGIS Pro it gives me error.

What is the proper way to rename folder?

I even tried updating the XML files replacing the old folder name with new one.

enter image description here

Following is the error I am getting in ArcGIS Pro:

enter image description here

Following error comes when I tried to load from renamed folder in ArcMap:

enter image description here

  • Basically i have to move data to a new location and i am getting errors like large file names, so this is why i am thinking to rename it Apr 18, 2022 at 7:56
  • I think it's just ArcGIS following the spec rigidly. If I rename the folder, QGIS can read it.
    – user2856
    Apr 18, 2022 at 8:07
  • 1
    What is the error that ArcGIS gives you when you try and read it with the shorter folder name?
    – Spacedman
    Apr 18, 2022 at 9:12
  • Updated the question with error images Apr 18, 2022 at 9:46
  • 2
    Error messages should always be included as text in the body of the Question. This makes them legible on all devices and searchable by others with the same problem.
    – Vince
    Apr 18, 2022 at 11:14

1 Answer 1


The folder name appears once in each of the top-level XML files:



It may be that the program detects a mismatch and throws an error in case the data has been misplaced. Try editing the XML files to your new shorter name and see if that works.

The GDAL driver doesn't mention anything about this, but also says you can open the ZIP file itself without having to unzip it, so maybe that works for you.


The gdal command line tools seem okay with renaming the folder, so maybe ArcGIS is being extra vigilant, but I'm surprised it doesn't simply trust GDAL for this.

  • I did that but it is the same, there were four places where old file name was used. UserProduct_index.html, INSPIRE.xml, MTD_MSIL1C.xml, Multispectral_MTD_MSIL1C.afrx.xml (two places) Apr 18, 2022 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.