Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    QueenLinux
    @QueenLinux
    [2019-08-23 08:57:17] logger/system.INFO: Operation add-update has been stopped by TechDivision\Import\Plugins\SubjectPlugin, because no import files can be found in directory var/importexport {"memory_peak_usage":"12 MB"}
    Successfully finished import with serial 558f802c-a0a1-4f15-9ab3-be0edf83e9fe in 0.710831 s
    [2019-08-23 08:57:17] logger/system.INFO: Successfully finished import with serial 558f802c-a0a1-4f15-9ab3-be0edf83e9fe in 0.710831 s {"memory_peak_usage":"12 MB"}
    bitnami@ip-**:~/apps/magento/htdocs$
    took the _01 off the csv file, gives this error now
    Tim Wagner
    @wagnert
    The .ok filemust have the same name as the CSV file has, but .csv has to be replaced with .ok
    QueenLinux
    @QueenLinux
    without _01, still says no import files found, with _01, get directory target doesn't exist
    this is after changin ok filename to match csv
    Tim Wagner
    @wagnert
    The message with the missing target directory results of the “media-dir”:”target” configuration value, please remove it
    QueenLinux
    @QueenLinux
    success! wonderful, will be reporting results
    Tim Wagner
    @wagnert
    Perfect 🙂
    Eduardo
    @eduardo-g-silva
    Hi there my first steps into importing with m2if. I am trying to import PRODUCTS from a csv file and works perfect if I import the attributes using the magento way with a column call additional_attributes with the attributes separated by coma.
    Is there a way to use the attributes as a column name ? instead with in the additional_attributes column ?
    Tim Wagner
    @wagnert
    Hi, for sure simple add the values as columns whereas the column names should match the attribute code🙂
    Julien ANQUETIL
    @julienanquetil
    Hi @wagnert , do you have any news on the Akeneo custom module ? thanks
    Tim Wagner
    @wagnert
    @julienanquetil We're still working on it, but it seems that we need a bit more time. Actually a first version of attribute import is on the way, but not yet able to be released :(
    Eduardo
    @eduardo-g-silva
    @wagnert Thanks working fine. One more any way to map column names? i.e. the attribute is "color" but the csv said "Color_Something" can i put some kind of json config to map ?
    Tim Wagner
    @wagnert
    @eduardo-g-silva Yes, it's possible. I've added a short description to our documentation.
    Julien ANQUETIL
    @julienanquetil
    Many thanks, if you need help somewhere, feel free ;)
    Tim Wagner
    @wagnert
    @julienanquetil As soon as we‘ve a first version it‘ll be awesome to see you contributing for sure 🙂 Thanks for the offer!
    Eduardo
    @eduardo-g-silva
    Hi I am trying to import custom_options but it is not working and i don't get any error are custom_options supported by import-cli-simple.phar import:products ?
    Eduardo
    @eduardo-g-silva
    by the way it work fine if i use the magento import
    Tim Wagner
    @wagnert
    @eduardo-g-silva Hi, we actually don’t support custom options, sorry 😐
    Eduardo
    @eduardo-g-silva
    @wagnert Thanks for your answer I was going bananas trying to make it work
    Tim Wagner
    @wagnert
    Oh, I‘m sorry for that 🙁 Did we mention somewhere that we‘ll support custom options?
    Eduardo
    @eduardo-g-silva
    @wagnert not at all just me trying not your fault
    Tim Wagner
    @wagnert
    @eduardo-g-silva Btw, I'm start working on it next week and hopefully we can deliver it with the next version 3.8.0 ;-)
    Gert van Braak
    @gertvanbraak_gitlab
    Hi Tim. I'm running this command php import-cli-simple/import-cli-simple/bin/import-simple --magento-version=2.3.2 import:create:ok-file && bin/import-cli-simple.phar import:products
    Even without specifying --magento-version=2.3.2 it returns me this message. What to do?
    Tim Wagner
    @wagnert
    Hi @gertvanbraak_gitlab I need a little bit more context, but in general I would say, that you should run bin/import-cli-simple.phar --magento-version=2.3.2 import:create:ok-file && bin/import-cli-simple.phar import:products ... why did you run the command from the script and and then from the PHAR? :-)
    Gert van Braak
    @gertvanbraak_gitlab
    Thanks for the answer. Good point on the phar. Even when using both bin/import-cli-simple.phar and specifying the versions with this command: bin/import-cli-simple.phar --magento-version=2.3.2 import:create:ok-file && bin/import-cli-simple.phar import:products. Using php PHP 7.2.22-1 cli
    it keeps returning : The "--magento-version" option does not exist.
    Tim Wagner
    @wagnert
    @gertvanbraak_gitlab I've checked it and it seem's to be some kind of weired :-( I'll have a look at it tomorrow and come back to you :-)
    Gert van Braak
    @gertvanbraak_gitlab
    Thanks, Tim! I'm looking forward for your answer.
    Tim Wagner
    @wagnert
    @gertvanbraak_gitlab I've release 3.7.5 which contains a fix for your issue. Please give it a try. If you still face problems, do not hesitate to contact me :-)
    Gert van Braak
    @gertvanbraak_gitlab
    @wagnert That seems to fix the issue indeed! Thanks a lot.
    Tim Wagner
    @wagnert
    @gertvanbraak_gitlab You're welcome :-) Do not hesitate to ask if you face any other problems!
    GardeEuro
    @GardeEuro
    Hi Tim, I'm currently testing M2if in my local environment. I'm looking in github and in extension website, examples of .CSV file to start to testing import functionalities, but i didn't found them anywhere. Could you provide me these files? You would save me much time, thank you!
    Tim Wagner
    @wagnert
    Hi @GardeEuro please check our repository https://github.com/techdivision/import-sample-data ... I think you'll find everything that's necessary there :)
    GardeEuro
    @GardeEuro
    @wagnert Grazie! ;-)
    Tim Wagner
    @wagnert
    @GardeEuro You're welcome :-)
    GardeEuro
    @GardeEuro
    I'm trying to import attribute, but this exception is generated when I start import:

    bin/import-cli-simple.phar import:create:ok-file --configuration=techdivision-import.json && bin/import-cli-simple.phar import:attributes var/attribute-import_2019test_01.csv --configuration=techdivision-import.json -vvv
    Successfully written OK file /var/www/html/var/importexport/attribute-import.ok

    In Configuration.php line 388:

    [Exception]
    Can't find any plugins for operation var/attribute-import_2019test_01.csv

    Exception trace:
    at phar:///var/www/html/bin/import-cli-simple.phar/vendor/techdivision/import-configuration-jms/src/Configuration.php:388
    TechDivision\Import\Configuration\Jms\Configuration->getPlugins() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/techdivision/import-cli/src/ConfigurationLoader.php:168
    TechDivision\Import\Cli\ConfigurationLoader->load() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/dependency-injection/ContainerBuilder.php:1129
    Symfony\Component\DependencyInjection\ContainerBuilder->createService() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/dependency-injection/ContainerBuilder.php:610
    Symfony\Component\DependencyInjection\ContainerBuilder->doGet() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/dependency-injection/ContainerBuilder.php:556
    Symfony\Component\DependencyInjection\ContainerBuilder->get() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/techdivision/import-cli/src/Command/AbstractImportCommand.php:108
    TechDivision\Import\Cli\Command\AbstractImportCommand->execute() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/console/Command/Command.php:255
    Symfony\Component\Console\Command\Command->run() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/console/Application.php:915
    Symfony\Component\Console\Application->doRunCommand() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/console/Application.php:272
    Symfony\Component\Console\Application->doRun() at phar:///var/www/html/bin/import-cli-simple.phar/vendor/symfony/console/Application.php:148
    Symfony\Component\Console\Application->run() at phar:///var/www/html/bin/import-cli-simple.phar/bootstrap.php:53
    require() at /var/www/html/bin/import-cli-simple.phar:41

    Tim Wagner
    @wagnert
    Hi the correct CLI command should look like bin/import-cli-simple.phar import:create:ok-file --configuration=techdivision-import.json && bin/import-cli-simple.phar import:attributes --configuration=techdivision-import.json ... you do not have to specify the file as you did :-)
    Kellen Murphy
    @kellenmurphy

    I installed via composer on my Magento 2.3.1 store, and I'm trying to run the process to create a .ok file: php vendor/bin/import-simple import:create:ok-file but I receive the error 'Can't find any CSV files in source directory /var/www/html/magento/var/importexport`. However, I definitely have a file there...

    me@server:/var/www/html/magento$ ls -alrtc /var/www/html/magento/var/importexport
    total 20
    -rwxrwxrwx   1 me me  887 Nov 26 12:59 category-import_20190608-114344_01.csv
    drwxrwxrwx+  2 me me 4096 Nov 26 13:11 .
    drwxrwxrwx+ 12 me me 4096 Nov 26 13:21 ..

    I also tried running it with --entity-type-code="catalog_category" but that resulted in the same behavior. Any ideas?

    Tim Wagner
    @wagnert
    @kellenmurphy You've to specify the correct category configuration file with the --configuration=path/to/your-category-configuration.json, alternatively you can pass the path to the default category configuration, in case you use the PHAR you can read more here :-)
    Kellen Murphy
    @kellenmurphy
    Thanks @wagnert that did it. Or at least, up to the point of an error with a NULL value in my CSV. I'm going to have to play with that one myself ;-)
    Thanks again!
    Tim Wagner
    @wagnert
    @kellenmurphy You're welcome :-)
    RalphJ123
    @RalphJ123

    Hi, I hope someone can help me. I've tried to run the product import (no custom config) and I keeps giving me these errors:

    In AbstractSubject.php line 1205:  
    Found invalid attribute set name "" in file /var/www/vhosts/xxx/httpdocs/var/importexport/0c5d332a-35e0-48a2-a663-02b18afa482c/product-import_20191209-000730_01.csv on line 2  
    In AbstractEavSubject.php line 284:                                               
      Found invalid attribute set name "" in file /var/www/vhosts/xxx/httpdocs/var/importexport/0c5d332a-35e0-48a2-a663-02b18afa482c/product-import_20191209-000730_01.csv on line 2

    even when I try simple stuff in the CSV like:

    sku,price
    100,5

    (I also tried a lot of different combinations with/without quotes and with other attributes like the "General CSV File Format" noted here: https://docs.m2if.com/file-structure)
    Am I missing something really obvious here?

    Tim Wagner
    @wagnert
    Hi, when you only want to import prices, please try the ‘import:products:price’ command. Keep us updated if you still have any issues
    RalphJ123
    @RalphJ123
    @wagnert Thanks for the info! I tried some more, and found out it just requires more columns than the default import. After adding those it works fine! I have another question though, I found the delimiter option for multiple fields and values, is it also possible to change the "default" delimiter in the config files? (I use ";" instead of ","). I cant seem to find it in the documentation or the repo.
    Tim Wagner
    @wagnert
    @RalphJ123 For sure :-) This has to be configured on subject level with the import-adapter configuration, e. g.
    {
    ...
        {
              "id": "import.plugin.subject",
              "subjects": [
                {
                  "id": "import.subject.move.files",
                  "identifier": "move-files",
                  "file-resolver" : {
                    "prefix": "product-import",
                  "ok-file-needed": true
                },
                {
                  "id": "import_converter_ee.subject.converter",
                  "number-converter": {
                    "locale": "de_DE"
                  },
                  "import-adapter": {
                    "delimiter": "|"
                  },
                  "observers": [
                    {
                      "import": [
                        "import_converter.observer.convert.decimals"
                      ]
                   }
             ]
        }
        ...
    }