Validate field and error RESTART NAVISION

pdz
pdz Member Posts: 5
I use Live Database.

And I validate every fields of this form and it's show the error below !

Please !

What can I do for fixing it ?
4.jpg 47.6K

Comments

  • pdz
    pdz Member Posts: 5
    Cause this form is not standard Navision so I did not show it.

    If the question is not clear , please let me know , thank you.
  • vaprog
    vaprog Member Posts: 1,163
    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?
  • skulla
    skulla Member Posts: 140
    You may find some information about the error in the event viewer, so check please check it.
  • pdz
    pdz Member Posts: 5
    Thank you all for kindness.

    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.
  • Kishorm
    Kishorm Member Posts: 921
    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.
  • pdz
    pdz Member Posts: 5
    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.


    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"