web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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
I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at
    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.
  • pooja gund Profile Picture
    143 on at
    i have screenshots error 
     
    but i have go though with that filed length everything information 
     
  • Suggested answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at
    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
    143 on at
     
    "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
    61,248 Super User 2026 Season 2 on at
    May I know the localization country that you are using? I didn't find Tax Engine in US localization.
  • Suggested answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at
    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 562 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 503 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 332 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans