Skip to main content

Notifications

Announcements

No record found.

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

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

Posted on by 3,024

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

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: The error is Method is obsolete. This method is no longer supported

    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?

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: The error is Method is obsolete. This method is no longer supported

    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.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,024 on at
    RE: The error is Method is obsolete. This method is no longer supported

    44527.Error.png

    Hi Gunjan Bhattacharyya,

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

    Best Regards,

    Shabir Ahmad

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: The error is Method is obsolete. This method is no longer supported

    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?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans