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

Announcements

No record found.

News and Announcements icon
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,124

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,124 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
    239,040 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 663

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 439 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 337 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans