Purchase Requisition

engabdulla82engabdulla82 Member Posts: 20
edited 2011-03-09 in Dynamics AX
Dear All,

I have configured work flow for purchase approval. I have created purchase request. when I tried to add lines the following stop error is appear after choosing an item. I tried for another items, dut the problem is same.

Error executing code: Wrong argument types in variable assignment.



(C)\Classes\ReqSetup\itemId - line 4
(C)\Classes\ReqSetup\newItemId - line 9
(C)\Classes\ReqSetupDim\newInventTable - line 14
(C)\Data Dictionary\Tables\InventTable\Methods\primaryVendorId - line 11
(C)\Data Dictionary\Tables\PurchReqLine\Methods\findPrimaryVendor - line 7
(C)\Data Dictionary\Tables\PurchReqLine\Methods\initVendAccount - line 3
(C)\Data Dictionary\Tables\PurchReqLine\Methods\initFromInventTable - line 25
(C)\Data Dictionary\Tables\PurchReqLine\Methods\modifiedField - line 80
(C)\Classes\FormDataObject\modified
(C)\Forms\PurchReqTable\Data Sources\PurchReqLine\Fields\ItemId\Methods\modified
(C)\Classes\FormStringControl\modified
(C)\Classes\FormStringControl\leave
(C)\Classes\FormRun\selectControl
(C)\Classes\FormRun\canClose

Comments

  • vinay_singhvinay_singh Member Posts: 6
    Hi,

    You need to compile forward the class in order to remove the specified error.
    AOT->Class->ReqSetup->Add ins->Compile Forward

    Regards,
    Vinay
    Vinay
    http://blog.vinaysingh.in/
    Committed to winning
Sign In or Register to comment.