This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

API error code 154

Hi everyone 

We are creating an object through the API and everything seems to be working fine, but when we try to send a multiline field in the JSON, we receive an "ErrorCode": "154", "Status": 500, "Message": "Wrong data type for the definition of the property 'Equipment Failure'".

This si the properties in json 

{
'TypedValue': {
'Value':'tikect de prueba',
'HasValue': true,
'DisplayValue':'tikect de prueba',
'SerializedValue':'tikect de prueba',
'DataType': 1,
'SortingKey': '',
'IsNumberSorting' : false,
'HasAutomaticPermission' : false
},
'Value': {
'Value':'tikect de prueba',
'HasValue': true,
'DisplayValue':'tikect de prueba',
'SerializedValue':'tikect de prueba',
'DataType': 1,
'SortingKey': '',
'IsNumberSorting' : false,
'HasAutomaticPermission' : false
},
'PropertyDef': 1191,
'ContentType': 0,
'HasAutomaticPermission': false
}

 exist any specific way to build the json for multiline fields? 

Parents Reply
  • Hi Craig,

    if we do not send the multiline field, the object is created correctly in M-Files with text, date, and numeric fields. However, it seems that the multiline field is causing some issues. I'm not sure if you suggest creating the object first and then updating it to add the multiline text. Could you please clarify your suggestion for me?

Children