C/Front OCX Error Codes

emilygrahamemilygraham Member Posts: 5
Hi,

I have written a small program which uses the C/Front OCX to synchronize data between a Domino application and Navision. This program has been working fine for months but for some reason started erroring out a couple of weeks ago. Until the Navision administrator gets back to me to let me know what, if anything, was changed on the day it stopped working, I'm trying to see if I can narrow down what the problem might be.

The program is failing on a FindRec call, and using the LastError function I can see that the error number is 1246481 but have no idea how to find out what this means. Can anyone tell me how I can translate this number into the much more useful 'Error xxx in Module xx' error message? Like I said, this code was working fine up until a couple of weeks ago - I've not changed anything in my code so finding out what the error actually means should hopefully enable me to track down what's changed on the Navision side of things.

Thanks,
Emily Graham.

Comments

  • pduckpduck Member Posts: 147
    I had such a problem when using the FindeRec and the Table was empty. Altoutgh I allowed empty records C/Front failed. So now I use an "If RecCount > 0" before the FindRec function.
  • emilygrahamemilygraham Member Posts: 5
    pduck wrote:
    I had such a problem when using the FindeRec and the Table was empty. Altoutgh I allowed empty records C/Front failed. So now I use an "If RecCount > 0" before the FindRec function.

    Thanks for the advice. I tried putting in a RecCount but the code now fails on that line instead, with the same error - 1246481. Is there any way I can find out what this error code means?

    Emily.
  • Timo_LässerTimo_Lässer Member Posts: 481
    [...]
    The program is failing on a FindRec call, and using the LastError function I can see that the error number is 1246481 but have no idea how to find out what this means.
    [...]
    Errorcode 1246481 means:
    Internal Error 1297 in Module 19
    #Err_DB_ModifyDenied

    Sorry, but I have no more informations about this error.
    I hope this could help you.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • emilygrahamemilygraham Member Posts: 5
    Great - thanks for that. Maybe they've changed the access of the username I'm logging in with.

    Can you tell me how you found out that error code 1246481 means Error 1297 in module 19? It would really help me with any future problems if I knew how to find this out rather than having to ask other people all the time!

    Emily.
  • emilygrahamemilygraham Member Posts: 5
    Well, it turns out that someone had changed the access of the username that was being used and this is what caused the problem!

    Thanks to the two of you who posted responses. Again, if anyone can tell me how to get from 1246481 to error 1297 in module 19 (or how to work out what any of the other codes relate to) i'd be very grateful!

    Thanks again,
    Emily.
Sign In or Register to comment.