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...
Unanswered

Format Error in Standard Functionality

(0) ShareShare
ReportReport
Posted on by 30

Hi there we are currently experiencing some bizarre behaviour with the formatting of a decimal variable within standard BC String functionality.

The problem manifests itself within StrSubstNo (also in Message and Error).

It was first noticed in the 'RecordDetails' function within the Approval Entry table.

The line: show below causes the error.

pastedimage1684257006113v1.png

I have added a subscriber to bypass this with the following code:

Snag_5F00_20ece5ab.png

Just for testing - we get the resultant page now displaying.

Snag_5F00_20ee49a0.png

As you can see from the code snippet, if the value is assigned to a local variable, then this is okay... 

There is a new option on the page, to enable us to show the amount firstly, having been assigned in a 'confirm dialogue' then the field is used directly in the 'message' window - and breaks!

pastedimage1684257363636v3.png

pastedimage1684257397751v4.png

pastedimage1684257749871v6.png

I suspect that it has to do with the 'Precision' element of the format string - but we have no control over this... the field itself is a standard field on the Approval Entry table.

pastedimage1684257515929v5.png

I guess it could be something to do with the 'AutoFormatExpression' property,,, but this cannot be the only field using this.

Any help would be gratefully received.. as we don't want to have to bypass all functions where this could possibly happen!

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 715 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 452 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 371 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans