Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Issue exporting package to Excel

Posted on by 69

Hello everyone,

We're having troubles exporting packages to excel.

I've created different packages with different configurations but every time i get the same error.

pastedimage1639045374693v1.png

"Impossible to find column 1"

Apparently the issue is located in the CopyDataToExcelTable procedure (codeunit 6223), the program doesn't seem to be able to go through the columns of my tables.

I've tried with different standard tables, the extension i'm working with doens't add code on these parts of the code.

The export to rapidstart doesn't have this issue.

Has anyone encounter this same problem ?

Thanks

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Issue exporting package to Excel

    Hi,

     

    Have a look at our 1 Click productivity app – Click2Export with which you can easily export CRM data in Excel templates. For more information, click here.

    Thanks!

  • Magicrevette Profile Picture
    Magicrevette 215 on at
    RE: Issue exporting package to Excel

    Hello, I'm Valentine's colleague. We use the Business Central 19.2 On-Premise app + our own app extension that doesn't extend "Config. Package Table" neither "Config. Package Card" page.

    During my investigation, I've found that Export package to Excel works perfectly on a Cronus demo database. I've debugged both our app and the Cronus app. I've noticed a difference in behavior in the codeunit 6223 "OpenXML Management", in the procedure CopyDataToExcelTable. In the Cronus, Format(DataColumn.DataType) returns 'System.String'. Our client returns 'System.Int32'. The behavior is different in the case in the procedure WriteCellValue depending on this variable.

    pastedimage1641476512786v2.png

    I don't understand why this variable has different values from one client to another. They are two different databases, but they both are on the same server, running with the same VSCode client, so the paths to dependencies are the same for both the Cronus and our client.

    pastedimage1641476483766v1.png

    The error we meet in the screenshot above occurs after one iteration in this loop, in the CopyDataToExcelTable procedure :

     pastedimage1641476650826v3.png

    Could this difference explains the error ? How can I see wich Dotnet is referenced in each app ?

    p.s : the error in english: 

    pastedimage1641476863627v1.png

    Thank you,

    Pierre

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue exporting package to Excel

    Hi Valentine,

    Can you tell me what app you are using?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans