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 :
Finance | Project Operations, Human Resources, ...
Answered

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

(0) ShareShare
ReportReport
Posted on by 518
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.
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,974 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.
  • Verified answer
    GirishS Profile Picture
    27,825 Moderator 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.
  • Martin Dráb Profile Picture
    236,974 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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 650 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 582 Most Valuable Professional

#3
CU05031448-0 Profile Picture

CU05031448-0 526

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans