Stock import CSV not available

Questions around the TYPO3 integration and plugins as well as Flow and NeosCMS
Forum rules
Always add your TYPO3/Flow, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Stock import CSV not available

Post by cnoelker » 09 Aug 2019, 10:18

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

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

Re: Stock import CSV not available

Post by aimeos » 09 Aug 2019, 11:27

The product CSV import can do the same. You can configure it with product code and stock level to work with existing files.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Re: Stock import CSV not available

Post by cnoelker » 09 Aug 2019, 11:36

Where is this documented? I think, it's not at all developer friendly, if you silently remove a functionality...

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

Re: Stock import CSV not available

Post by aimeos » 09 Aug 2019, 11:44

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 ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Re: Stock import CSV not available

Post by cnoelker » 09 Aug 2019, 13:44

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.

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

Re: Stock import CSV not available

Post by aimeos » 09 Aug 2019, 13:56

You can use two scheduler task with different configurations in the TSConfig field
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Re: Stock import CSV not available

Post by cnoelker » 10 Aug 2019, 10:02

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.

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

Re: Stock import CSV not available

Post by aimeos » 11 Aug 2019, 12:13

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).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Re: Stock import CSV not available

Post by cnoelker » 12 Aug 2019, 08:21

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.

cnoelker
Posts: 59
Joined: 20 Feb 2016, 18:21

Re: Stock import CSV not available

Post by cnoelker » 04 Nov 2019, 15:29

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

Post Reply