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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Error of Length string during RG23 report generate

(0) ShareShare
ReportReport
Posted on by

HI,

When i am trying to generate RG23 report for a particular branch having below error.

The Lenght of string is 82, But it must be less than or Equal to 80 characters Value: Company name.

RG-23.jpg

Kindly advise.

Thanks with regards.

Talib Ali

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at
    RE: Error of Length string during RG23 report generate

    Hi,

    There is a text variable and its length must be less than or equal to 80 but this text exceeds 80. If you have access to the developer environment, you can debug and see from where this pops up. Then increase the length to somewhere like 250.

    I think there must be Company Name and the Addresses are concatenated.

    Hope it helps.

  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at
    RE: Error of Length string during RG23 report generate

    As Nareshwar mentioned, it looks like some variable has been defined incorrectly and is not able to pass through the string which contains more characters than declared. One fast "consultant" option is to reduce manually the chars quantity in the address field by deleting two least important symbols. Another option is to debug the error to check there exactly the overflow comes out, and increase the length of the corresponding variable. However you need to check that this value is not passed anywhere further, otherwise you need to also make corresponding corrections in other places.

  • Suggested answer
    Rabin Profile Picture
    2,976 on at
    RE: Error of Length string during RG23 report generate

    Hello Talib,

    I have tried a small example to generate similar error. Please go through the screenshots first.

    Explanation: I have created a variable of smaller Size that cannot hold the data/value that will be passed to it. 

    in the example "VariableSmall" is a Code with length 5 but in the code as you can see the value being passed is Item.Code which is of size 20(see item table). So when the report is Run, the code passes the code value of Item to this variable and the variable cannot hold it and generates the error.

    Run-Report.jpg

    2867.layout.jpg

    Run-Report.jpg

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: Error of Length string during RG23 report generate

    Activate debugger and check where you exactly get the error .

    Then try to user either copystr function to reduce the lenght of data to 80 characters or try to increase the length of variable

  • Suggested answer
    Ashwini Tripathi Profile Picture
    4,624 on at
    RE: Error of Length string during RG23 report generate

    Length of description variable in report is small than actual value.

    Run debugger and it will stop you at right place, get the variable name and increase the length as per the source length.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Error of Length string during RG23 report generate

    simple you should debug the required report and check what you are doing wrong.....

  • keoma Profile Picture
    32,729 on at
    RE: Error of Length string during RG23 report generate

    have you debugged?

    did you find a solution?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#3
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans