General journal error

chinyenjechinyenje Member Posts: 14
hello
i keep gettin an error in my general journal saying you cannot make any changes in the database until a transaction has been started. this is happening when i m tryin to edit any already inputted entry when adding a dimension
Please help :?

Comments

  • WaldoWaldo Member Posts: 3,412
    Did you try to debug? Does it tell you more?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • chinyenjechinyenje Member Posts: 14
    Debug?? how do you mean forgive me am new at this
  • garakgarak Member Posts: 3,263
    Waldo mean: Do you have used the DEBUGGER (Tools -> DEbugger), to check where the error comes :?:

    Regards
    Do you make it right, it works too!
  • WaldoWaldo Member Posts: 3,412
    If you just swtich on "Tools/Debugger/Active", then the execution of the code wil stop on the line that causes the error. Surrounding code can tell you more about the problem.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • chinyenjechinyenje Member Posts: 14
    I have turned the degugger on it stops on JnlLineDim.MODIFY; in codeunit 408 below is the snip of the code. hope this helps

    GetGLSetup;
    IF ShortcutDimCode <> '' THEN BEGIN
    IF JnlLineDim.GET(
    TableID,JnlTemplateName,JnlBatchName,
    JnlLineNo,AllocationLineNo,GLSetupShortcutDimCode[FieldNumber])
    THEN BEGIN
    xRecRef.GETTABLE(JnlLineDim);
    JnlLineDim.VALIDATE("Dimension Value Code",ShortcutDimCode);
    JnlLineDim.MODIFY;
    RecRef.GETTABLE(JnlLineDim);
    ChangeLogMgt.LogModification(RecRef,xRecRef);
Sign In or Register to comment.