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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

The error is Method is obsolete. This method is no longer supported

(0) ShareShare
ReportReport
Posted on by 3,110

Hi experts,

I am getting the below error while getting Sales tax calcution check the error 

I am getting error in an abstract class SalesCalcTax_Sales
The method name is: CalcTax

The error is Method is obsolete. This method is no longer supported

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Shabir,

    What version and CU of AX 2012 are you on? I don't see this method marked as Obsolete. Also, could you share where you are getting this error?

  • Shabir Ahmad Profile Picture
    3,110 on at

    44527.Error.png

    Hi Gunjan Bhattacharyya,

    I am using this class for a report SSRS report Sales calculation.

    Best Regards,

    Shabir Ahmad

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Aha, so it's about TradeCalcTax::setTotalLineDiscountForDocument().

    Are you saying that it's your own code? If so, the best approach would be fixing this problem but not using the deprecated method.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Shabir,

    In standard instance of AX 2012, I don't see this method call, as highlighted by you. I can see this call, as highlighted below -

    pastedimage1652862023952v1.png

    Did you make any change to the method?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans