Layer7 API Management

  • 1.  GatewayMigrationUtility - Cannot find folder with id

    Posted Jan 21, 2018 10:43 PM

    I trying to migrateIn from one gateway to new gateway. The messages I receive during migrateIn are

     

    GatewayMigrationUtility.bat migrateIn --argFile argFiles\DestinationArgs.args --bundle Deploy_test\Ext_SIT_all.xml --results result.xml --test


    Warning: TLS hostname verification has been disabled
    Warning: TLS server certificate check has been disabled
    Running............................................................
    MigrateIn results saved in: result.xml
    Test migrate in failed: Bad Request Resource validation failed due to 'INVALID_VALUES' Could not find entity: Cannot find folder with id: bbff0e0109eeae36196f2faaeddf054c

     

    In result.xml show

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <l7:Item xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
    <l7:Type>InvalidResource</l7:Type>
    <l7:TimeStamp>2018-01-22T10:34:23.771+07:00</l7:TimeStamp>
    <l7:Link rel="self" uri="https://192.168.137.47:8443/restman/1.0/bundle?test=true&activate=true"/>
    </l7:Item>



  • 2.  Re: GatewayMigrationUtility - Cannot find folder with id

    Broadcom Employee
    Posted Jan 21, 2018 10:51 PM

    Hi 

     

    With : 

    Test migrate in failed: Bad Request Resource validation failed due to 'INVALID_VALUES' Could not find entity: Cannot find folder with id: bbff0e0109eeae36196f2faaeddf054c

     

    That should give some extra information in the results.xml file, I suspect it is a clash in the name, with there already being a folder of that name, and then does not load the new one with the id: above.

     

    Cheers - Mark



  • 3.  Re: GatewayMigrationUtility - Cannot find folder with id

    Posted Jan 21, 2018 10:57 PM

    This is a target gateway. it doesn't has any folder



  • 4.  Re: GatewayMigrationUtility - Cannot find folder with id

    Broadcom Employee
    Posted Jan 22, 2018 02:06 AM

    Best to check the : Ext_SIT_all.xml 

    for the reference : bbff0e0109eeae36196f2faaeddf054c

     

    The error message indicates there is a reference to: 

        "Cannot find folder with id: bbff0e0109eeae36196f2faaeddf054c" 

     

    So there should be some folder mentioned in the import file.

     

    Cheers - Mark



  • 5.  Re: GatewayMigrationUtility - Cannot find folder with id
    Best Answer

    Broadcom Employee
    Posted Jan 22, 2018 02:20 PM

    This can get a bit complicated but simply put its telling you your export has a folder with 1 id. And that Id doesnt exist on the new gateway. Depending on the mapping type New or Update for example with FAILOnNew=Yes it will fail.

     

    It may be wise to open a support case if you need help reviewing the bundle and mapping it. Also depending on version (9.3 and its GMU) has additional mapping options you can use to map 1 entity to another with an override mapping. 

     

    But usually you will need to use the manage mappings to get the item to map correctly.

    manageMappings command - CA API Gateway - 9.3 - CA Technologies Documentation https://docops.ca.com/ca-api-gateway/9-3/en/gateway-migration/gmu-command-help/managemappings-command

     

    Charlie.