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 :
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!

I have the same question (0)

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans