Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nagarajuabhi
Contributor II
Contributor II

"Malformed parameters in body" Error while running Import task via API

Hello Community,

I want to add filters to a user in Nprinting via Rest API(In Qliksense)

Below is the format which i am using. On executing i am facing this error.

"

 HTTP protocol error 400 (Bad Request):

{"error":{"code":400,"message":"Malformed parameters in body"}}

"

------------------------------------------------------------------------------------------------------------

vFilterbody:

{

   "guid": "S(vFilterid)"

}

replace(vBodyString,'"',chr(34) & chr(34)) and postman.

SQL SELECT

"__KEY_data"

FROM JSON (wrap off) "data" PK "__KEY_data"

WITH CONNECTION( URL "XXXXXXXXXXXX", $(vFilterbody)

HTTPHEADER "Origin" "XXXXXXXXXXXXXX",

HTTPHEADER "Content-Type" "application/json",

HTTPHEADER "X-HTTP-Method-Override" "PUT",

HTTPHEADER "cookie" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; ").

I went through other solution provided from community  and tried too, still facing same issue.

Thanks,

Abhilash

Labels (1)
1 Reply
nagarajuabhi
Contributor II
Contributor II
Author

vFilterbody:

{

   "guid": "S(vFilterid)"

}

replace($(vFilterbody),'"',chr(34) & chr(34))

SQL SELECT

"__KEY_data"

FROM JSON (wrap off) "data" PK "__KEY_data"

WITH CONNECTION( URL "XXXXXXXXXXXX", $(vFilterbody)

HTTPHEADER "Origin" "XXXXXXXXXXXXXX",

HTTPHEADER "Content-Type" "application/json",

HTTPHEADER "X-HTTP-Method-Override" "PUT",

HTTPHEADER "cookie" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; ").