Errors with graphman client v1.3.8 while exporting
search cancel

Errors with graphman client v1.3.8 while exporting

book

Article ID: 381031

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

getting errors while exporting all entities from API GW v.11.1.0.

Graphman client v.1.3.8, schema v11.1.00.

$ graphman export --gateway dev --using all --output GraphmanOutput/dev/dev-source-bundle.xml.json --options.policyCodeFormat xml


[info] exporting from dev gateway
[info] unexpected data {
  "errors": [
    {
      "message": "Exception while fetching data (/logSinks[3]/checksum) : null",
      "locations": [
        {
          "line": 405,
          "column": 5
        }
      ],
      "path": [
        "logSinks",
        3,
        "checksum"
      ],
      "extensions": {
        "classification": "DataFetchingException"
      }
    },
    {
      "message": "Exception while fetching data (/logSinks[3]/filters) : Cannot invoke \"com.l7tech.objectmodel.folder.Folder.getPath()\" because \"<parameter1>\" is null",
      "locations": [
        {
          "line": 412,
          "column": 5
        }
      ],
      "path": [
        "logSinks",
        3,
        "filters"
      ],
      "extensions": {
        "classification": "DataFetchingException"
      }
    }
  ]

Environment

11.1

Resolution

  • fix the log-sink configuration
    • looking at the error, one of the log-sinks is configured with a missing folder filter, like below. 
    •  
    • In case if there are any such faulty filters, we can try export either by fixing them or removing them.
  • - exclude exporting the log-sink configuration
    • duplicate the all query into local workspace and remove logSinks from it. 
    • To quickly setup the local workspace, please refer to 

Additional Information

https://github.com/Layer7-Community/graphman-client/blob/main/queries/v11.1.00/all.gql#L77

https://github.com/Layer7-Community/graphman-client/wiki/Getting-Started#configure-home-directory