Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Length of String Error

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
Categories:
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,125 Super User 2024 Season 2 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 59,125 Super User 2024 Season 2 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 59,125 Super User 2024 Season 2 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 59,125 Super User 2024 Season 2 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans