Migration Tool: Attributes not populating

Permalink
I'm migrating a site from 5.6.3.4 to 8.1.0 using the Migration Tool from GitHub. The attributes are all visible in the batch (and populated correctly) but after importing to new pages, the attributes are all empty.

I've tried several versions of the migration tool and I did a test exporting a correctly populated page on the new site and then importing it back again to ensure the cif/xml formatting is all correct but it still doesn't work.

Anyone else experienced this/have any ideas? I haven't tested the current Migration Tool master as it requires 8.2.0 which doesn't seem to be available yet.

Any help appreciated!

My xml doc:
<?xml version="1.0" encoding="UTF-8"?>
<concrete5-cif version="1.0">
    <pages>
        <page name="Test Gallery Item" path="" filename="" pagetype="gallery_item" template="gallery_item" description="" package="">
            <attributes>
                <attributekey handle="title" name="Title" package="" searchable="1" indexed="1" type="text" category="collection"><value><![CDATA[Test Gallery Item]]></value></attributekey>
                <attributekey handle="culture"><value><![CDATA[Fon]]></value></attributekey>
                <attributekey handle="region"><value><![CDATA[Anencho, Togo]]></value></attributekey>
                <attributekey handle="materials"><value><![CDATA[Terracotta]]></value></attributekey>
                <attributekey handle="date"><value><![CDATA[Second half of the 20th century]]></value></attributekey>
                <attributekey handle="dimensions"><value><![CDATA[32 in :: 81 cm]]></value></attributekey>
                <attributekey handle="inventory_number"><value><![CDATA[10213]]></value></attributekey>
                <attributekey handle="price"><value><![CDATA[SOLD]]></value></attributekey>
                <attributekey handle="exclude_nav"><value><![CDATA[0]]></value></attributekey>
                <attributekey handle="tags"> <value><![CDATA[Tag1, Tag2]]></value> </attributekey>

PixelFields
 
JohntheFish replied on at Permalink Reply
JohntheFish
5.6.3.5 included updates to facilitate migration. You could try updating to 5.6.3.5 first.
PixelFields replied on at Permalink Reply
PixelFields
Thank you both for your advice. I didn't know there was another 5.6 update to help with migration. I've updated the site and tested another migration - the user is included now which is helpful but the attributes are still empty on my new pages.

I did create matching attributes on the new site and checked they are mapped correctly from Edit Batch so I'm stumped as to why they aren't being populated. Good to know it *should* work. Doki: were you importing to v5.7+ or v8?

I'm going to try importing to a blank install (with just the attributes created) to see if it's the new site causing an issue. Any other ideas or help appreciated!

UPDATE: I've tested on a separate fresh install of 8.1.0 and on 5.7.5.13 and attributes still not populating on either site. Going to test exporting from another 5.6 site to rule that out. I did have the "grapheme_substr" error on the 8.1.0 site but solved it by editing concrete/bootstrap/configure.php as per this link:https://www.concrete5.org/community/forums/5-7-discussion/5.7.2.1-in... no idea if that is causing additional issues

UPDATE: Solved! There was an import error that the parent page wasn't included in the batch so I was leaving the path part of the page tag blank - when I ran the fresh 5.6 test the page wasn't originally nested so it worked first time. Once I put path="/page-name" back in to the page tag the attributes started populating.

Thanks again for your help, Laila
Doki replied on at Permalink Reply
Doki
I just did a 5.6.3.1 port successfully with attributes, so it might not be your version.

Worth asking -- did you a.) make sure to create the attributes you're porting again in the new site and b.) map the options in the new site by using Edit Batch -> Attributes in the Import Batch page and making sure that the attributes are mapped properly in the new system? If you don't, they'll all get ignored (hence why its worth checking).