Reputation: 722
What does the below error mean in xquery :-
SVC-CODEPOINT: (err:FOCH0001) xdmp:unquote("{ "info": { "title": "Inventory...") -- Codepoint not legal
Getting the above error while running xquery file where I have defined a mapping file inside a variable like -
let $mapping := xdmp:unquote('{
"info": {
"title": "Inventory"
},
"InvTable": [
{
"prefix": "pdw",
"default": true
}
],
"ViewNames": {
"InvTable": {
"$ref": "pdw/DAU"
}
}
}')
Upvotes: 0
Views: 58
Reputation: 7142
It's basically saying you have an invalid character. A codepoint is the underlying numerical value for a character and there's something in your string that isn't legal to become JSON, probably. I suggest you simplify what you're unquoting until you find where that's coming from.
Upvotes: 2