on 2023 May 08 3:09 AM
Hi experts,
Implementing a OData inbound Restful call.
Getting the below error when sending date object in the request. (when I remove date object in the request, it is fine; the request has 5 other atributes.)
Error in postman: Operand type clash: datetime2 is incompatible with bigint; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Operand type clash: datetime2 is incompatible with bigint
It is "java.util.Date" type items.xml.
Below is the impex for IntegrationObjectItemAttribute:
INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true] ; attributeName[unique = true] ; attributeDescriptor(enclosingType(code), qualifier) ; returnIntegrationObjectItem(integrationObject(code), code) ; unique[default = false] ; autoCreate[default = false]
; InboundSapExternalDocument:SapExternalDocument ; createdAt ; SapExternalDocument:createdAt ; ; ;
Can you please help me. Thanks.
Request clarification before answering.
Hi Pavan,
The reason maybe that the related type for 'createAt' is int/integer rather than java.util.Date, i just tried it locally, as the type is java.util.Date, the post operation can be successful.
Hopefully it can help you a little.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi safin,
I rechecked and am sure that the type is java.util.Date.
I am using linux virtual box, do you think there is anything to do with that? Please find below the whole error:
uncategorized SQLException for SQL []; SQL state [S0002]; error code [206]; Operand type clash: datetime2 is incompatible with bigint; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Operand type clash: datetime2 is incompatible with bigint
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.