Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Report(SSRS) parameter is getting duplicated every time i run the report

(0) ShareShare
ReportReport
Posted on by 504
Hi All,
 
SSRS report parameter is getting duplicated every time I run the report. 
For the first time it is running perfectly: 
////
 
Second time, it will duplicate the Parameter as below:
SAP System Id getting repeated:
////
 
When I clear the user cache, this is gets resolved and comes back when i try to run it second time again.
 
Please let to resolve this issue.
  • Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    Report(SSRS) parameter is getting duplicated every time i run the report
    Note that GirishS's solution has impact on other things than just your problem. It means that no parameters and changes to the query will be remembered. Maybe you want it, but maybe you'd just create a new problem.
     
    If my assumption about the root cause is correct and you want to fix the bug with SAP System ID while keeping all the other logic intact, you can either utilize SysQuery::findOrCreateRange() or you can delete all ranges for SAP System ID before creating the new one.
  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    Report(SSRS) parameter is getting duplicated every time i run the report
    Hi Siddhant,
     
    I am assuming its a custom report.
    As martin mentioned you may have added range to the field multiple times.
    Also on the controller class main method call the parmLoadFromSysLastValue with false value and check.
     
    Thanks,
    Girish S.
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,842 Most Valuable Professional on at
    Report(SSRS) parameter is getting duplicated every time i run the report.
    This is not a parameter - it's a query range.
     
    It's likely caused by a bug in code. A developer decided to add a range and forgot that there already may be one in the previously used query.
     
    By the way, the screenshot is from F&O know, not Dynamics AX, so let move this thread to an F&O forum.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans