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...
Suggested answer

Length of String Error

(0) ShareShare
ReportReport
Posted on by
Hi everyone,
 
I am getting a error in Porduction while Purchase Invoice /length of the string is 15, but it must be less than or equal to 10 characters/ and i have made same entries in Sandbox to debug the code but in Sandbox i am not getting the same error.
 
so can anyone guide how to solve this error. 
 
 
thnaks 
Johnson
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,157 Super User 2025 Season 1 on at
    Length of String Error
    I found it in India Localization.
    The system is trying to apply data from "Tax Insert Record Field" and if it is a predefined setup table then please check which field has value "07AABC...." as per the below screenshot.
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,157 Super User 2025 Season 1 on at
    Length of String Error
    May I know the localization country that you are using? I didn't find Tax Engine in US localization.
  • pooja gund Profile Picture
    pooja gund 143 on at
    Length of String Error
     
    "RecRef Handler"(CodeUnit 20131).SetFieldValue line 42 - Tax Engine by Microsoft
    "Tax Posting Execution"(CodeUnit 20344).SetInsertRecordField line 34 - Tax Engine by Microsoft
    "Tax Posting Execution"(CodeUnit 20344).ExecuteUseCaseOutput line 40 - Tax Engine by Microsoft
    "Tax Posting Execution"(CodeUnit 20344).ExecutePosting line 19 - Tax Engine by Microsoft
    "Tax Subledger Posting Handler"(CodeUnit 20347).OnAfterPrepareTaxTransaction line 69 - Tax Engine by Microsoft
    "Tax Document GL Posting"(CodeUnit 20341).OnAfterPrepareTaxTransaction(Event) line 5 - Tax Engine by Microsoft
    "Tax Document GL Posting"(CodeUnit 20341).UpdateUseCasePostingBuffer line 65 - Tax Engine by Microsoft
    "Tax Document GL Posting"(CodeUnit 20341).UpdateTaxPostingBuffer line 23 - Tax Engine by Microsoft
    "Purch.-Post Handler"(CodeUnit 20335).OnAfterPurchInvLineInsert line 20 - Tax Engine by Microsoft
    "Purch.-Post"(CodeUnit 90).OnAfterPurchInvLineInsert(Event) line 2 - Base Application by Microsoft
    "Purch.-Post"(CodeUnit 90).PostPurchLine line 135 - Base Application by Microsoft
    "Purch.-Post"(CodeUnit 90).RunWithCheck line 89 - Base Application by Microsoft
    "Purch.-Post"(CodeUnit 90).OnRun(Trigger) line 2 - Base Application by Microsoft
    "Purch.-Post (Yes/No)"(CodeUnit 91).OnRunPreview line 19 - Base Application by Microsoft
    "Gen. Jnl.-Post Preview"(CodeUnit 19).OnRunPreview(Event) line 2 - Base Application by Microsoft
    "Gen. Jnl.-Post Preview"(CodeUnit 19).RunPreview line 4 - Base Application by Microsoft
    "Gen. Jnl.-Post Preview"(CodeUnit 19).PreviewStart line 17 - Base Application by Microsoft
    "Gen. Jnl.-Post Preview"(CodeUnit 19).Preview line 7 - Base Application by Microsoft
    "Purch.-Post (Yes/No)"(CodeUnit 91).Preview line 6 - Base Application by Microsoft
    "Purchase Invoice"(Page 51)."Preview - OnAction"(Trigger) line 4 - Base Application by Microsoft
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,157 Super User 2025 Season 1 on at
    Length of String Error
    If you scroll right then there will be another field with the Call Stack details.
    Click on the field and copy and paste the details.
  • pooja gund Profile Picture
    pooja gund 143 on at
    Length of String Error
    i have screenshots error 
     
    but i have go though with that filed length everything information 
     
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,157 Super User 2025 Season 1 on at
    Length of String Error
    Do you have a screenshot of the error?
    Generally, the error message should show the field also.
    The field length is 10 characters but you are trying to enter 15 character in that field.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans