Check if it happens in Fullscreen only (and not when the forms are not maximized).
NAV has a bug which continues code at the wrong position depending on fullscreen or not. This bug usually has no effect but in some cases it does. If it happens NAV first updates the form instead of continuing where it should. If the form uses functions from the source table and these functions use global variables in the table (which is an absolute NoNo - variables should be as local as possible) you might end up with changed record variables which are later used with a GET and produce this error.
MS confirmed the bug but said they are not going to fix it.
OnAfterGetRecord()
IF Item_L.GET("Item No.") THEN
Desig := Item_L.Description + Item_L."Description 2";
enD2 := 0;
IF COPYSTR("Bin Code",1,1) = '1' THEN BEGIN
BinContent_L.SETFILTER("Bin Code",'2A..2Z');
BinContent_L.SETFILTER("Item No.","Item No.");
IF BinContent_L.COUNT > 0 THEN
IF BinContent_L.FIND('-') THEN
REPEAT
enD2 := enD2 + (BinContent_L."PCB (Par combien)"*"Number of package");
UNTIL BinContent_L.NEXT = 0;
END;
Record variable in are local and Desig,enD2 in Global variable and use in TextBox on the Grill
OnValidate() in one Controle
SETFILTER("Item No.", FiltArt);
CptArt := Rec.COUNT;
Rec.FINDFIRST;
FiltArt,CptArt in Global varaible and use in TextBox in "SourceExpr" on the Form
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
THANKS for your help
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Please ask the technical person to check this..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
NAV has a bug which continues code at the wrong position depending on fullscreen or not. This bug usually has no effect but in some cases it does. If it happens NAV first updates the form instead of continuing where it should. If the form uses functions from the source table and these functions use global variables in the table (which is an absolute NoNo - variables should be as local as possible) you might end up with changed record variables which are later used with a GET and produce this error.
MS confirmed the bug but said they are not going to fix it.
FD Consulting
If NotBlank is yes for all primary key fields then the reason may be as said by FDickschat(I never faced in this situation :-# )
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Record variable in are local and Desig,enD2 in Global variable and use in TextBox on the Grill
FiltArt,CptArt in Global varaible and use in TextBox in "SourceExpr" on the Form
FiltEmp,CptArt in Global varaible and use in TextBox in "SourceExpr" on the Form
Then you will have to use the debugger. Will take a while but it should show where it is coming from.
FD Consulting