We are upgrading BC On-Prem from 22 to BC24. I see the following code. When I go to the customer card, it allows me to enter only 80 characters instead of 255. I have downloaded the symbols. Please advise.
#if not CLEAN24
field(103; "Home Page"; Text[80])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
ObsoleteReason = 'Field length will be increased to 255.';
ObsoleteState = Pending;
ObsoleteTag = '24.0';
}
#else
#pragma warning disable AS0086
field(103; "Home Page"; Text[255])
{
Caption = 'Home Page';
ExtendedDatatype = URL;
}
#pragma warning restore AS0086
#endif


App.json
{
"id": "a835b52b-238d-4a08-8f21-46811d0ecbc3",
"name": "TEST",
"publisher": Test",
"version": "1.0.0.340",
"brief": "This contains the custom code of WCI",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [
{
"id" : "437dbf0e-84ff-417a-965d-ed2bb9650972",
"publisher": "Microsoft",
"name" : "Base Application",
"version": "24.9.29403.0"
},
{
"id" : "f3552374-a1f2-4356-848e-196002525837",
"publisher": "Microsoft",
"name" : "Business Foundation",
"version": "24.9.29403.0"
},
],
"screenshots": [],
"platform": "24.0.0.0",
"application": "24.9.29403.0",
"idRanges": [
{
"from": 50000,
"to": 51999
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"runtime": "13.0",
"features": [
"NoImplicitWith"
],
"target" : "Cloud"
}
Answers
In the code #if not CLEAN24 you will only enter only 80 characters .. If the BC is not cleaned you will get this result.
1. please ensure that the app.json will have "preprocessorSymbols": ["CLEAN24"] if not found Define the preprocessor symbol in app.json.
2. Re-Build your AL Code by ctrl+shift+B.
3. Publish your code by ctrl+F5.
Bonus Tip:
if it not works
Change the field directly to Text[255].