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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Issue exporting package to Excel

(0) ShareShare
ReportReport
Posted on by 215

Hello,

We're having troubles exporting packages to excel.

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

pastedimage1641476863627v1.png

The export to rapidstart doesn't have this issue.

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 ?

Thank you,

Pierre

  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 768 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 324 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans