GMU command failure

Document ID : KB000124513
Last Modified Date : 15/01/2019
Show Technical Document Details
Issue:
GMU migrateOut command with --folderName option failed as following.

# /home/ssgconfig/gmu/GatewayMigrationUtility.sh migrateOut --argFile ./src.argfile --folderName /MyFolder--defaultAction Ignore --dest ./result.xml
Warning: TLS hostname verification has been disabled
Warning: TLS server certificate check has been disabled
Running................................................................................
Execution failed. Reason: Bad Request. Detail: ']' expected but not found


Here is an API Log message of Gateway REST Management Service.

2018-11-16T03:08:09.877+0900 WARNING 329 com.l7tech.external.assertions.gatewaymanagement.server.ServerRESTGatewayManagementAssertion: 9050: Error processing management request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Error xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Type>VariableNameSyntax</l7:Type>
<l7:TimeStamp>2018-11-16T03:08:09.771+09:00</l7:TimeStamp>
<l7:Link rel="self"uri="https://myserver:8443/restman/1.0/folders/0000000000000000ffffffffffffec76/dependencies?level=-1"/>
<l7:Detail>']' expected but not found</l7:Detail>
</l7:Error>
Environment:
API Gateway 9.3
Cause:
The root cause was due to an invalid Context Variable statement in Add Audit Detail assertion.
The Context Variables were nested as following:
${index[${myVar}]}
Resolution:
This is documented as following:

Indexing Options During Interpolation
Tips: (1) The interpolation described here accepts fixed values only; you cannot specify a context variable. If you need to perform a lookup using a context variable, use the Look Up Item by Index Position Assertioninstead
Additional Information:
Indexing Options During Interpolation