intacct / intacct-sdk-js

Official repository of the Sage Intacct SDK for JavaScript in Node.js
https://developer.intacct.com/tools/sdk-node-js/
Apache License 2.0
25 stars 32 forks source link

IntacctException - Response result block is missing status element #70

Closed ericelm closed 2 years ago

ericelm commented 3 years ago

This is happening when uniqueid = true and a duplicate statistical journal entry is trying to be created. I understand it should throw an error in this case but it seems there is a bug in the actual Result class.

IntacctException [Error]: Response result block is missing status element
    at new Result (/usr/src/app/node_modules/@intacct/intacct-sdk/dist/Xml/Response/Result.js:66:19)
    at new OnlineResponse (/usr/src/app/node_modules/@intacct/intacct-sdk/dist/Xml/OnlineResponse.js:55:44)
    at RequestHandler.<anonymous> (/usr/src/app/node_modules/@intacct/intacct-sdk/dist/Xml/RequestHandler.js:58:20)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/src/app/node_modules/@intacct/intacct-sdk/dist/Xml/RequestHandler.js:7:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
jimmymcpeter commented 3 years ago

Can you log the request and response XML and share it (removing any sensitive info)? The result back from Intacct should always have a status element, so it might be an issue with the Intacct API

dylan-holt-sage commented 3 years ago

@ericelm, just following up, please check on above comment from Jimmy.

dylan-holt-sage commented 2 years ago

If this issue is still occurring, please reopen the issue. Thanks.