Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Reverse prepayment error

(2) ShareShare
ReportReport
Posted on by 137
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:
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,904 Super User 2024 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans