I am migrating Magento to Magento 2.2.5 and getting below error

The command I run from my Windows machine

php bin/magento migrate:data --reset vendor/magento/data-migration-tool/etc/opensource-to-opensource/

Getting error in command prompt

 Invalid config filename: vendor/magento/data-migration-tool/etc/opensourc


When remove below part it start process but nothing import as all are in comment or removed

<steps mode="data">
    <step title="Data Integrity Step">
    <step title="EAV Step">
    <step title="Customer Attributes Step">
    <step title="Map Step">
    <step title="Url Rewrite Step">
    <step title="Log Step">
    <step title="Ratings Step">
    <step title="ConfigurablePrices step">
    <step title="OrderGrids Step">
    <step title="Tier Price Step">
    <step title="SalesIncrement Step">
    <step title="PostProcessing Step">

When Comment below part from config.xml it start reading but gives error Integrity check failed whats wrong with this part

<step title="Map Step">
  • By default the file name is config.xml.dist, can you confirm you have changed the filename. – Gagan Jul 12 '18 at 12:34
  • yes its config.xml only – Zaheerabbas Jul 13 '18 at 2:43
  • Can you try making it .dist again and run command with dist. I know it is the same but you can try. – Gagan Jul 13 '18 at 4:26
  • it work but nothing to migrate. – Zaheerabbas Jul 13 '18 at 4:31
  • You have put the code back which you shared above that you removed, right? – Gagan Jul 13 '18 at 5:13

Please give full path and try:

php bin/magento migrate:data --reset /var/www/html/{{magento2}}/vendor/magento/data-migration-tool/etc/opensource-to-opensource/{{magento1 version}}/config.xml

  • not working php bin/magento migrate:data --reset D:\wamp64\www\mage225no\vendor\magento\data-migration-tool\etc\opensource-to-opensource\ – Zaheerabbas Jul 12 '18 at 12:24
  • try using forward slash: D:/wamp64/www/mage225no/vendor/magento/data-migration-tool/etc/opensource-to-opensource/ – Rutvee Sojitra Jul 12 '18 at 12:26
  • already tried that – Zaheerabbas Jul 12 '18 at 12:27

I find answer myself.

I was trying to run a command php bin/magento migrate:data --reset D:\wamp64\www\mage225no\vendor\magento\data-migration-tool\etc\opensource-to-opensource\\config.xml in development mode.

So it every time when run it shows Invalid config filename.I research and get some idea about why this happens and finally got the answer that we must run this command in default mode don't know about production mode.

BTW,Thank you everyone, who help me on this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.