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

vendor payment advice report not printing/running after update (10.0.31)

(0) ShareShare
ReportReport
Posted on by 1,536

Hi Expert

I am facing an issue after updating the D365 FO from old to (10.0.31), I have customized controller class through which we are printing our custom report design, but after update the system throw exception like, before update there was a class BankPaymAdviceVendController which later on updated to BankPaymAdviceVendControllerV2 in(10.0.31)

following are our customized class : 

  • BankPaymAdviceReportGeneratorVendExt 
  • BankPaymAdviceReportGeneratorExt
  • BankPaymAdviceReportGeneratorVendPostedExt

An error occurred when running report BankPaymAdviceVendV2.Report. Message: Unable to cast object of type 'Dynamics.AX.Application.BankPaymAdviceReportGeneratorVendExt' to type 'Dynamics.AX.Application.BankPaymAdviceReportGenerator'..
exceptionType System.InvalidCastException
stackTrace System.InvalidCastException: Unable to cast object of type 'Dynamics.AX.Application.BankPaymAdviceReportGeneratorVendExt' to type 'Dynamics.AX.Application.BankPaymAdviceReportGenerator'. at Dynamics.AX.Application.BankPaymAdviceReportGenerator.`newForJournal(String _ledgerJournalId) at Dynamics.AX.Application.BankPaymAdviceReportGenerator.newForJournal(String _ledgerJournalId) at Dynamics.AX.Application.BankPaymAdviceVendControllerV2.printLine(LedgerJournalTrans _ledgerJournalTrans, BankPaymAdviceContract _contract, SrsPrintDestinationSettings _printSettings, NoYes _shouldDefaultFromPrintMgmt) at Dynamics.AX.Application.BankPaymAdviceVendControllerV2.printContractQuery() at Dynamics.AX.Application.BankPaymAdviceVendControllerV2.`runPrintMgmt() at Dynamics.AX.Application.BankPaymAdviceVendControllerV2.runPrintMgmt() at Dynamics.AX.Application.SrsPrintMgmtController.run()

Appreciate your expert suggestions. 

I have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: vendor payment advice report not printing/running after update (10.0.31)

    Hi Munsif,

    I think this is due to the customization you have done.

    Code is trying to get object of type BankPaymAdviceReportGenerator but you are assigning some other values.

    You need to debug the code and find out that piece of code which is causing this error.

    Thanks,

    Girish S.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 636

#3
Martin Dráb Profile Picture

Martin Dráb 553 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans