#Insights Global variable with Month(Visit_Date) Equals {{Variable_Key} throwing error [INVALID_PAYLO

18 messages · Page 1 of 1 (latest)

dusk dagger
#

{
"errors": [
{
"message": "GraphQL schema validation error.",
"extensions": {
"code": "INVALID_PAYLOAD",
"graphqlErrors": [
{
"message": "Syntax Error: Expected ":", found "(".",
"locations": [
{
"line": 1,
"column": 1914
}
]
}
]
}
}
]
}

exotic wave
#

This could be caused by the initial value of null before you fill the variable. Does setting a default value help?

dusk dagger
#

No. I even tried this but still issue persists

#

this as well

#

even this

dusk dagger
#

@exotic wave any guess on the issue?

exotic wave
#

type mismatch for the month function perhaps

dusk dagger
#

you mean it is a bug right?

#

should i post it in github?

dusk dagger
dusk dagger
#

query { query_2695f143: Billsfromexcel_aggregated (limit: 1, sort: null, filter: {_and: [{status: {_nin: ["archived", "Draft", "draft"]}}, {_or: [{Bill_Number: {_contains: null}}, {PRO_Name: {_contains: null}}, {Department_Name: {_contains: null}}, {Client_Id: {_contains: null}}]}, {Department_Name: {_neq: "OTHERS"}}, {month(VisitDate): {_eq: "01"}}]}) { count { id } } }

#

it seems like a API error

dusk dagger
#

@exotic wave Can you guide me if possible

exotic wave
#

Looks like an invalid graphql query is created for your filters, have you made a GH issue for this?

dusk dagger
#

ok