Sen2cor 2.11 - AttributeError: ‘bool’ object has no attribute ‘SPACECRAFT_NAME’

I use sen2cor 2.11.00 to correct some Sentinel-2 images atmospherically via Python on windows. The problem is that for some recent images (in July/2024) I got the following error. For other images (taken one year before), it worked fine.

S2A_MSIL1C_20240728T090601_N0511_R050_T34SFJ_20240728T125237 ATCOR
wrong identifier for xml structure.
unspecific error in metadata
wrong identifier for xml structure.
error in copying metadata files to target product
Sen2Cor. Version: 02.11.00, created: 2022.10.20, supporting Level-1C product version 14.2 - 14.9 started …
Product version: 15.0
Operation mode: TOOLBOX
Processing baseline: 99.99
Progress[%]: 0.00 : Generating datastrip metadata
unspecific error in metadata
Incorrect datastrip L1C xml format
Traceback (most recent call last):
File “C:\Sen2Cor-02.11.00-win64\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 734, in
sys.exit(main())
File “C:\Sen2Cor-02.11.00-win64\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\L2A_Process.py”, line 679, in main
L2A_TILES = config.updateTiles()
File “C:\Sen2Cor-02.11.00-win64\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4015, in updateTiles
if self.create_L2A_Tile():
File “C:\Sen2Cor-02.11.00-win64\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 4040, in create_L2A_Tile
self.getEntriesFromDatastrip()
File “C:\Sen2Cor-02.11.00-win64\Sen2Cor-02.11.00-win64\Lib\site-packages\sen2cor\L2A_Config.py”, line 3968, in getEntriesFromDatastrip
self.spacecraftName = di.SPACECRAFT_NAME.text
AttributeError: ‘bool’ object has no attribute ‘SPACECRAFT_NAME’

I have checked other relevant posts such as https://forum.step.esa.int/t/sen2cor-2-8-fails-on-product-from-early-2016-bool-object-has-no-attribute-spacecraft-name/16046, https://gis.stackexchange.com/questions/335665/sen2cor-l2a-process-not-working-returns-strange-error without success. They solutions are related to older versions of Sen2cor. Any idea?

Please have a look at this post Sen2cor supporting processing baseline 05.11 - #3 by Sen2cor_dev_team

1 Like

Thanks a lot for your quick reply!