Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SalesforceRestDataProvider serializes DATE fields as DATETIME #3908

Closed
davidnich opened this issue May 2, 2020 · 0 comments
Closed

SalesforceRestDataProvider serializes DATE fields as DATETIME #3908

davidnich opened this issue May 2, 2020 · 0 comments
Assignees
Milestone

Comments

@davidnich
Copy link
Contributor

this causes errors:

2020.05.02 08:23:41.353973 T14: ID 105: WI 79983: ErpOrdersToCrmStep(672/0): User exception: /Users/david/src/Qorus/test/qlib/SalesforceRestDataProvider/SalesforceRestObjectDataProvider.qc:195 (Qore): HTTP-CLIENT-RECEIVE-ERROR: HTTP status code 400 received: message: Bad Request (arg: {request-uri: "POST /services/data/v48.0/sobjects/Order HTTP/1.1", response-code: 400, response-body: [{message: "Cannot deserialize instance of date from VALUE_STRING value 2020-04-30T13:19:18.000000+02:00 or request may be missing a required field at [line:1, column:35]", errorCode: "JSON_PARSER_ERROR"}]})
  SalesforceRestObjectDataProvider::createRecordImpl() called at /Users/david/src/Qorus/test/qlib/DataProvider/AbstractDataProvider.qc:244 (Qore user code)
  AbstractDataProvider::createRecord() called at /Users/david/src/Qorus/test/qlib/Mapper.qm:2068 (Qore user code)
  Mapper::mapDataIntern() called at /Users/david/src/Qorus/test/qlib/Mapper.qm:1873 (Qore user code)
  Mapper::mapData() called at /Users/david/src/Qorus/test/qlib/Mapper.qm:1842 (Qore user code)
  Mapper::mapAll() called at CLASS BBM_GenericMapper:1.0:27 (Qore source "BBM_GenericMapper-1.0.qclass":27 user code)
  BBM_GenericMapper::genericMapper() called at <builtin>:-1 (Qore user code)
  call_object_method_args() called at ErpOrdersToCrmStep:39 (Qore source "/Users/david/src/Qorus/test/user/src/ErpOrdersToCrmStep-1.0.qstep":39 builtin code)
  ClassConnections_ErpOrdersToCrmStep::callClassWithPrefixMethod() called at ErpOrdersToCrmStep:46 (Qore source "/Users/david/src/Qorus/test/user/src/ErpOrdersToCrmStep-1.0.qstep":46 user code)
  ClassConnections_ErpOrdersToCrmStep::Connection_1() called at ErpOrdersToCrmStep:15 (Qore source "/Users/david/src/Qorus/test/user/src/ErpOrdersToCrmStep-1.0.qstep":15 user code)
  ErpOrdersToCrmStep::primary() called at <builtin>:-1 (Qore user code)
  call_object_method_args() called at Workflow.qc:218 (Qore builtin code)
  Workflow::runStepPrimaryArgs() called at WorkflowExecutionInstance.qc:2712 (Qore user code)
  WorkflowExecutionInstance::executeNormalStep() called at WorkflowExecutionInstance.qc:1533 (Qore user code)
  WorkflowExecutionInstance::execStep() called at WorkflowExecutionInstance.qc:1638 (Qore user code)
  WorkflowExecutionInstance::execStepThread() called at WorkflowExecutionInstance.qc:1992 (Qore user code)
  WorkflowExecutionInstance::execSegment() called at WorkflowExecutionInstance.qc:947 (Qore user code)
  WorkflowExecutionInstance::startRecoverySegment() called at WorkflowExecutionInstance.qc:1057 (Qore user code)
  *** thread started by background operator ***
@davidnich davidnich added this to the 0.9.4.4 milestone May 2, 2020
@davidnich davidnich self-assigned this May 2, 2020
davidnich added a commit that referenced this issue May 2, 2020
…ataProvider

refs #3909: log output before calling output providers
davidnich added a commit that referenced this issue May 2, 2020
…ataProvider (#3910)

refs #3909: log output before calling output providers
davidnich added a commit that referenced this issue May 2, 2020
…ataProvider (#3910)

refs #3909: log output before calling output providers
davidnich added a commit that referenced this issue May 2, 2020
…ataProvider (#3910) (#3911)

refs #3909: log output before calling output providers
@davidnich davidnich added the fixed label May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant