Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Can anyone help ?

$
0
0

Hi,

I have extended the ParmListSales macro of the SaleFormLetterContract class to include a boolean value. Basically added another runtime option to the SalesEditLinesForm. It packs and unpack as expected when running a Pro Forma Invoice (and provides the designed functionality). However when Invoicing (same options a the Pro Forma just with the Posting selected). It throws the error below. Does anyone understand why it is happening/resolved this ?

Thanks for your time :-)

System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.Object[]'.

   at Dynamics.Ax.Application.SalesFormLetterContract.Unpack(Object[] _packedClass) in SalesFormLetterContract.unpack.xpp:line 9

   at Dynamics.Ax.Application.SalesFormLetterInvoiceContract.Unpack(Object[] _packedClass) in SalesFormLetterInvoiceContract.unpack.xpp:line 10

   at Dynamics.Ax.Application.SysOperationDataContractInfo.Unpackdatacontractobject(Object[] _packedState) in SysOperationDataContractInfo.unpackDataContractObject.xpp:line 21

   at Dynamics.Ax.Application.SysOperationController.Unpackdatacontractinfoobjects(Object[] packedContracts) in SysOperationController.unpackDataContractInfoObjects.xpp:line 30

   at Dynamics.Ax.Application.SysOperationController.Unpack(Object[] pack) in SysOperationController.unpack.xpp:line 67

   at Dynamics.Ax.Application.SysOperationServiceController.Unpack(Object[] packedState) in SysOperationServiceController.unpack.xpp:line 15

   at Dynamics.Ax.Application.SalesFormLetter.Unpack(Object[] _packedClass) in SalesFormLetter.unpack.xpp:line 10

   at Dynamics.Ax.Application.SalesFormLetter_Invoice.Unpack(Object[] _packedClass) in SalesFormLetter_Invoice.unpack.xpp:line 58

   at Dynamics.Ax.Application.SysOperationServiceController.runServiceOperation(Object[] parameters) in SysOperationServiceController.runServiceOperation.xpp:line 16

   at SysOperationServiceController::runServiceOperation(Object[] )

 


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>