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

Overflow of data in field causing problems

(1) ShareShare
ReportReport
Posted on by 311
Hello!
 
I have a field in the table 336 /Tracking Specification/ that can contain Code[50].
I am currently facing an issue with a big order with a lot of Batch Numbers, and it tries to insert more than the 50 allowed characters in the field, giving an error. The field is standard, so I am not able to modify the length it can take.

This is the field:
 
field(5400; /Lot No./; Code[50])
        {
            Caption = 'Lot No.';
 
            trigger OnValidate()
            begin
                if /Lot No./ <> xRec./Lot No./ then begin
                    TestField(/Quantity Handled (Base)/, 0);
                    TestField(/Appl.-from Item Entry/, 0);
                    if IsReclass() then
                        /New Lot No./ := /Lot No./;
                    WMSManagement.CheckItemTrackingChange(Rec, xRec);
                    InitExpirationDate();
                end;
            end;
        }


Is there any way I can add something to the field to control its length, avoiding an error all together, while also adding the overflow data to another field, which I can then add to the report for show?
Or are there any better ways of controlling the data overflow for such fields?
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 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans