Invalid Catalog Lines

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!
jramirezgranada
Posts: 40
Joined: 12 Jul 2018, 19:57

Invalid Catalog Lines

Post by jramirezgranada » 30 Aug 2018, 21:32

Hi there;

I'm trying to import categories from magento to aimeos, when i run the command i got this error

Code: Select all

php artisan aimeos:jobs catalog/import/csv
Executing the Aimeos jobs for "default"
Invalid catalog lines in "storage/csv": 132/132#0 /home/vagrant/sync/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(69): Aimeos\Controller\Jobs\Catalog\Import\Csv\Standard->run()
#1 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), 'catalog/import/...')
my shop.php config

Code: Select all

'controller' => [
        'jobs' => [
            'catalog' => [
                'import' => [
                    'csv' => [
                        'location' => 'storage/csv',
                        'skip-lines' => 1
                    ]
                ]
            ]
        ]
    ],
can you help me with that
--
Jorge A Ramirez
System Engineer
PHP Developer

mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

Re: Invalid Catalog Lines

Post by mohal_04 » 31 Aug 2018, 06:26

jramirezgranada wrote:Hi there;

I'm trying to import categories from magento to aimeos, when i run the command i got this error

Code: Select all

php artisan aimeos:jobs catalog/import/csv
Executing the Aimeos jobs for "default"
Invalid catalog lines in "storage/csv": 132/132#0 /home/vagrant/sync/vendor/aimeos/aimeos-laravel/src/Aimeos/Shop/Command/JobsCommand.php(69): Aimeos\Controller\Jobs\Catalog\Import\Csv\Standard->run()
#1 [internal function]: Aimeos\Shop\Command\JobsCommand->Aimeos\Shop\Command\{closure}(Object(Aimeos\MShop\Context\Item\Standard), Object(Aimeos\Bootstrap), 'catalog/import/...')
my shop.php config

Code: Select all

'controller' => [
        'jobs' => [
            'catalog' => [
                'import' => [
                    'csv' => [
                        'location' => 'storage/csv',
                        'skip-lines' => 1
                    ]
                ]
            ]
        ]
    ],
can you help me with that
Hi,

How about change 'location' key:

Code: Select all

'location' => base_path('storage/tmp/product')
Use 'base_path'.

And are you following the correct CSV format?

Thanks!

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Invalid Catalog Lines

Post by aimeos » 01 Sep 2018, 13:39

When errors occur during the import they are logged and you should be able to see them in the log panel.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply