macopedia / magmi-m2

Magmi GitHub, see branch magento2 for a version compatible with Magento 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MAGMI Profile not working using CLI

pvsonawadekar opened this issue · comments

Tyring to run a magmi profile using cli, but facing issue.

I am running Magmi on Magneto2.3 and the PHP version which I am using is 7.1

Steps to reproduce

  1. Place the csv file in the var/inventory/daily/ in your magento project
  2. Try to run the php magmi/cli/magmi.cli.php -profile=updateinventory -mode=update -CSV:filename="var/inventory/daily/inventory.csv"
  3. The csv consists of two coulmns i.e sku and qty which looks like as below.

sku | qty

test | 1000

Actual result

  1. The quantity is not getting updated in the Magento admin for the respective sku mentioned in the csv.
    Also getting the following warning.
    Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/project/magmi/inc/magmi_mixin.php on line 29

Expected result

  1. The quantity should get updated in the Magento admin for the respective sku mentioned in the csv.