on 06-10-2021 3:30 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.