cancel
Showing results for 
Search instead for 
Did you mean: 

No access possible via a 'NULL' data reference. Error message on Item-Event-AfterModify.absl

former_member712295
Participant
0 Kudos

Hello,

May I ask your assistance because there is an error "No access possible via a 'NULL' data reference" on our script

SalesOrder-Item-Event-AfterModify.absl

NodeID of "this" was: 00163EAB9E511EEBB0ED9FC627C65FCC

Script below is

if (this.ItemProduct.IsSet())

{

if (!this.ItemProduct.QuantityMeasureUnitCode.IsInitial())

{

this.ItemProduct.QuantityMeasureUnitCode = quantitycoversion.CorrespondingQuantity.unitCode;

}

}

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206060
Contributor
0 Kudos

Hello Carlo,

This error will occur during runtime if you are trying to access an association that is not set or reading a value of an element that has no value.

In your case, the issue should be caused due to the value is "quantitycoversion.CorrespondingQuantity.unitCode;" be empty. Please check if this field is empty, if yes you can put a condition to check if this is null or not before passing to this.ItemProduct.QuantityMeasureUnitCode.

Thanks,

Dhanya