If you want to see Yeti, you have to go to the Himalayas, investigate, follow tracks, maybe set up traps...
It would be a very lucky shot if someone told you, from the information you've given, it is for that reason. You have to narrow down the possible cause, until it is evident. (that method is called "divide et impera", divide and conquer.
Some things you can do:
try with different data
try a different user
try a different machine
make sure NAV and all other involved components are properly installed (not just copied to the machine) and not corrupted.
recompile all objects involved. Fix those with errors.
check the database
use the debugger to find the place in code where the error occurs
Did you, by chance, import an object as .fob from a later version than you are running?
You would need to export in text format (instead of fob format) and then import that file and then compile the object. You may get an error if the text file has any properties that are new in the newer version of NAV but don't exist in the older version - in this case you would need to remove those properties from the text file before importing into the older NAV client.
Thanks to everybody , and Kishorm I had import and export then can compile normally.
Actually , back to the beginning , when I run with debugger It's run to this code statement.
Comments
If the question is not clear , please let me know , thank you.
It would be a very lucky shot if someone told you, from the information you've given, it is for that reason. You have to narrow down the possible cause, until it is evident. (that method is called "divide et impera", divide and conquer.
Some things you can do:
Did you, by chance, import an object as .fob from a later version than you are running?
ArcherPoint, Inc http://www.archerpoint.com
Blog: http://www.navisionworld.com
skkulla
I guess the cause of problem is someone import object with late version.
If what I guess is right , what the right way to fix is.
Actually , back to the beginning , when I run with debugger It's run to this code statement.
IF PurchInvHeader."Currency Factor" <> 0 THEN BEGIN
{1} TotWHTAmountLCY := ROUND(TotWHTAmount/PurchInvHeader."Currency Factor",
GLSetup."Amount Rounding Precision");
{2} TotWHTBaseAmountLCY := ROUND(TotWHTBaseAmount/PurchInvHeader."Currency Factor",
GLSetup."Amount Rounding Precision");
{3} TotWHTDifference := ROUND(TotWHTDifference/PurchInvHeader."Currency Factor",
GLSetup."Amount Rounding Precision");
I find if the program run to {1} , {2} , {3} it will show error "Restart Navsion"