Layer7 API Management

 View Only

Expand all | Collapse all

Graphman - Diff & Import not working with 11.2 & 11.1.3

  • 1.  Graphman - Diff & Import not working with 11.2 & 11.1.3

    Posted Jan 26, 2026 11:23 AM

    We recently upgraded our DEV Env to 11.2.0. Our QA & UAT is 11.1.3.

     

    When we do Diff between DEV & QA we see this error

      D:\Graphman_Automation\Batch_Script\NonProd>graphman diff --input-source C:\temp\mtls.json --input-target @qa-core --output C:\temp\mtls_diff.json
    [info] retrieving qa-core gateway configuration summary
    [info] exporting from qa-core gateway
    [warn] pre-request graphman extension is not enabled, falling back to the default
    [warn] errors detected while retrieving qa-core gateway configuration summary
    [error] errors encountered while analyzing the differences [
      {
        "message": "Error encountered while processing the graphQL request: Unknown field 'serviceAliases' for type Query"
      }
    ]

    When we import to QA below error is popping up

    D:\Graphman_Automation\Batch_Script\NonProd>graphman import --gateway qa-core --input C:\Temp\mtls.json  --options.comment BM-3287
    [info] inspecting policies
    [info]   transforming the code field for the entity Add_mTLS_x_forwarded_proto_header-[Add_mTLS_x_forwarded_proto_header-FRAGMENT]
    [warn] unknown entities, properties
    [warn] unknown entities, properties
    [warn] pre-import graphman extension is not enabled, falling back to the default
    [warn] pre-request graphman extension is not enabled, falling back to the default
    {
      "errors": [
        {
          "message": "Error encountered while processing the graphQL request: The variables input contains a field name 'enabled' that is not defined for input object type 'L7PolicyInput' "
        }
      ]
    }

    DEV Export:

    D:\Graphman_Automation\Batch_Script\NonProd>graphman export --gateway dev-core --using policy --variables.name Add_mTLS_x_forwarded_proto_header --output C:\temp\mtls.json --options.policyCodeFormat code
    [info] exporting from dev-core gateway
    [warn] pre-request graphman extension is not enabled, falling back to the default
    [info] sanitizing policyByName to policies
    [warn] post-export graphman extension is not enabled, falling back to the default
    [info] writing to file C:\temp\mtls.json



    -------------------------------------------


  • 2.  RE: Graphman - Diff & Import not working with 11.2 & 11.1.3

    Posted Feb 13, 2026 04:27 AM
    Edited by Michael Mueller Feb 13, 2026 04:28 AM

    Hi Rajesh.

    I ran into similar errors when working with gateways of different versions in the past.

    I assume your observation is related to the schema version in use.
    Because your two gateways do have different versions, their supported graphman schema might be different.


    What version of graphman-client are you using ? and what is your default graphman-client schema setting ?
    A

    graphman(.sh) version

    might give you the data that is in interest.


    Regardless of the above, I 'd suggest to use a schema setting that is support by both gateways, usually, the one from the older gw version.

    To assure the schema in use,  explicitly add --options.schema v11.1.3 to any graphman command.
    Hope that helps

    Kind regards

    ...Michael

    -------------------------------------------