Sen2Cor process error

Traceback (most recent call last):
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 136, in run
if not self.process_10():
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 179, in process_10
if not self.process_20():
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 158, in process_20
return self.process()
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 229, in process
if self.postprocess() == False:
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 311, in postprocess
if not self.tables.exportBandList():
File “C:\Users\USER\Local Settings\Application Data\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_Tables.py”, line 2307, in exportBandList
fn = os.path.basename(self._L2A_Tile_PVI_File)
AttributeError: ‘L2A_Tables’ object has no attribute ‘_L2A_Tile_PVI_File’

thanks

did you check this thread already?

solved, thanks a lot

Hi,today , I have the same problem, can you tell me how to solve it? I am very anxious
Thanks a lot

how did you run sen2cor?

Have you seen this post? Sen2Cor-02.05.05-win64 - AttributeError: 'L2A_Tables' Object has no attribute '_L2A_Tile_PVI_File'

Thank you for your reply!I have seen this post and follow the first step.I don’t specify the ‘–resolution’ field. But the same problem still occurs,I don’t know why.And I found that different errors occur with different years of data.The error screenshot is as follows,I don’t know where it went wrong and how to solve it.I am looking forward to your help.

Progress[%]: 98.16 : PID-7152, L2A_Tables: stop export, elapsed time[s]: 0.047, total: 0:04:55.977000
Syntax error in metadata, see report file for details.
P[arsing error:ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V13.1_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd

[SERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V13.1_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd
chema file: S2-PDGS-TAS-DI-PSD-V13.1_Schema\S2_PDI_Level-2A_Tile_Metadata.xsd[
ERROR] L2A_XmlParse: 121 Details: Element ‘ARCHIVING_TIME’: ‘’ is not a valid value of the atomic type ‘{https://psd-12.sentinel2.eo.esa.int/DICO/12/SY/date_time/}AN_UTC_DATE_TIME’.
D[etails: Element ‘ARCHIVING_TIME’: ‘’ is not a valid value of the atomic type ‘{https://psd-12.sentinel2.eo.esa.int/DICO/12/SY/date_time/}AN_UTC_DATE_TIME’.ERROR] L2A_XmlParse: 121 Details: Element ‘ARCHIVING_TIME’: ‘’ is not a valid value of the atomic type ‘{https://psd-12.sentinel2.eo.esa.int/DICO/12/SY/date_time/}AN_UTC_DATE_TIME’.

Progress[%]: 100.00 : Application terminated successfully.

C:\Users\YJ\Sen2Cor-02.05.05-win64>L2A_Process F:\SLC\S2A_OPER_PRD_MSIL1C_PDMC_20160828T201944_R032_V20160828T025542_20160828T025936.SAFE --resolution=10 --refresh
Operation mode PDGS is not supported for Product version 13.1.
Operation mode will be reset to TOOLBOX.

Sentinel-2 Level 2A Processor (Sen2Cor). Version: 2.5.5, created: 2018.03.19, supporting Level-1C product version <= 14.5 started …
Product version: 13.1. Operation mode: TOOLBOX. Processing baseline: 02.04.
Selected resolution: 10 m.
Progress[]: 0.02 : PID-4516, L2A_ProcessTile: processing with resolution 10 m, elapsed time[s]: 1.050, total: 0:00:01.356000 Progress[]: 0.02 : PID-4516, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.003, total: 0:00:01.359000
Process L2A_ProcessTile-1:
Traceback (most recent call last):
File “C:\Users\YJ\Sen2Cor-02.05.05-win64\lib\multiprocessing\process.py”, line 258, in _bootstrap
self.run()
File “C:\Users\YJ\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 136, in run
if not self.process_10():
File “C:\Users\YJ\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 183, in process_10
return self.process()
File “C:\Users\YJ\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 200, in process
if self.preprocess() == False:
File “C:\Users\YJ\Sen2Cor-02.05.05-win64\Lib\site-packages\sen2cor\L2A_ProcessTile.py”, line 271, in preprocess
dummy = L2A_AtmCorr(self.config, self.logger)
File “L2A_AtmCorr.py”, line 1884, in L2A_AtmCorr.L2A_AtmCorr.init (L2A_AtmCorr.c:50771)
AttributeError: ‘L2A_Config’ object has no attribute ‘sc_lp_blu’

can you please write the name of the image product you wanted to process which caused the “L2A_Tables” error?

Its name is S2A_OPER_PRD_MSIL1C_PDMC_20160828T201944_R032_V20160828T025542_20160828T025936.SAFE

was it downloaded from here? https://scihub.copernicus.eu/dhus/
Because I can’t find it in the archive. If you downloaded it under this address, please give the short product name, something like
S2A_MSIL1C_20190404T101031_N0207_R022_T32UPU_20190404T185546

Thank you for your reply!I am downloading an image on the official website now., then processed it with Sen2cor 2.5.5.Finally, feedback the processing results to you.Please wait a moment,thanks!

Good - sen2cor requires that the naming matches a specific pattern.
Where was your original product from?

USGS.The first data processing was successful.But,when I process with a new image for the second time,it was failed.

good to hear that the copernicus data works. Could you please post the name of the product which failed?

Error is as follows:
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Progress[%]: 100.00 : Application terminated successfully.

The previous tip is that the C drive has insufficient storage space.
The short product name is:S2A_MSIL1C_20160828T025542_N0204_R032_T50SMB_20160828T025936

for me, this product works

Is it uninterrupted, directly to 100%?Or jump directly from a number to 100%,there is a break in the middle,just like this.But I can open it with Snap,I want to know the product that processed with Sen2cor 2.5.5 will have quality problems or not.
Syntax error in metadata, see report file for details.
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 120 Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
[ERROR] L2A_XmlParse: 121 Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Parsing error:
Schema file: S2-PDGS-TAS-DI-PSD-V14.2_Schema\S2_User_Product_Level-2A_Metadata.xsd
Details: Element ‘FORMAT_CORRECTNESS_FLAG’: This element is not expected. Expected is ( SENSOR_QUALITY_FLAG ).
Progress[%]: 100.00 : Application terminated successfully.

it’s not finished yet but currently no signs of an error. I’ll report when it is finished.

I didn’t select any resolution, simply

L2A_Process c:\path\to\data\S2.SAFE

OK, I‘m looking forward to your reply.Thanks!