Skip to Content
0

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

May 16 at 08:25 AM

38

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

May Thitsa Oo May 16 at 09:01 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded