Quantcast
Channel: Dynamics User Group
Viewing all articles
Browse latest Browse all 15740

Error when doing batch processing for posting project invoices (MicroSystem.InvalidCastException:

$
0
0

Hi guys,

I want project invoice to be posted monthly so I create a recurring batch task under Project Module/ Periodic/ Invoices/ Post invoice proposals and the system throw me error as below.

I did full CIL and restart the server, but it doesn't help. 

Also we didn't change anything on AOT, so i really don't know how come errors came. Any clue how to fix it?

 

 

System.InvalidCastException: Unable to cast object of type 'Dynamics.Ax.Application.SalesTotals_Proj' to type 'Dynamics.Ax.Application.ProjProposalTotals'.

   at Dynamics.Ax.Application.SalesCalcTax_ProjProposal.Calctax(TradeTotalsBase _projProposalTotals) in SalesCalcTax_ProjProposal.calcTax.xpp:line 5

   at Dynamics.Ax.Application.TradeTotals.Calc() in TradeTotals.calc.xpp:line 81

   at Dynamics.Ax.Application.ProjProposalTotals.Calc() in ProjProposalTotals.calc.xpp:line 26

   at Dynamics.Ax.Application.ProjInvoiceChoose.setProjProposalTotals(String _projProposalId) in ProjInvoiceChoose.setProjProposalTotals.xpp:line 13

   at Dynamics.Ax.Application.ProjInvoiceChoose.Updateinvoicetotal() in ProjInvoiceChoose.updateInvoiceTotal.xpp:line 41

   at Dynamics.Ax.Application.ProjInvoiceChoose.Run() in ProjInvoiceChoose.run.xpp:line 36

   at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 50

   at BatchRun::runJobStatic(Object[] )

   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

   at BatchIL.taskThreadEntry(Object threadArg)

 


Viewing all articles
Browse latest Browse all 15740

Trending Articles