"Insufficient memory (stack)" upon posting purchase invoice

Kowa
Kowa Member Posts: 927
Version 5.0 Build 25653

When Receiving & Invoicing a purchase order the well-known error message for all developers :wink:
Insufficient memory (stack) to execute this function... comes up, but in this case it comes from standard code.

The error is caused by repeated calls of the function UpdateLinkedValuationDate in (uncustomized) Codeunit 22. Any suggestions as to what might cause this error welcome.
Kai Kowalewski

Answers

  • kine
    kine Member Posts: 12,562
    Code is standard, but it seems like some data are wrong. May be something like neverending loop in applied entries?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Kowa
    Kowa Member Posts: 927
    I managed to locate it. There were two drop shipment item ledger entries with quantities of 9 and -9, but one of the corresponding item application entries only had a quantity of 8 (assumingly due to an upgrade issue).
    Kai Kowalewski