ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Issues with migrating and mapping via GMU

book

Article ID: 238170

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

 

GMU Command:

# java -jar GatewayMigrationUtility.jar migrateIn --trustHostname --argFile in.args  --bundle facilities-buildings.xml --map overrideMappings.xml -r results.xml –test

 

The error:

 

         </l7:Mapping>

         <l7:Mapping action="NewOrExisting" errorType="ImproperMapping" srcId="023000ae041de2e80b0429518798ae65" srcUri="https://<gateway_hostname>:8443/restman/1.0/folders/023000ae041de2e80b0429518798ae65" type="FOLDER">

             <l7:Properties>

                 <l7:Property key="ErrorMessage">

                     <l7:StringValue>Incorrect mapping instructions: Mapping by PATH but could not deduce a target PATH to map to from the given bundle. Please specify a target PATH to map to. Mapping for: EntityHeader. Name=null, id=023000ae041de2e80b0429518798ae65, description=null, type = FOLDER</l7:StringValue>

                 </l7:Property>

                 <l7:Property key="MapBy">

                     <l7:StringValue>path</l7:StringValue>

                 </l7:Property>

             </l7:Properties>

         </l7:Mapping>

Cause

The FOLDER does match source and destination 

Environment

Release : 10.0

Component : API GATEWAY

Resolution

Run migrateIn specifying the destFolder during migraeIn

Example 

 --destFolder "/TD/0.8" 

migrateIn --argFile C:\GMU\<gateway>.properties --trustCertificate --bundle "C:\GMU\bundle\bundle.xml" --destFolder "/TD/0.8" --results "C:\GMU\results\migrate.xml" -test