Typeerror: parsing partitions.csv

Hi,
I try to build a program with platformio. It builds fine with the ‘normal’ esp32 environment.

PACKAGES: 
 - framework-espidf @ 3.40403.0 (4.4.3) 
 - tool-cmake @ 3.16.4 
 - tool-esptoolpy @ 1.40400.0 (4.4.0) 
 - tool-ninja @ 1.7.1 
 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Reading CMake configuration...
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Generating project linker script .pio/build/esp32dev/sections.ld
Retrieving maximum program size .pio/build/esp32dev/firmware.elf
*** [checkprogsize] TypeError : unsupported operand type(s) for +: 'int' and 'str'
Traceback (most recent call last):
  File "/home/wvdakker/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Action.py", line 1318, in execute
    result = self.execfunction(target=target, source=rsources, env=env)
  File "/home/wvdakker/.platformio/platforms/espressif32/builder/main.py", line 333, in <lambda>
    lambda source, target, env: _update_max_upload_size(env),
  File "/home/wvdakker/.platformio/platforms/espressif32/builder/main.py", line 143, in _update_max_upload_size
    _parse_size(p["size"]) for p in _parse_partitions(env)
  File "/home/wvdakker/.platformio/platforms/espressif32/builder/main.py", line 129, in _parse_partitions
    next_offset = _parse_size(partition["offset"]) + _parse_size(
TypeError: unsupported operand type(s) for +: 'int' and 'str'

My partitions.csv look like

# Name,   Type, SubType, Offset,   Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs,      data, nvs,     0x9000,   0x4000
otadata,  data, ota,     0xd000,   0x2000
phy_init, data, phy,     0xf000,   0x1000
ota_0,    0,    ota_0,   0x10000 , 0x1C0000
ota_1,    0,    ota_1,   0x1D0000, 0x1C0000
device,   0x40, 0,               , 0x1000
stations, 0x41, 0,               , 0X10000
device1,  0x42, 0,               , 0x1000
hardware, data, nvs,             , 0x3000

Any clue what causes this error?

Why is the X capital in this hexadecimal constant?

Argghh, good view.
Totaly misted and overlooked that one.

After changing it worked ok.

Thanks!