Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
i am trying to reload Nprinting tasks from QMC using the document mentioned here:
But getting the below error at NP Create or Update User Section:
set vUserBody =
'{"Username":"UserA","Email":"usera@qlik.com","Password":"123","Enabled":"true","Folder":"","Subfolder":"","DomainAccount":"","Ti
mezone":"Europe/Berlin","Locale":"en"}';
let vUserBody = replace(vUserBody,'"', chr(34)&chr(34));
set vPostUserULR = 'https:// nprintingserver.domain.com:4993/api/v1/users';
RestNPPOSTandPUTTestTable:
SQL SELECT
"__KEY_data"
FROM JSON (wrap off) "data" PK "__KEY_data"
WITH CONNECTION( URL "$(vPostUserULR)", BODY "$(vUserBody)",
HTTPHEADER "Origin" "https://qliksenseserver.domain.com",
HTTPHEADER "Content-Type" "application/json",
HTTPHEADER "cookie" "$(vCookie)");
[post_and_put_items]:
LOAD [__KEY_data] AS [__KEY_data]
RESIDENT RestNPPOSTandPUTTestTable
WHERE NOT IsNull([__KEY_data]);
Anyone faced this error and how to resolve?
TIA
Hello @SaiPranathiG, if I got your request right this article Troubleshooting Common NPrinting API Errors may help you 😊
Hello @SaiPranathiG, if I got your request right this article Troubleshooting Common NPrinting API Errors may help you 😊