Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have been attempting to add an existing custom property to an existing app with a qrs put. I have tried many different formats for the customProperties array. I am on Day 3 of trying to add a custom property to an app.
I get the error : Received error code: 400::The "GetAllByMany" operation failed.
My code is:
function setTheProps(appId, lastModifiedDate){ var jsonArr = []; jsonArr.push({ modifiedDate: lastModifiedDate, //this is the modifiedDate retrieved from the app modifiedByUserName: "my\\un", value: "Node C" }); console.log(props); console.log(jsonArr); trt.Put('/app/' + appId, { "modifiedDate": lastModifiedDate, // this is key, and is what's causing the 409 CONFLICT if missing "customProperties": jsonArr }, 'json' ).then(function(result) { console.log(result.body); }) .catch(function(error) { console.log('node customProps error: ' +error); process.exit(0); }); }
Hello I have the same issue (Qliksense february2018) adding existing custom properties to streams, dataconnections,...
I get
The "GetAllByMany" operation failed
Using the command
curl --cert client.pem --insecure --key client_key.pem https://localhost:14242/qrs/dataconnection/many?xrfkey=0123456789abcdef --header "x-qlik-xrfkey: 0123456789abcdef" --header "X-Qlik-User: UserDirectory=internal;UserId=sa_repository" -X POST --data-binary "@d.json" -H "Content-Type: application/json"
and the json file generated by "/qrs/dataconnection/full"
The command works if I set empty customProperties in my json file to
"customProperties": []
What's wrong?
Regards
Matteo
It goes wrong also with insert and then update:
1. I was able to create correctly the object without custom properties.
curl --cert certificates/prd/client.pem --insecure --key certificates/prd/client_key.pem https://localhost:142curl --cert certificates/prd/client.pem --insecure --key certificates/prd/client_key.pem https://localhost:14242/qrs/dataconnection/many?xrfkey=0123456789abcdef --header "x-qlik-xrfkey: 0123456789abcdef" --header "X-Qlik-User: UserDirectory=internal;UserId=sa_repository" -X POST --data-binary "@d.json" -H "Content-Type: application/json"
2. using the above reponse I added customProperties and I tried a PUT request to update the object
curl --cert certificates/prd/client.pem --insecure --key certificates/prd/client_key.pem https://localhost:14242/qrs/dataconnection/aaa9fa78-826f-4eac-8731-e84aeeb18b19?xrfkey=0123456789abcdef --header "x-qlik-xrfkey: 0123456789abcdef" --header "X-Qlik-User: UserDirectory=internal;UserId=sa_repository" -X PUT --data-binary "@dd-update.json" -H "Content-Type: application/json"
But the output is:
The "Update" operation failed