Share via

Purchase invoice could not be posted because of this message

SCHUMACHER, Sigrid - TE DE 20 Reputation points
2026-04-22T07:18:47.2933333+00:00

Payable Amount Reposting must have a value in Source Code Setup: Primary Key=. It cannot be zero or empty

Microsoft 365 and Office | Subscription, account, billing | For business | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Daniel-Vo 6,095 Reputation points Microsoft External Staff Moderator
    2026-04-22T09:34:40.7366667+00:00

    Dear @SCHUMACHER, Sigrid - TE DE,

    I understand that you are trying to resolve an error while posting a purchase invoice. This issue is related to Dynamics 365/Business Central purchase invoice posting and Source Code Setup, rather than Microsoft 365 subscription or Office support

    I’d like to explain that this Microsoft Q&A forum is intended for questions related to products such as Microsoft 365 and Office, Azure, Entra, Windows while Dynamics 365 questions are best handled in the dedicated Dynamics 365 Community, where the product specialists and community experts for Business Central are active.

    Please post your question in the Dynamics 365 Community here: https://community.dynamics.com/

    User's image

    If your issue is related to Business Central / NAV, please choose the Small and medium business | Business Central, NAV, RMS section when posting.

    Thank you for your cooperation.


    If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-04-22T07:19:01.1133333+00:00

    The error indicates that the Payable Amount Reposting field in Source Code Setup is blank, zero, or not correctly configured, so the system blocks posting of the purchase invoice.

    To resolve it in Dynamics NAV 2009:

    1. Open Source Code Setup:
      • Go to the Source Code Setup page (typically via Departments → Administration → Application Setup → Financial Management → General Ledger → Source Code Setup).
    2. Locate the relevant source code line:
      • Find the record that corresponds to the source code used for purchase invoices (for example, the source code that is assigned to purchase journals or purchase documents in your setup).
    3. Set Payable Amount Reposting:
      • On that line, ensure the Payable Amount Reposting field has a valid value (not blank and not zero), according to the configuration rules used in the environment.
      • Save the changes.
    4. Retry posting:
      • Return to the purchase invoice and post again. With Payable Amount Reposting correctly populated, the posting should complete without this specific error.

    If the field is already set but the error persists, verify that:

    • The correct Source Code is assigned to the purchase posting setup being used.
    • No customizations or extensions are overriding Source Code Setup behavior.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.