dcLinkPurchaseOrderEntry Returns Error when trying to add a line to an existing PO the first time, but subsequent calls are successful

I’m trying to add a line to a PO using the dcLINKPurchaseOrderEntry and I keep getting an error the first time I try a specific PO, the second time I try the same PO it completes without error

The error is

Return Code 2: .
Error Code 0917: Error: Date Invalid

I can manually add the line in E1 using the same version without any issue and the second and subsequent tries always work, I can’t find any information on this error in the documentation.

these are the parameters I’m passing in

cdcLINKActionCode_EV01 A
szProgramId_PID P4310
szVersion_VERS D000018
mnOrderNumber_DOCO 5067940
szOrderType_DCTO OL
szBranchPlant_MCU SAL
szDItemNumber_UITM 1200
mnDQuantityOrdered_UORG 1

I’m wondering if anyone else has run into this issue, thanks in advance.

Hi Becky,

I have checked some apps where I added the PO Entry function successfully.

Have you already tried to fill the input parameter: jdDRequestDate_DRQJ input format–> 2026/04/14. In all of my examples this input parameter was also passed in.

Let me know if that helps,

Anco

I figured it out, the version of the P4310 I was calling was for a different document type, so I had to use a different version that has an * in the document type field. Thank you for checking I appreciate the help.