[ https://issues.apache.org/jira/browse/OLINGO-1626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gourav updated OLINGO-1626: --------------------------- Description: 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] 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 the above content to OData Client to create the ODataEntity {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! *Maven dependency:* <dependency> <groupId>org.apache.olingo</groupId> <artifactId>odata-client-api</artifactId> <version>4.7.0</version> </dependency> <dependency> <groupId>org.apache.olingo</groupId> <artifactId>odata-client-core</artifactId> <version>4.7.0</version> </dependency> <dependency> <groupId>org.apache.olingo</groupId> <artifactId>odata-commons-api</artifactId> <version>4.7.0</version> </dependency> <dependency> <groupId>org.apache.olingo</groupId> <artifactId>odata-commons-core</artifactId> <version>4.7.0</version> </dependency> Is there anything we can fix this issue or any workaround we can apply for now? was: 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! > 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 > Priority: Blocker > 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] > 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 the above content to OData Client to create the ODataEntity > > {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! > > *Maven dependency:* > <dependency> > <groupId>org.apache.olingo</groupId> > <artifactId>odata-client-api</artifactId> > <version>4.7.0</version> > </dependency> > <dependency> > <groupId>org.apache.olingo</groupId> > <artifactId>odata-client-core</artifactId> > <version>4.7.0</version> > </dependency> > <dependency> > <groupId>org.apache.olingo</groupId> > <artifactId>odata-commons-api</artifactId> > <version>4.7.0</version> > </dependency> > <dependency> > <groupId>org.apache.olingo</groupId> > <artifactId>odata-commons-core</artifactId> > <version>4.7.0</version> > </dependency> > > Is there anything we can fix this issue or any workaround we can apply for > now? -- This message was sent by Atlassian Jira (v8.20.10#820010)