Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Hi

    Even I was having same error while printing Sales Invoice. I found that there was no Country/Region code updated in Customer Master as a result in Sales Header  "Bill to Country/Region" code was Empty. Hence it was Throwing Error.

    I updated Country/Region Code in customer master and I reselected Customer in Sales Invoice. Now, the problem got resolved No Error :-)

  • Verified answer
    SED Profile Picture
    SED 962 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Hi folks,

    Finally I have been able to find what was raising the particular error I

    reported on the forum. It was as a result of a setup mismatch between

    the Country/Region record and that of the General Ledger Setup as

    regards the address format field value.

    In the Country/Region records the address format is set as "city+postcode" while in the

    General Ledger Setup it is set as "postcode + city".

  • mmv Profile Picture
    mmv 11,465 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Hi,

    It sounds great.  Could you verify the solution?

    Best Regards,

    MMV

  • SED Profile Picture
    SED 962 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Hi folks,

    Finally I have been able to find what was raising the particular error I 

    reported on the forum. It was as a result of a setup mismatch between

    the Country/Region record and that of the General Ledger Setup as

    regards the address format field value.

    In the Country/Region records the address format is set as "city+postcode" while in the 

    General Ledger Setup it is set as "postcode + city".

  • SED Profile Picture
    SED 962 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    yeah I did and below is a sample of the code in OnPreDataItem trigger:

    CompanyInfo.GET;

    CompanyInfo.CALCFIELDS(CompanyInfo.Picture);

    FormatAddr.Company(CompanyAddr,CompanyInfo);

  • mmv Profile Picture
    mmv 11,465 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Hi,

    Have you used CompanyINFO.GET before you could pass it to FormatAddr?

    Best Regards,

    MMV

  • SED Profile Picture
    SED 962 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    I opened a sales order and then went ahead to do order confirmation. I previewed it

    and it gave me no errors. All company information including address and picture showed

    up

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Try to run sales order confirmation report from sales order and select Print Company Address in the request page? please us know if you get same error

  • SED Profile Picture
    SED 962 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    I have checked country/region record and there are no empty records.

    The variable companyinfo is also declared once.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: NAV 2013 Error : The value of DELSTR parameter 2 is outside the permitted range

    Do you have blank country/region ? also check if you record variable companyinfo is declared twice i.e. local and global?

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans