Gourav created OLINGO-1626: ------------------------------ Summary: Olingo V4 | Error updating any DateTime fields in User. Key: OLINGO-1626 URL: https://issues.apache.org/jira/browse/OLINGO-1626 Project: Olingo Issue Type: Bug Components: odata4-client Affects Versions: (Java) V4 4.7.0 Reporter: Gourav Attachments: image-2024-06-10-12-12-07-853.png
Error updating any DateTime fields on the user object. Error: Error Code: Error while executing activity operation for update. The Exception is (Request_BadRequest) A value was encountered that has a type name that is incompatible with the metadata. The value specified its type as 'Edm.String', but the type specified in the metadata is 'Edm.DateTimeOffset'. [HTTP/1.1 400 Bad Request], Error Desc: Error while executing activity operation for update. The Exception is (Request_BadRequest) A value was encountered that has a type name that is incompatible with the metadata. The value specified its type as 'Edm.String', but the type specified in the metadata is 'Edm.DateTimeOffset'. [HTTP/1.1 400 Bad Request] ,Stack Trace: org.jitterbit.connector.sdk.exceptions.ActivityExecutionException: Error while executing activity operation for update. The Exception is (Request_BadRequest) A value was encountered that has a type name that is incompatible with the metadata. The value specified its type as 'Edm.String', but the type specified in the metadata is 'Edm.DateTimeOffset'. [HTTP/1.1 400 Bad Request] API: Request JSON: *{* *"streetAddress": "1853 W. Kettle Ave",* *"displayName": "Sam Jones",* *"surname": "Jones",* *"givenName": "Sam",* *"employeeId": "nborgerd",* *"id": "0805ee4b-5078-4f94-ad8f-1a7e756bf984",* *"employeeHireDate": "2024-05-26T00:00:00Z",* *"accountEnabled": true* *}* Sending this to OData Client {code:java} client.getBinder().getODataEntity(client.getDeserializer(ContentType.APPLICATION_JSON).toEntity(stream));{code} Here is the screenshot where *employeeHireDate* have dateTypeOffset value but olingo assuming this as Edm.string; !image-2024-06-10-12-12-07-853.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)