cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

SOLVED

Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

How to solve the following error during setting migration,

 

cmd : php bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.3/config.xml --auto

 

Error : https://snipboard.io/T0t2ng.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hi @Aveeva,

Just want to understand your requirement. Are you specifying some new rules for the settings migration. If yes, then please share your settings.xml file as well.

 

If you are not specifying new rules, then there is no need to copy settings.xml file in the specific folder and mentioned in the config.xml. check here

https://devdocs.magento.com/guides/v2.4/migration/migration-migrate-settings.html

 

Try to change your settings.xml path like before in config.xml and try to run settings migration.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

11 REPLIES 11

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hello @Aveeva 

 

This error is syntax error, you missed one tag "<" in vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.3/config.xml file,

Please review once or paste code here.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hi @Aveeva 

The error you are getting has nothing todo with the code you showed.

As it says, a layout xml update cannot be parsed.

 

In your case, you would have to check with defined xml file. Your problem is with that file and malformed xml.

 

Don't literally expect a missing < (but could be) You can, for example, have a missing closing " somewhere.


It may help!
Problem Solved? Please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

@Aveeva 

 

You can check by removing all code inside <config> tag, if still it throws error then we can look into other file, if issue doesn't appear after removing, then check by removing few lines of code later.

 

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hi @Aveeva,

 

Can you please confirm did you change any other file as well(xml file) in the data-migration-tool.

 

If yes, can you please  send those files as well.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

@Nishu Jindal  No, I just follow Magento doc.

 

steps:

Under  vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.3

 

> config.xml.dist to  config.xml

 

>map.xml.dist to map.xml - change in config.xml( <map_file>etc/opensource-to-opensource/1.9.2.3/map.xml</map_file>  )

 

>copy settingx.xml.dist from vendor/magento/data-migration-tool/etc/opensource-to-opensource to vendor/magento/data-migration-tool/etc/opensource-to-opensource/1.9.2.3 as a setttings.xml and change in config.xml ( <settings_map_file>etc/opensource-to-opensource/1.9.2.3/settings.xml</settings_map_file>  )  

 

Config.xml :

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
        xs:noNamespaceSchemaLocation="urn:magento:module:Magento_DataMigrationTool:etc/config.xsd">
    <steps mode="settings">
        <step title="Settings Step">
            <integrity>Migration\Step\Settings\Integrity</integrity>
            <data>Migration\Step\Settings\Data</data>
        </step>
        <step title="Stores Step">
            <integrity>Migration\Step\Stores\Integrity</integrity>
            <data>Migration\Step\Stores\Data</data>
            <volume>Migration\Step\Stores\Volume</volume>
        </step>
    </steps>
    <steps mode="data">
        <step title="Data Integrity Step">
            <integrity>Migration\Step\DataIntegrity\Integrity</integrity>
        </step>
        <step title="EAV Step">
            <integrity>Migration\Step\Eav\Integrity</integrity>
            <data>Migration\Step\Eav\Data</data>
            <volume>Migration\Step\Eav\Volume</volume>
        </step>
        <step title="Customer Attributes Step">
            <integrity>Migration\Step\Customer\Integrity</integrity>
            <data>Migration\Step\Customer\Data</data>
            <volume>Migration\Step\Customer\Volume</volume>
        </step>
        <step title="Map Step">
            <integrity>Migration\Step\Map\Integrity</integrity>
            <data>Migration\Step\Map\Data</data>
            <volume>Migration\Step\Map\Volume</volume>
        </step>
        <step title="Url Rewrite Step">
            <integrity>Migration\Step\UrlRewrite\Version191to2000</integrity>
            <data>Migration\Step\UrlRewrite\Version191to2000</data>
            <volume>Migration\Step\UrlRewrite\Version191to2000</volume>
        </step>
        <step title="Log Step">
            <integrity>Migration\Step\Log\Integrity</integrity>
            <data>Migration\Step\Log\Data</data>
            <volume>Migration\Step\Log\Volume</volume>
        </step>
        <step title="Ratings Step">
            <integrity>Migration\Step\Ratings\Integrity</integrity>
            <data>Migration\Step\Ratings\Data</data>
            <volume>Migration\Step\Ratings\Volume</volume>
        </step>
        <step title="ConfigurablePrices step">
            <integrity>Migration\Step\ConfigurablePrices\Integrity</integrity>
            <data>Migration\Step\ConfigurablePrices\Data</data>
            <volume>Migration\Step\ConfigurablePrices\Volume</volume>
        </step>
        <step title="OrderGrids Step">
            <integrity>Migration\Step\OrderGrids\Integrity</integrity>
            <data>Migration\Step\OrderGrids\Data</data>
            <volume>Migration\Step\OrderGrids\Volume</volume>
        </step>
        <step title="Tier Price Step">
            <integrity>Migration\Step\TierPrice\Integrity</integrity>
            <data>Migration\Step\TierPrice\Data</data>
            <volume>Migration\Step\TierPrice\Volume</volume>
        </step>
        <step title="SalesIncrement Step">
            <integrity>Migration\Step\SalesIncrement\Integrity</integrity>
            <data>Migration\Step\SalesIncrement\Data</data>
            <volume>Migration\Step\SalesIncrement\Volume</volume>
        </step>
        <step title="Inventory Step">
            <integrity>Migration\Step\Inventory\Integrity</integrity>
            <data>Migration\Step\Inventory\Data</data>
            <volume>Migration\Step\Inventory\Volume</volume>
        </step>
        <step title="PostProcessing Step">
            <data>Migration\Step\PostProcessing\Data</data>
        </step>
    </steps>
    <steps mode="delta">
        <step title="Customer Attributes Step">
            <delta>Migration\Step\Customer\Delta</delta>
            <volume>Migration\Step\Customer\Volume</volume>
        </step>
        <step title="Map Step">
            <delta>Migration\Step\Map\Delta</delta>
            <volume>Migration\Step\Map\Volume</volume>
        </step>
        <step title="Log Step">
            <delta>Migration\Step\Log\Delta</delta>
            <volume>Migration\Step\Log\Volume</volume>
        </step>
        <step title="ConfigurablePrices step">
            <delta>Migration\Step\ConfigurablePrices\Delta</delta>
            <volume>Migration\Step\ConfigurablePrices\Volume</volume>
        </step>
        <step title="Tier Price Step">
            <delta>Migration\Step\TierPrice\Delta</delta>
            <volume>Migration\Step\TierPrice\Volume</volume>
        </step>
        <step title="Url Rewrite Step">
            <delta>Migration\Step\UrlRewrite\Version191to2000Delta</delta>
            <volume>Migration\Step\UrlRewrite\Version191to2000</volume>
        </step>
        <step title="OrderGrids Step">
            <delta>Migration\Step\OrderGrids\Delta</delta>
            <volume>Migration\Step\OrderGrids\Volume</volume>
        </step>
        <step title="SalesIncrement Step">
            <delta>Migration\Step\SalesIncrement\Delta</delta>
            <volume>Migration\Step\SalesIncrement\Volume</volume>
        </step>
        <step title="Inventory Step">
            <delta>Migration\Step\Inventory\Delta</delta>
            <volume>Migration\Step\Inventory\Volume</volume>
        </step>
    </steps>
    <source>
        <database host="1.2.3.2" name="hebeur" user="ergergg" password="@gergregre" />
    </source>
    <destination>
        <database host="202.2.2.2" name="wwwew" user="ewwew" password="@ewewwwe" />
    </destination>
    <options>
        <map_file>etc/opensource-to-opensource/1.9.2.3/map.xml</map_file>
        <eav_map_file>etc/opensource-to-opensource/map-eav.xml.dist</eav_map_file>
        <eav_document_groups_file>etc/opensource-to-opensource/eav-document-groups.xml.dist</eav_document_groups_file>
        <eav_attribute_groups_file>etc/opensource-to-opensource/eav-attribute-groups.xml.dist</eav_attribute_groups_file>
        <log_map_file>etc/opensource-to-opensource/map-log.xml.dist</log_map_file>
        <log_document_groups_file>etc/opensource-to-opensource/log-document-groups.xml.dist</log_document_groups_file>
        <settings_map_file>etc/opensource-to-opensource/1.9.2.3/settings.xml</settings_map_file>
        <customer_map_file>etc/opensource-to-opensource/map-customer.xml.dist</customer_map_file>
        <customer_document_groups_file>etc/opensource-to-opensource/customer-document-groups.xml.dist</customer_document_groups_file>
        <customer_attribute_groups_file>etc/opensource-to-opensource/customer-attribute-groups.xml.dist</customer_attribute_groups_file>
        <delta_document_groups_file>etc/opensource-to-opensource/deltalog.xml.dist</delta_document_groups_file>
        <order_grids_document_groups_file>etc/opensource-to-opensource/order-grids-document-groups.xml.dist</order_grids_document_groups_file>
        <map_document_groups>etc/opensource-to-opensource/map-document-groups.xml.dist</map_document_groups>
        <class_map>etc/opensource-to-opensource/class-map.xml.dist</class_map>
        <tier_price_map_file>etc/opensource-to-opensource/map-tier-price.xml.dist</tier_price_map_file>
        <stores_map_file>etc/opensource-to-opensource/map-stores.xml.dist</stores_map_file>
        <!--
        In case bulk_size=0 it will be auto-detected for every document.
        -->
        <bulk_size>0</bulk_size>
        <!--
        Set direct_document_copy = 1 for better performance.
        NOTE: 'source' and 'destination' databases MUST be placed on the same MySQL instance
        and 'destination' user MUST be granted with 'SELECT' permissions on 'source' database
         -->
        <direct_document_copy>0</direct_document_copy>
        <source_prefix />
        <dest_prefix />
        <auto_resolve_urlrewrite_duplicates>0</auto_resolve_urlrewrite_duplicates>
        <log_file>migration.log</log_file>
        <progress_bar_format>%percent%% [%bar%] Remaining Time: %remaining%</progress_bar_format>
        <upgrade_customer_password_hash>1</upgrade_customer_password_hash>
        <edition_migrate>opensource-to-opensource</edition_migrate>
        <edition_number>1.9.2.3</edition_number>
        <init_statements_source>SET NAMES utf8;</init_statements_source>
        <init_statements_destination>SET NAMES utf8;</init_statements_destination>
        <!-- <crypt_key /> -->
        <crypt_key>gnijgnutgntbggtg</crypt_key>
    </options>
</config>

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

@Bhanu Periwal  I just checked line by line, i don't miss anything then why this error occurs.

 

Error :

In Dom.php line 455:

Start tag expected, '<' not found
Line: 1

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hi @Aveeva,

Just want to understand your requirement. Are you specifying some new rules for the settings migration. If yes, then please share your settings.xml file as well.

 

If you are not specifying new rules, then there is no need to copy settings.xml file in the specific folder and mentioned in the config.xml. check here

https://devdocs.magento.com/guides/v2.4/migration/migration-migrate-settings.html

 

Try to change your settings.xml path like before in config.xml and try to run settings migration.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Magento 2.3.5-p1 - Settings migration error - Start tag expected, '<' not found Line: 1

Hi @Aveeva,

 

Glad to know this works for you!

 

Thanks!