Hi Folks, I am getting an error with a GraphQL mu...
# troubleshoot
f
Hi Folks, I am getting an error with a GraphQL mutation that has worked historically. I tested a few other queries without issue. This is the error that is returned
Copy code
{
  "errors": [
    {
      "message": "An unknown error occurred.",
      "locations": [
        {
          "line": 4,
          "column": 3
        }
      ],
      "path": [
        "createGlossaryTerm"
      ],
      "extensions": {
        "code": 500,
        "type": "SERVER_ERROR",
        "classification": "DataFetchingException"
      }
    }
  ],
  "data": {
    "createGlossaryTerm": null
  },
  "extensions": {}
}
This is the query and variables
Copy code
#Create glossary term

mutation CreateGlossaryTerm($name:String!, $description: String, $urn: String){
  createGlossaryTerm(input: {name: $name, description: $description, parentNode: $urn})
}

#Variables
{
  "name":"firstcustkey",
  "description": " Initial CustKey for a Line.",
  "urn": "urn:li:glossaryNode:821e6ed3-756b-43da-805c-ce7ed1d02ee8"
}
This same query was working fine yesterday so I am not sure what changed. I have confirmed that the parentnode exists.
e
Hey @flat-agency-53385 does the following mutation work for you?
Copy code
mutation createGlossaryNode($input: CreateGlossaryEntityInput!) {
        createGlossaryNode(input: $input)
    }


{"input":{"name":"Test","parentNode":null,"description":null}}
f
Hey Aditya, Thanks for the response. I got it figured out. My mutation was fine, although I like the structure of yours better. There was an issue preventing terms from being added which our administrator got figured out.
e
Awesome, glad to hear it!
m
@flat-agency-53385 Can you tell me how you resolved it ? I'm facing the same issue
s
@flat-agency-53385, can you share your solution?