web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Reverse prepayment error

(3) ShareShare
ReportReport
Posted on by 139
When I try to reverse prepayment for an invoiced PO, there is an error "The state of the source document or source document line could not be updated".  The vendor's sales tax group setup is 0% VAT and prices include sales tax setup is also disabled. The item used in the PO is a procurement item. 
 
Line #23: Since the _taxLedgerDimension value is 0, the code could not retrieve the dimensionHierarchyId related to it. 
 
Line #27: There would also be error here because dimensionHierarchyId is 0.
 
 
_taxLedgerDimension is the operationLedgerDimension value. Do you happen to know where this value is usually retrieved from? or can you suggest what else can i check?
 
 
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    297,200 Super User 2025 Season 2 on at
    Reverse prepayment error
    Hi Marykate,

    Usually, a variable name starting with an underscore is being passed from the method calling this method. You can check which coding is executed in the call stack and search in these methods how the dimension is being retrieved or determined.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans