I am trying to migrate an OTK. But to my surprise I get the error "Incorrect mapping instructions: Cannot find entity type FOLDER with id: 0000000000000000ffffffffffffec76 in this entity bundle.. Mapping for: EntityHeader. Name=null, id=0000000000000000ffffffffffffec76, description=null, type = FOLDER" while this mentioned folder is right there in the bundle (as the first item). The next two Folders in the
In the bundle it looks like this:
<l7:Item>
<l7:Name>sap-accountmanagement</l7:Name>
<l7:Id>b0cc674adb2a2ef13f2d555678a86e89</l7:Id>
<l7:Type>FOLDER</l7:Type>
<l7:TimeStamp>2016-08-30T12:14:47.191+02:00</l7:TimeStamp>
<l7:Resource>
<l7:Folder folderId="0000000000000000ffffffffffffec76" id="b0cc674adb2a2ef13f2d555678a86e89" version="2">
<l7:Name>sap-accountmanagement</l7:Name>
</l7:Folder>
</l7:Resource>
</l7:Item>
and it is mapped as follows:
<l7:Mapping action="NewOrUpdate" srcId="0000000000000000ffffffffffffec76" srcUri="https://10.249.123.241:8443/restman/1.0/folders/0000000000000000ffffffffffffec76" type="FOLDER"/>
For the migrateOut I did not specify a defaulAction and the default mapping was:
<l7:Mapping action="NewOrExisting" srcId="0000000000000000ffffffffffffec76" srcUri="https://10.249.123.241:8443/restman/1.0/folders/0000000000000000ffffffffffffec76" type="FOLDER">
<l7:Properties>
<l7:Property key="FailOnNew">
<l7:BooleanValue>true</l7:BooleanValue>
</l7:Property>
</l7:Properties>
</l7:Mapping>
I ran manageMappings on all folders with --action NewOrUpdate, which in the end formed my bundle. Before rnuning that command I got the error that the migration failed, because the folder had to be created newly.
Can someone explain why I get this enigmatic error?
If necessary, I'll upload the files. But they would have to be cleared from sensitive information, so preferably not...