[ ax2012 ] Error executing code: Wrong argument types in variable assignment

Problem

Error executing code: Wrong argument types in variable assignment.

Stack trace

(C)\Classes\SrsPrintMgmtController\unpack - line 12
(C)\Classes\xSysLastValue\getLast - line 29
(C)\Classes\SysOperationController\loadFromSysLastValue - line 29
(C)\Classes\SrsReportRunController\loadFromSysLastValue - line 7
(C)\Classes\SysOperationController\getDataContractInfoObjects - line 10
(C)\Classes\SrsReportRunController\parmReportContract - line 14
(C)\Classes\SrsPrintMgmtController\init - line 18
(C)\Classes\SrsPrintMgmtFormLetterController\init - line 16
(C)\Classes\SrsPrintMgmtFormLetterController\startOperation - line 12
(C)\Classes\SalesConfirmController\main - line 24
(C)\Classes\xMenuFunction\run
(C)\Classes\MenuFunction\run - line 85
(C)\Data Dictionary\Tables\CustConfirmJour\Methods\printJournal - line 21
(C)\Classes\SalesConfirmJournalPrint\doPrint - line 7
(C)\Classes\FormletterJournalPrint\printJournal - line 36
(C)\Classes\FormLetterServiceController\afterOperationPrint - line 28
(C)\Classes\FormLetterServiceController\afterOperationBody - line 6
(C)\Classes\SalesFormLetter\afterOperationBody - line 6
(C)\Classes\FormLetterServiceController\afterOperation - line 9
(C)\Classes\SysOperationServiceController\run - line 70
(C)\Classes\FormLetterServiceController\run - line 3
(C)\Classes\SalesFormLetter\run - line 121
(C)\Classes\SalesFormLetter\main - line 113
(C)\Classes\FormFunctionButtonControl\Clicked

Cause

User cache

Solution

Clear user cache

Tools > Options > Usage Data > Reset

[ ax2012 ] useful query

receipt

select * from VendPackingSlipTrans

join VendPackingSlipJour

on VendPackingSlipTrans.VENDPACKINGSLIPJOUR = VendPackingSlipJour.recId

invoice

select * from VendInvoiceJour

join VendInvoiceTrans

on VendInvoiceTrans.PurchId = VendInvoiceJour.PurchId

and VendInvoiceTrans.InvoiceId = VendInvoiceJour.InvoiceId

and VendInvoiceTrans.InvoiceDate = VendInvoiceJour.InvoiceDate

and VendInvoiceTrans.numberSequenceGroup = VendInvoiceJour.numberSequenceGroup

and VendInvoiceTrans.InternalInvoiceId = VendInvoiceJour.InternalInvoiceId

purchtable

select * from purchTable
join purchLine
on purchLine.purchId = purchTable.purchId

ledgerjournaltable

select * from ledgerjournaltable
join ledgerjournaltrans
on ledgerjournaltrans.journalnum = ledgerjournaltable.journalnum

InventTrans

select * from InventTrans
join InventTransOrigin
on InventTrans.InventTransOrigin = InventTransOrigin.RecId
join VendPackingSlipTrans
on VendPackingSlipTrans.InventTransId = InventTransOrigin.InventTransId