Skip to Content

Error AP_ESI_COMMON 107 when assign value for custom field on Release event Outbound Delivery

Hi,

The error AP_ESI_COMMON 107 is only raised when I "Realse" Outbound Delivery and assign value for custom field on Event-BeforSave of Outbound Delivery Extension object.

It's ok when I click "Save" button.

Here my code on Event-BeforeSave of Outbound Delivery Extension


import ABSL;

this.EDI_Shipment_Date = "abc";


Can you please give me some ideas about this ?

capture.png (109.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 16 at 09:01 AM

    Hi Quyen Nguyen,


    That error occurred because you are update/inserting instance value when your document status is *Not* in write-allowed state.

    So you have to check the status before you assign value.

    example;

    // 3 = Released

    if(this.Status.ReleaseStatusCode != "3") {

    this.EDI_Shipment_Date = "abc";

    }

    *if needed, please check other status also


    Regards,

    May

    Add comment
    10|10000 characters needed characters exceeded