Hello everyone,
We upgrade a client to NAV 2018, and we have an error when the customer try to use dimensions. If the customer insert dimensions in sales quote recives the next error: "Sorry, we just update this page. Reopen it, and try again". I debug it and I can see that this error is in function ShowDocDim in table 36-SalesHeader. The error is on the MODIFY, but in SalesHeader table we don't have any code in OnModify function.
This NAV es 2018 CU0 and I try to find this crash, but I can't. I feel that if I upgrade to the last CU (in this moment, CU9), I'll continue getting the error.
Anyone can help me?
Best regards.
0
Answers
I got the same error message and I managed to fix it.
It is a bug in NAV 2018, Microsoft is working on as it as far as I managed to find out.
I am not sure if it is the same issue in your case, but the problem is caused by existing error message during insert modify.
previous code that caused the error message
- snip ---
IF NOT RecordReference.INSERT(TRUE) THEN BEGIN
RecordReference.MODIFY(TRUE); // here it would stop and show the error
END;
---snip----
So I changed the code like this and it works.
---snip---
IF NOT RecordReference.INSERT(TRUE) THEN BEGIN
CLEAR(RecRef2);
RecRef2:= RecordReference;
CLEARLASTERROR; // this does nto do much, so you cna remove it
RecRef2.FINDFIRST; // This seems to resolve the issue
RecRef2.MODIFY(TRUE);
END;
---snip---
I hope this helps.
Thanks