I'm sure I've done this before, and I remember struggling then too.
I need to provide a dataset and a temptable to our REST adapter code. I've got the elements mapped like this:
And I'm providing the JSON in one lump (ie one JSON object that contains the dataset and the temptable), as the body of the request.
I'm consistently met with the error "JSON value of ProDataset or temp-table parameter is invalid or empty."
Am I on the wrong track here?
Hi knavneet,
Yes the error I'm seeing is in the appserver logs.
The REST logs show that the parameters are being passed across as null:
2014-12-16 08:53:50.601 [DEBUG][REST] Param name: dsformdata
2014-12-16 08:53:50.601 [DEBUG][REST] Param type: 36
2014-12-16 08:53:50.601 [DEBUG][REST] Param ordinal: 4
2014-12-16 08:53:50.601 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.601 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.601 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param name: ttReportOptions
2014-12-16 08:53:50.602 [DEBUG][REST] Param type: 15
2014-12-16 08:53:50.602 [DEBUG][REST] Param ordinal: 5
2014-12-16 08:53:50.602 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.602 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.602 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
This tells me that the JSON I'm providing is incorrect (or I'm providing it incorrectly). I've double checked and the JSON is valid JSON, and when parsed the structure looks like I would expect. I'm at a bit of a loss as to where to go from here.
Thanks
Flag this post as spam/abuse.
I'm sure I've done this before, and I remember struggling then too.
I need to provide a dataset and a temptable to our REST adapter code. I've got the elements mapped like this:
And I'm providing the JSON in one lump (ie one JSON object that contains the dataset and the temptable), as the body of the request.
I'm consistently met with the error "JSON value of ProDataset or temp-table parameter is invalid or empty."
Am I on the wrong track here?
Flag this post as spam/abuse.
Hi knavneet,
Yes the error I'm seeing is in the appserver logs.
The REST logs show that the parameters are being passed across as null:
2014-12-16 08:53:50.601 [DEBUG][REST] Param name: dsformdata
2014-12-16 08:53:50.601 [DEBUG][REST] Param type: 36
2014-12-16 08:53:50.601 [DEBUG][REST] Param ordinal: 4
2014-12-16 08:53:50.601 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.601 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.601 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param name: ttReportOptions
2014-12-16 08:53:50.602 [DEBUG][REST] Param type: 15
2014-12-16 08:53:50.602 [DEBUG][REST] Param ordinal: 5
2014-12-16 08:53:50.602 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.602 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.602 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
This tells me that the JSON I'm providing is incorrect (or I'm providing it incorrectly). I've double checked and the JSON is valid JSON, and when parsed the structure looks like I would expect. I'm at a bit of a loss as to where to go from here.
Thanks
Hi knavneet,
Yes the error I'm seeing is in the appserver logs.
The REST logs show that the parameters are being passed across as null:
2014-12-16 08:53:50.601 [DEBUG][REST] Param name: dsformdata
2014-12-16 08:53:50.601 [DEBUG][REST] Param type: 36
2014-12-16 08:53:50.601 [DEBUG][REST] Param ordinal: 4
2014-12-16 08:53:50.601 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.601 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.601 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param name: ttReportOptions
2014-12-16 08:53:50.602 [DEBUG][REST] Param type: 15
2014-12-16 08:53:50.602 [DEBUG][REST] Param ordinal: 5
2014-12-16 08:53:50.602 [DEBUG][REST] Param mode: 1
2014-12-16 08:53:50.602 [DEBUG][REST] Param value: <Null>
2014-12-16 08:53:50.602 [DEBUG][REST] Param is extent: false
2014-12-16 08:53:50.602 [DEBUG][REST] Param extent: 0
2014-12-16 08:53:50.602 [DEBUG][REST] Param has Before Image: false
This tells me that the JSON I'm providing is incorrect (or I'm providing it incorrectly). I've double checked and the JSON is valid JSON, and when parsed the structure looks like I would expect. I'm at a bit of a loss as to where to go from here.
Thanks
Flag this post as spam/abuse.
Excellent, this is exactly the issue.
Many thanks!