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 :
Microsoft Dynamics AX (Archived)

Error with Excel Workbooks.open

(0) ShareShare
ReportReport
Posted on by

Hello,

today i have an Problem wit reading Excel-Files in Dynamics AX 4.0 and Office 2016 via X++.

My Code looks like this:

   filename = "C:\\temp\\Mappe1.xlsx";
    application = SysExcelApplication::construct();
    workbooks = application.workbooks();

    try
    {
        workbooks.open(filename,0,true);
    }
    catch (Exception::Error)
    {
        throw error("File cannot be opened.");
    }

    workbook = workbooks.item(1);
    worksheets = workbook.worksheets();
    worksheet = worksheets.itemFromNum(1);
    cells = worksheet.cells();

But i can not read the Excel File. AX returns an Error like

Methode 'open' im COM-Objekt der Klasse 'Workbooks' hat Fehlercode 0x80010105 (<unbekannt>) zurückgegeben, das bedeutet: <unbekannt>.

Can someone help me?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Axapta 4.0 is not supported to work with Office 2016, try an older version (2003 maybe?).

  • Community Member Profile Picture
    on at

    Until last week bevor the Creatorsupdate of Windows 10 it worked.

  • Community Member Profile Picture
    on at

    It seems to be an Problem with the workbooks.open() command.

  • Community Member Profile Picture
    on at

    An Export to Excel works without problems. Only reading ist not possible.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    This is a very old product which has it's support lifecycle ended many-many years ago, and only a handful of companies might still be using this version. If you are lucky, they might join the discussion, but it is unlikely that we could provide support in this case.

    If you are sure that the Windows Update has caused the problem and it worked before, it is just a matter of rolling the update back then.

  • Community Member Profile Picture
    on at

    Hello together,

    i have found the Problem why it did not work any more.

    The Problem results form the FoxitReader.

    Wy, i can not tell you. But after deinstalling this Software, Excel works as known.

    Dynamics AX 4.0 works with Office 2016

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans