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 AX (Archived)

Sales Invoice parameter is missing a value

(0) ShareShare
ReportReport
Posted on by

when i try to print sales invoice from invoice journal i got this message

The 'SalesInvoiceDS_CountryRegionISOCode' parameter is missing a value

4162.Capture.PNG

i really clearing usage data and refresh cache and restart reporting services too but stil face this problem 

so i need resolve this issue asap

thanks

*This post is locked for comments

I have the same question (0)
  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at
    RE: Sales Invoice parameter is missing a value

    check this of works community.dynamics.com/.../quot-parameter-is-missing-a-value-quot-error-running-a-customized-report-in-microsoft-dynamics-ax-2012

  • Verified answer
    Sohaib Cheema Profile Picture
    48,823 User Group Leader on at
    RE: Sales Invoice parameter is missing a value

    there can be numerous reason to issue.

    common reasons are specified here

    But, apart from reasons which are described above, you can have a look at SalesInvoiceController(class)>>

    preRunModifyContract(method)>>Line Number  114 (almost depending upon version of ax).

    salesInvoiceContract.parmCountryRegionISOCode(SysCountryRegionCode::countryInfo());

    you need to see why country region id is coming empty in your case, and if its not empty,  redeploying report from VS may resolve it.

  • DMW Profile Picture
    on at
    RE: Sales Invoice parameter is missing a value

    reson on that link not working with me as you said

    i think the problem as you said so but how be sure if country region id is coming empty?

    and look at this code of preRunModifyContract(method) below is there's any problem with it?

    7536.Capture.PNG

    protected void preRunModifyContract()
    {
        SRSTmpDataStore srsTmpDataStore;
    
        if (!salesInvoiceContract)
        {
            salesInvoiceContract = this.parmReportContract().parmRdpContract();
        }
    
        salesInvoiceContract.parmPrintCopyOriginal(printCopyOriginal);
    
        salesInvoiceContract.parmRecordId(custInvoiceJour.RecId);
        salesInvoiceContract.parmledgerJournalTransRecordId(ledgerJournalTransRecId);
        salesInvoiceContract.parmTaxInvoiceItemType(taxInvoiceItemType);
        salesInvoiceContract.parmIsTaxInvoice(isTaxInvoice);
        this.parmReportContract().parmRdlContract().parmLanguageId(custInvoiceJour.LanguageId);
    
        if (salesInvoiceJournalPrint)
        {
            // Pack the class and insert into the temporary store.
            srsTmpDataStore.Value = salesInvoiceJournalPrint.pack();
            srsTmpDataStore.insert();
    
            // Set the rec id to contract parameter
            salesInvoiceContract.parmFormLetterRecordId(srsTmpDataStore.RecId);
        }
    
        salesInvoiceContract.parmCountryRegionISOCode(SysCountryRegionCode::countryInfo());
    
        super();
    }


  • Sohaib Cheema Profile Picture
    48,823 User Group Leader on at
    RE: Sales Invoice parameter is missing a value

    you can put debugger on that line

  • DMW Profile Picture
    on at
    RE: Sales Invoice parameter is missing a value

    4604.Capture.PNG

    Args object not initialized.
    
    Stack trace
    
    (C)\Classes\SalesInvoiceController\initFormLetterReport - line 9
    (C)\Classes\SrsPrintMgmtFormLetterController\init - line 14
    (C)\Classes\SrsPrintMgmtFormLetterController\startOperation - line 12
    (C)\Classes\SalesInvoiceController\main - line 23
    


  • Sohaib Cheema Profile Picture
    48,823 User Group Leader on at
    RE: Sales Invoice parameter is missing a value

    after turning on debugger on that line

    go to Accounts receivable >> inquires >> journals >> Invoice Journal

    select any line of journal and click print original. it should take you to that line of code

  • DMW Profile Picture
    on at
    RE: Sales Invoice parameter is missing a value

    sorry i don't understand you what you mean turning on debugger

    i do compile but nothing can you help me how turning on debugger on that line?

  • Sohaib Cheema Profile Picture
    48,823 User Group Leader on at
    RE: Sales Invoice parameter is missing a value

    click on that line of code and press F9, debugger must be installed and you should be in debugging group of users.

    msdn.microsoft.com/.../gg860898.aspx

  • SomuAx2012 Profile Picture
    1,235 on at
    RE: Sales Invoice parameter is missing a value

    I know this is very old thread. But I thought of sharing my exp with this issue.

    I had this issue only in one company and In my case I don't have Primary address selected for that legal entity.

    Selecting an address as primary, fixed this issue for me.

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 AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans