added size limit to resolve AA0139 error#8477
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates web service column insertion logic to enforce a maximum string length for "Field Name", addressing the AA0139 error by ensuring the value written to "Tenant Web Service Columns"."Field Name" fits within its defined Text[250] size.
Changes:
- Limit
"Field Name"assignment duringInsertSelectedColumnsto 250 characters viaCopyStr(..., 1, 250).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…osoft/BCApps into private/aalimov/bugs/637389 yes
…rily downgrading AA0139
@microsoft-github-policy-service agree company="Microsoft" |
CopyStr silently truncates field nameAdding the third argument 250 to CopyStr prevents a runtime overflow error, but now silently truncates field names longer than 250 characters. A truncated field name will produce an incorrect or non-functional web service column definition with no error or log entry to alert the developer or administrator. Recommendation:
Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why |
AB#637389