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 with number formatting on document layouts when using the AutoFormat codeunit

(0) ShareShare
ReportReport
Posted on by 5

After the update of Business Central 20, we are experiencing some issues in the report layouts for sales invoices (Word layout).

Even when using the standard sales invoice layout (1306), the formatting of the numbers is not (always) correct on the layout. After some investigation, we found that using the Auto Format codeunit (cdu 45) will now use the language ID that you set in the report (CurrReport.Language). That poses a big problem since we have customers that want to send out documents in (e.g.) English while the number formatting should still be according to their own regional settings. Before the BC20 update, the AutoFormat always returned the correct numbers.

I don't know whether this is a bug or not but the fact is that our customers are getting wrong output now on their documents. If someone has any idea on how to fix it, your help would be greatly appreciated 

  • Suggested answer
    Dallefeld Profile Picture
    235 User Group Leader on at

    Reach out to your partner. There have been lots of issues with BC 20. Your partner should know the status or can check on this issue.

  • Suggested answer
    YUN ZHU Profile Picture
    104,090 Super User 2026 Season 2 on at

    Hi, If this is a global issue with CurrReport.Language, I feel like it might be fixed in the next CU. It is recommended that you submit to Microsoft.

    In addition, if you are in a hurry, I think you can try the following method.

    (+) How to change field format output for word template? - Dynamics 365 Business Central Forum Community Forum

    Hope this helps.

    Thanks.

    ZHU

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 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans