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

Problem extending the SalesInvoice Report - value for parameter is invalid

(0) ShareShare
ReportReport
Posted on by 657

Hi,

I'm again encountering some very bizar behavior with SSRS parameters.

I managed to pinpoint the moment when it happens but am still looking for a solution.

Step 1

I duplicated the SSRS report into my project and called it SalesInvoiceExt

I made a SalesInvoiceControllerExt class which extents SalesInvoiceController but points to my new invoice SalesInvoiceExt

I've added a red label in the report design to identify if the correct reports is being used.

Deploy everything , print a salesinvoice and I get my custom layout.

Step 2

I 'refreshed" the Dataset SalesInvoiceLocalizationDS in the report by clicking on 'Restore' assuming this replaces the old 'refresh' button from AX2012.

Delete the report from SSRS and redeploy.

Everything is still working correctly.

Step 3

I refreshed the Dataset 'SalesInvoiceHeaderFooterDS', this does retrieve a new parameter called CreatedTransactionId. Which is quite normal because the 3 datasets are from the same RDP class and thus linked to the same contract class. Besides discovering the new parameter on the dataset, it creates a new report parameters called 'CreatedTransactionId1'.

Delete the report from SSRS and redeploy.

Now the issue arises 'A valid value for parameter "CreatedTransactionId" does not exist.'.

It's like it only passes a value into 'CreatedTransactionId1'.

A few questions concerning this issue :

1) How come that the default report only contains the parameter 'CreatedTransactionId' on one specific dataset (SalesInvoiceLocalizationDS) and not on all three. How did they delete that parameter on the other datasets then?

2) Seeing that all 3 datasets come from the same RDP class, they all have the same parameters. Shouldn't VS.Net pick this up and redirect these parameters to one and the same report parameter? They will have the same value because it's all from the same contract

3) How do we solve this issue, because the design needs custom fields on both datasets mentioned above.

Any suggestions or remarks?

Regards,

Sven Peeters

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Try deleting both CreatedTransactionId and CreatedTransactionId1 parameters. After that do the restore again. It will generate CreatedTransactionId parameter. Now rename that parameter to CreatedTransactionId1. I don't know why this happens but this is how I fixed it.

  • Verified answer
    Sven Peeters Prodware Profile Picture
    657 on at

    Hi Filip,

    I found a similar solution, delete all parameters and start from the first dataset in the list.

    Then restore the other two. But I guess your solution would work too ;-)

  • Community Member Profile Picture
    on at

    Hi,

    Please try to set Nullable parameter is true or allow blank property as true.

  • Sven Peeters Prodware Profile Picture
    657 on at

    Hi Sangram,

    That didn't help, D365 sometimes recreates the same parameter twice because it's coming from the same RDP class. Posted the solution above ...

    But thank you for taking the time and trying to help other people ...

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans