Issue when opening pleiades product

When opening the product downloaded from Airbus sample imagery website, the following exception is thrown by s2tbx

 java.lang.IllegalStateException: Different data types: bandDataType=11, dataTypeFromMetadata=21.
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.validateMatrix(
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.buildJP2MosaicMatrix(
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.buildMosaicMatrix(
at org.esa.s2tbx.dataio.pleiades.PleiadesProductReader.readProductNodesImpl(
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(
at org.esa.snap.core.dataio.ProductIO.readProduct(
at org.openide.util.RequestProcessor$
at org.netbeans.modules.openide.util.GlobalLookup.execute(
at org.openide.util.lookup.Lookups.executeWith(

[catch] at org.openide.util.RequestProcessor$

Content of the VOL_PHR.xml and the DIM_PHR1B_PMS_201701061026046_ORT_2155287101-001.XML files provided for troubleshooting
VOL_PHR.xml (2.0 KB) DIM_PHR1B_PMS_201701061026046_ORT_2155287101-001.XML (227.6 KB)

I can confirm that the current reader fails to get the image including metadata. Yet, the image itself can be opened

I have the same issue with the following Pleiades product IMG_PHR1A_PMS_201410050834414_ORT_5636687101_R1C1.JP2

I can open it on QGIS but when I try to open the image with SNAP I receive this error

Hello Fabrizio,
It seems related to:

for which 2 tickets were opened:

I remember the error you get, it is corrected now. The data is not correctly written in the medatada (extra spaces that don’t respect the format), this is why SNAP throws an error. The handling was updated in order to ignore the extra spaces.
1 Like

We should wait for the next SNAP’s update to fix it? Because I have just updated my SNAP and when I import that jp2 file I get the error message.

Yes, the issues are corrected and planned for 9.0.0.
We could prepare them for the next minor release if you think they are urgent.