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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

(0) ShareShare
ReportReport
Posted on by

The value of DELSTR parameter 2 is outside the permitted range when preview report in dynamics NAV 2013. Customer+ Sales Person/ Purchaser table.

*This post is locked for comments

I have the same question (0)
  • Mohana Yadav Profile Picture
    60,999 Super User 2025 Season 2 on at

    What is the Report ID?

    Is it a standard report or customized?

  • Community Member Profile Picture
    on at

    I make a custom report. when i am going to preview this report the error comes. No error during compile.

    Thank You

  • Suggested answer
    Mohana Yadav Profile Picture
    60,999 Super User 2025 Season 2 on at

    There is something wrong in parameters which you have used in DELSTR function.

    Please check with Debugger

  • Community Member Profile Picture
    on at

    I already checked with debugger. But debugger didn't find anything.

  • Mohana Yadav Profile Picture
    60,999 Super User 2025 Season 2 on at

    Can you show us the code with DELSTR statement and where did you write this code?

  • Community Member Profile Picture
    on at

    CompanyINFO.GET;

    CompanyINFO.CALCFIELDS(CompanyINFO.Picture);

    FormatAddr.Company(CompanyAddr,CompanyINFO);

    Code in "Customer- OnPreDataItem" Trigger.

    Expanded    Data Type    Data Source    Name    Include Caption
    1    DataItem    Customer    <Customer>    No
    0    Column    Customer.City    City_Customer    Yes
    0    Column    Customer."No."    No_Customer    Yes
    0    Column    Customer.Name    Name_Customer    Yes
    0    Column    Customer."Balance (LCY)"    BalanceLCY_Customer    Yes
    0    Column    Customer."Credit Limit (LCY)"    CreditLimitLCY_Customer    Yes
    1    DataItem    Salesperson/Purchaser    <Salesperson/Purchaser>    No
    0    Column    "Salesperson/Purchaser".Name    Name_SalespersonPurchaser    Yes
    0    Column    CompanyINFO.Picture    Logo    No
    0    Column    CompanyAddr[1]    CompanyAddr1    No
    0    Column    CompanyAddr[2]    CompanyAddr2    No
    0    Column    CompanyAddr[3]    CompanyAddr3    No
    0    Column    CompanyAddr[4]    CompanyAddr4    No
    0    Column    CompanyAddr[5]    CompanyAddr5    No
    0    Column    CompanyAddr[6]    CompanyAddr6    No

  • geordie Profile Picture
    on at

    Hi, as Mohana asked there is at least a code line with DELSTR statement, can you please post it?

  • Community Member Profile Picture
    on at

    Sorry Sir, I don't write any code related to DELSTR. But still error is coming. I am new in NAV so i don't have too much knowledge to solve this problem. I sent all which i write on report.

    Thank You

  • geordie Profile Picture
    on at

    Ok, so I suppose the error is raised inside Format Address codeunit: composing the address the function GeneratePostCodeCity is called and inside it there are a few DELSTR, I guess it's one of them failing.

    On Company Information table all the fields like City, Post Code, County and Country are properly filled?

  • Community Member Profile Picture
    on at

    I filled all fields in Company Details Table but still find same error.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans