Error while catalog import using CSV

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
lockhart97
Posts: 25
Joined: 17 Aug 2023, 00:16

Error while catalog import using CSV

Post by lockhart97 » 17 Aug 2023, 00:30

Laravel framework version: 10.18.0
Aimeos Laravel version: 2023.07
PHP Version: 8.2.8
Environment: Linux

Hello,

I am using CSV file for importing categories. I am using default mapping which is,

Code: Select all

[
    'item' => [
        0 => 'catalog.code',
        1 => 'catalog.parent',
        2 => 'catalog.label',
        3 => 'catalog.status',
    ],
]
For 'catalog.parent' I am using 'home'. Home is category already added in Aimeos with code as 'home'. My CSV file looks like,

Code: Select all

"main","home","Main","1"
"side","home","Side","1"
"addons","home","Addons","1"
"snacks","home","Snacks","1"
This CSV is not working and when I check logs I see following error, 'Unable to import catalog with code "snacks": Parent node for code "home" not found' for every line of CSV. I am not sure what I am doing wrong.