No matter what platform I run it on, this script fails to create the CSV when I have it run against all my orgs, below is from a MAC, but Windows 11, and WSL Ubuntu (multiple versions) give the same error, the CSV is created and only gets the results from the first org pulled:
200 Writing file "inventory_2026-06-01_09.57.42.csv"... Traceback (most recent call last): File "/Users/username/Documents/inventorycsv.py", line 483, in <module> main(sys.argv[1:]) ~~~~^^^^^^^^^^^^^^ File "/Users/username/Documents/inventorycsv.py", line 443, in main strDevice[key] = " ".join(device[key]) ~~~~~~~~^^^^^^^^^^^^^ TypeError: sequence item 0: expected str instance, dict found
No matter what platform I run it on, this script fails to create the CSV when I have it run against all my orgs, below is from a MAC, but Windows 11, and WSL Ubuntu (multiple versions) give the same error, the CSV is created and only gets the results from the first org pulled:
200 Writing file "inventory_2026-06-01_09.57.42.csv"... Traceback (most recent call last): File "/Users/username/Documents/inventorycsv.py", line 483, in <module> main(sys.argv[1:]) ~~~~^^^^^^^^^^^^^^ File "/Users/username/Documents/inventorycsv.py", line 443, in main strDevice[key] = " ".join(device[key]) ~~~~~~~~^^^^^^^^^^^^^ TypeError: sequence item 0: expected str instance, dict found