............. // Register lines SourceCodeSetup.GET; LineCount := 0; IF RECORDLEVELLOCKING THEN WhseActivLine.LOCKTABLE; IF WhseActivLine.FIND('-') THEN BEGIN CreateRegActivHeader(WhseActivHeader); REPEAT LineCount := LineCount + 1; IF NOT HideDialog THEN BEGIN Window.UPDATE(3,LineCount); Window.UPDATE(4,ROUND(LineCount / NoOfRecords * 10000,1)); END; IF Location."Bin Mandatory" THEN RegisterWhseJnlLine(WhseActivLine); CreateRegActivLine(WhseActivLine); UNTIL WhseActivLine.NEXT = 0; END; ...........
Comments
Have you tried on different PCs? If you are using server, try to create backup and run on local PC.
I feel that you have some problem with PS hardware
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Ok, than it seems that problem is somewhere in this lines:
if it is neverending loop, it seems, like the WhseActivLine is modified somewhere in this functions and it corrupt the loop (like change of filtered field etc...)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It seems like all is correct. The loop is not corrupted.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Perhaps there is a bug in the standard coding because as I see it in the following code
should this range not be set to the WhseActivHeader record
ie
Just a suggestion :-k