RESTlet — Missing Date Field when Importing Vendor Bill linked to a Purchase Order

Hi! I’m creating a Vendor Bill from a third-party provider using a RESTlet script, however, I get this response:
{
   success: false,
   message: "You entered 'null' into a field where a calendar date was expected.\\nPlease go back and change this value to the correct date.",
   name: "DATE_EXPECTED"
}
The integration script is converting and pushing the following date information from the payload:
  • date: “2024-09-23” -> mapped to {trandate}, date transformed to “2024-09-23T07:00:00.000Z”
  • duedate: “2024-10-08” -> mapped to {duedate}, date transformed to “2024-10-08T07:00:00.000Z”
For context, the erroneous Vendor Bill that I’m trying to import is linked to a Purchase Order (no issue with importing a standalone Vendor Bill with the same script and payload format). No custom Date field for either the PO or the vendor bill.Has anyone encountered such a case? Does anyone have any idea which field NetSuite is asking for?
Rookie Asked on November 12, 2024 in SuiteScript.
Add Comment
1 Answer(s)

Hi,

Could you please provide the payload that you are sending.

Thanks,

Chris

Advanced Answered on November 15, 2024.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor