error when posting an invoice

madalinamadalina Member Posts: 46
edited 2004-07-01 in Navision Attain
hi everyone...

i encountered the following problem :

when i try to post a sales invoice i get the following error message :
"Reference to member CheckCOGSDimValuePost of the variable could not be solved"

can anyone tell me where to look for the problem?

thanks a lot

Mada.
Mada

Comments

  • Edward_BloomfieldEdward_Bloomfield Member Posts: 155
    Hello,

    It sounds like you have a version control problem! Navision is trying to write to a field or a variable (Looking at the name, it is probably a variable) in another object, but it does not exist in that object.

    This generally happens when people (users or consultants) get out of step with the modifications on the system, e.g. A & B both do development, they both take a copy of the database and make their changes, but one of the objects they change overlaps (e.g. They both change codeunit 80).

    A loads their objects, and everything is fine, B loads their objects, which deletes A's changes to codeunit 80, but the other changes are still there...

    As a result, A's changed objects try to use this variable, but cannot find it...

    You need to speak to your development team or NSC.

    Hope this is of help!
    Edward Bloomfield

    Lead Consultant
    Theta
  • kinekine Member Posts: 12,562
    Try close navision and open.... (like windows restart... :-)

    Try recompile all objects... there will be some problems....
    8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Dean_AxonDean_Axon Member Posts: 193
    Hi Mada,

    As per Ed's post things to check :

    1) The Navision Version

    Help>> About MBS - Navision.
    Look for the Version Number and also what is in the brackets and post it here. This will give an indication as to whether there maybe some version control issues.

    2) Check the object version

    Tools >> Object Designer. Click on Codeunits and scroll down until you find codeunit 80. Look right until you find the version number. Again post this here.


    Next thing is to track the error. This should only really be done if you are used to looking at code

    Click Tools>>Debugger>>Active

    Make sure that Tools>>Debugger>>Breakpoint on Triggers has no tick against it otherwise the next step will be painfully slow.

    Try to post the invoice again. As you have debugger turned on, this should show you which section of code the error is in.
    Again post this here.


    Sorry if this all seems a bit obvious, but as I cannot tell you expertise level from your profile, I choose not to assume!!

    Hope this helps a little


    Dean
    Remember: Keep it simple
  • madalinamadalina Member Posts: 46
    hi Dean,

    thanks a lot, i will keep in mind the hints you gave me, for now though the problem is solved. it seems that a colleague of mine has managed to modify codeunit 408 and that's where the source of the problem was. i have managed to replace it with the original version and now it works just fine. :wink:

    you were right to assume i was somehow unexperienced, i've only started working with Navision for 2 months, but i'm getting there, slowly an clumsily but i hope one day i will be able to give advice to people just like you are :P

    thank you very much for your imput..
    keep in touch..

    Mada.

    P.S.: and thank you, everyone who tried to help, i appreciate it.
    Mada
  • Dean_AxonDean_Axon Member Posts: 193
    Hi Mada,
    it seems that a colleague of mine has managed to modify codeunit 408 and that's where the source of the problem was.

    No wonder I could not find this :shock:

    I had looked in all attain version and even version 3.01 !!!

    Glad you found it though. :D

    Always glad to help :D:D

    Dean
    Remember: Keep it simple
Sign In or Register to comment.