Page 1 of 2

Stock import CSV not available

Posted: 09 Aug 2019, 10:18
by cnoelker
Hello,
I update to the Aimeos 19.7.1 and TYPO3 9.5.8 LTS. Now, the stock import CSV is gone. It's not available in the scheduler and when I start the CLI, then it throws an error message.
typo3cms aimeos:jobs stock/import/csv default

Why has this been removed from ai-controller-jobs? What is the replacement?

Claudia

Re: Stock import CSV not available

Posted: 09 Aug 2019, 11:27
by aimeos
The product CSV import can do the same. You can configure it with product code and stock level to work with existing files.

Re: Stock import CSV not available

Posted: 09 Aug 2019, 11:36
by cnoelker
Where is this documented? I think, it's not at all developer friendly, if you silently remove a functionality...

Re: Stock import CSV not available

Posted: 09 Aug 2019, 11:44
by aimeos
Sorry, we've introduced that in 2019.04 but found out that it's duplicate code and removed that in 2019.07 immediately again. We should have been communicating better ...

Re: Stock import CSV not available

Posted: 09 Aug 2019, 13:44
by cnoelker
For me, it was not duplicated. I was using product/import/csv to update the status of a select product and stock/import/csv to import the stock of default products.
The solution is to combine both into one import.

Re: Stock import CSV not available

Posted: 09 Aug 2019, 13:56
by aimeos
You can use two scheduler task with different configurations in the TSConfig field

Re: Stock import CSV not available

Posted: 10 Aug 2019, 10:02
by cnoelker
How can I do this? On CLI, I start the import with
typo3cms aimeos:jobs product/import/csv default
I don't see a way to provide any parameters.

Re: Stock import CSV not available

Posted: 11 Aug 2019, 12:13
by aimeos
Right, if you use the job controllers from the command line directly that won't work. This is also a problem in Laravel, Symfony, etc. and therefore, we've decided to add the stock importer again (2019.07.4).

Re: Stock import CSV not available

Posted: 12 Aug 2019, 08:21
by cnoelker
That's a good decision.
For me a bit too late. I did already change my import so that status update and stock update are done at the same time.

Re: Stock import CSV not available

Posted: 04 Nov 2019, 15:29
by cnoelker
Hi,
I moved back to the CSV import. So my CSV is simple, e.g.

4026708154934,10
4026708154935,0,2019-12-20

However, the '2019-12-20' is imported as the stock type, not the date when the item is available, again.

Providing the date as the fourth value in the CSV did not work, either.

So, I have to (again) switch to the XML import for the stock?

Claudia