Well, I can send you a bundle if you give me your email address. But perhaps that is not necessary.
The bundle I am talking about has been created with the following command:
gmu.bat migrateOut --argFile herkomstOTKexport.properties --folderName sap-accountmanagement --dest bundle/bhrOTK-RP.xml
The service contained in that folder uses three policy fragments which have a general purpose, are located outside the folder that has been designated for migration, and already exist on test, acceptance and production environments. I am not sure how these general purpose policies have been migrated (it was at least before the upgrade from version 7 to 8.4, I believe they used the ESM), they have identical names and paths but different policy ID's on the different environments.
Unfortunately I am not able to replicate the logs now (they are overwritten by the next migration intent).
If I do not map on name (using --targetName) I get - of course - a unique key conflict, as the name of the policy already exists. Mapping on name, however, results in the GMU not being able to find the corresponding policy on the target gateway (tried with both --action Existing and --action NewOrExisting (unique key conflict as well)). I also tried writing the targetName explicitly, both including and excluding the path, but this makes no difference.
What is more. The errors I get do not only refer to the general purpose policies, but also to their parent folders. The bundle does not contain the parent folder as an item, but does contain it as a attribute (or child, don't pin me down on this one) of the policy and the parent folder has its own mapping instruction in the bundle. I need to map the parent folders with --action Ignore to avoid the error that the 'entity cannot be found in the bundle'... (Intuitively I would want to try to map the parent folder to its counterpart on the target gateway, but I cannot find its ID on the target gateway.)