web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

"Error When Importing Excel Data into AR Customer Payment Journal Lines"

(0) ShareShare
ReportReport
Posted on by 61
I am facing an issue when trying to import Excel data into the Accounts Receivable (AR) module's customer payment journal lines. Whenever I attempt this import, I encounter the following error:
 
Error executing code: COM (object), method createFromVariant called with invalid parameters.
Stack trace
(C)//Classes//COM//createFromVariant
(C)//Classes//SysExcelCells//item - line 3
(C)//Forms//LedgerJournalTransCustPaym//Designs//DesignList//ImportCustPayment//Methods//Clicked - line 134
 
The number of arguments provided is different from the number of arguments accepted by the method
This error has been a roadblock in our data import process, and I'm unsure how to resolve it. I'm using Microsoft Dynamics AX r3 and Excel 2016.
 

I would greatly appreciate any insights, suggestions, or solutions from the community regarding this issue. If anyone has encountered a similar error or knows of potential fixes, please share your expertise.

Thank you in advance for your help!

I have the same question (0)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    What code is there at line 134? I don't have AX 2012 anymore (I assume you mean AX 2012 R3) and therefore I can't see that. What CU do you have?
     
    Are you able to debug code and see what values are used at the time of the failure?
  • Fawad Ahmad Profile Picture
    61 on at
  • Fawad Ahmad Profile Picture
    61 on at
    I am encountering a persistent issue while attempting to import Excel data into the Accounts Receivable (AR) module's customer payment journal lines in Microsoft Dynamics AX 2012 R3. Initially, I was receiving the following error:
    Error executing code: COM (object), method createFromVariant called with invalid parameters.
    Stack trace
    (C)\Classes\COM\createFromVariant
    (C)\Classes\SysExcelCells\item - line 3
    (C)\Forms\LedgerJournalTransCustPaym\Designs\DesignList\ImportCustPayment\Methods\Clicked - line 134

    However, after commenting out the progress bar code and few spaces , the error now occurs on line number 141.
    Show you on image .
    I am using Microsoft Dynamics AX 2012 R3
    Cumulative Update 10    6.3.3000.110    24 Nov 2015   (Current cu version 10 is installed)
  • Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at
    I would continue the debugging by finding the value of row variable and simplified the test case by removing all unrelated code. When knowing that row and column is it about, I would also check the data in the given cell in Excel.
  • pwa Profile Picture
    9 on at
    I agree with Martin.
     
    You may want to verify the COMVariantType and make sure it is a VT_DATE.
    I've had this issue many times in the past, because it's difficult to tell what the type is inside the cell.  (At least for me.)
     
    Paul

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans