Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Parameter CountryRegionISOCode does not exist on this report

Posted on by 593

Hi I created a new report (copy from SalesInvoice) with Controller, Contract, DP

When I rund the report I get the above error.

Can someone advice?

Thanks in advance

(using AX2012)

  • Suggested answer
    SouravDam Profile Picture
    SouravDam 11,721 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Hi CRSW,

    Can you please check in AX if any such form called "Address setup" is available or not under "Global address book"?

    If yes; then check in that form if all the country / region codes are available! Below screen shot is taken from D365.

    44857.Capture.JPG

    Best regards,
    Sourav Dam

    Kindly mark this thread 'Yes' if this is answered your query which may help other community members in this forum.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    HI,

    I'm not able to fully understand what had been done in relation with the error. Did you use the printing setup to set this report as required lay-out for sales invoices or did you try to start the report in another way?

  • CRSW Profile Picture
    CRSW 593 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    ok

    What I did is that I created a new Report with new contract, Controller and DP

    The contract class declaration look like this:

    [DataContractAttribute]

    public class MYSalesInvoiceContract

    and contains a lot of parm-methods containing the "prefix"Datamember Attribute"

    Than there is a Controller class Extended from GiroPrintMgmtFormLetterController like the Standard salesinvoice Report is as well

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Hi CRSW,

    Can you provide some more technical details? Without information, I'm not able to understand what you did and why it is not working as expected.

  • CRSW Profile Picture
    CRSW 593 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Oh I am sorry for the misunderstanding

    I created complete new controller contract and DP classes and a new report.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Hi CRSW,

    Can you provide information about what exactly has been customized and changed? That is what I wanted to know when I asked for "contents".

  • CRSW Profile Picture
    CRSW 593 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Some more ideas? I do not know what I did wrong

    Here my parm-Method for DocumentTitle:

    [DataMemberAttribute('DocumentTitle')]

    public String255 parmDocumentTitle(String255 _documentTitle = documentTitle)

    {

    documentTitle = _documentTitle;

    return documentTitle;

    }

    I call it in the Pre-run Modify Contract method.

  • CRSW Profile Picture
    CRSW 593 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Hi

    After refreshing ReportServer and create a full CIL 5 times now my report has DocumentTitle as missing parameter.

    looks really strange to me

  • CRSW Profile Picture
    CRSW 593 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    what do you mean is the content of controller contract and DP

    I tried to replace the invoice. I used my on SalesInvoiceTMP table which is an InMemory table. The classes are extended the same way the SalesInvoice classes are.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Parameter CountryRegionISOCode does not exist on this report

    Hi CRSW,

    Can you provide some more details? What is the contents of the Controller, Contract and DP now? How did you start the report? Did you also change the lay-out?

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

Product updates

Dynamics 365 release plans