Patrik Wikström
90 posts
Registered:
15 Oct 2018
Answered
22 Mar 2019
Link to this post
We have created a Data Access class that uses REST to get and send data.
The tables in the data all have id as the unique keyfield for the records. We tried to add the id-field as id2 in the temp-table as used SERIALIZE-NAME = "id", First it looked like it would work but when we are fetching the Catalog over JSDO is says:
{
"title": "A runtime error has occurred",
"error": "Progress.Json.JsonError",
"messages": [
{
"message": "Call to Progress.Json.ObjectModel.JsonObject:Add( ) failed. Attempted to add duplicate property 'id'. (16056)",
"messageNum": 16056
},
{
"message": "Error attempting to push run time parameters onto the stack. (984)",
"messageNum": 984
},
{
"message": "Error attempting to push run time parameters onto the stack. (984)",
"messageNum": 984
},
{
"message": "Error attempting to push run time parameters onto the stack. (984)",
"messageNum": 984
}
]
}
Is there a way to solve this and why is "id" chosen as the new for a generated fieldname?