Fetch XML report aggregate undocumented limit - reporting-services

I've been struggling with this one fetchxml report for Dynamics CRM online.
The report is using aggregate to detect duplications based on certain fields. So, even though it is an aggregate report, the data set will return a lot of rows. Then I found out that the number of rows returned for aggregate fetchxml is limited to 5000.
I understand that normal fetchxml report will return records more than 5000 but for aggregate report, this doesn't seem to be the case. In the resultset, the 'morerecords' attribute shows as '0' too.
Is there any workaround for this (except to use normal fetchxml to get raw data and handle duplicate check somehow in SSRS because there are charts involved..). Or am I forced to report this to Microsoft so that they can write it off as "By design".

The Fetch Aggregate Limit is actually by default 50,000 rows. It specifies the maximum number of records that can be aggregated. 5,000 is the Query Result Limit which defines the maximum size of a page of data that can be retrieved using the organization service.
On CRM Online you are not allowed to relax these limits, but on OnPremise deployments you can. The deployment service supports an UpdateAdvancedSettingsRequest for this purpose. (More details on MSDN.)
A nice overview of CRM 2011 Timeouts and Limits can be found on TechNet. Most of the information given there also applies to later versions of Dynamics CRM.

Related

With CRM Dynamics Online is SSRS Limited to 5,000 Rows

Using SSRS (well at least an .rdl report) on CRM Dynamics Online. Online so no SQL only Fetch XML. I thought the 5,000 record limit applied (I'm sure it used to) but I just ran a report with a single entity non-aggregate query and got back 22,000 + records. There is no count, page or top specified in the query. Has it always been this way or has something changed?

MySQL Storing Reports

I am looking for a way to store auto-generated reports. There are about 10-15 columns and 100-3000 rows depending on the report but each report is consistent in column count.
I am looking for a way to organise and store these reports into a large group without creating an entire new database and 1000s of tables to store each indervidual report.
The reports need to be queryable so they can be subdivided by team/area/person etc as each report can be a combination of 3-4 different sub-reports depending on how you split/sort the data.
I am using Python to collect and sort the data from the database so using MariaDB/MySQL would be preferred but im happy to use something else if there is a pre-exising connection libary for it.
To sum up i need something similar to a excel spreadsheet with each table being a sheet and sheet name being the date it was generated so i can select by the date generated.
Think through the goals.
Is this a legal issue -- you need to produce an unalterable report as something "official". A la a non-editable .pdf?
(at the opposite extreme) Be able to generate (or regenerate) any report for any timeframe.
Is performance an issue? (Either perceived or real)
I like to build and maintain Summary Table(s) for any "Data Warehouse" application. And build "reports" that take as a parameter a date range and a small number of other things. And have the report generation so fast that it does not matter if multiple people are pulling reports at random times.
15 columns and 3000 rows is usually excessive. If pulling a report is trivial enough, it can be less 'massive'; just get the parts you want, without such bulk.
http://mysql.rjweb.org/doc.php/summarytables

SSRS - reaching outside of a group, using a variable from within the group

I have a dataset that includes details of who is providing certain services. I've been asked to provide a report that splits out how many cases each provider is working on (and the assets involved). So far so good, I've got a report that is grouped by provider and sums the assets and counts the number of cases.
Now I've been asked to add in how many cases they are working as an advisor on. The cases where they are advisor will not be cases that they are working on, so I'm a little stumped on how to pull that information into the table.
All I need to do is add something like:
=sum(iif(Fields!Advisor.value = Fields!Provider.value,1,0),"DataSet1")
but the issue is that I need the Fields!Advisor to be looking at the whole dataset, and the Fields!Provider to use the current provider within the group.
I tried using ReportItems!Textbox.value to refer to the cell that contains the name of the provider, as follows:
=sum(iif(Fields!Advisor.value = ReportItems!Textbox10.value,1,0),"DataSet1")
but it gives an error that I can't use an aggregate function over a ReportItem. I don't want to use the aggregate function over the report item - I want to treat it as a constant!
Any ideas?

MS reporting services limiting number of rows

I have a report working well where I extract the number of logins per user. Each login takes up one row on the report.
I have date parameters and my DB goes back a year. However it seems the report will only show 40/50 rows despite a report expecting to deliver, say, 250 for the amount of times I logged in.
Is there some setting in reporting services that limits the number of rows delivered. Can't find it anywhere..
Thanks.
The answer to your question: nope, as far as I know there's no real equivalent of SQL's TOP 50 statement in SSRS itself.
Some things that come to mind that may be causing your symptoms / can be investigated:
What happens if you run the query for the dataset in SSMS? Be sure to fill in the exact parameters the report's using (if any).
Run the query as a test from SSRS designer. If you're using Visual Studio: right-click the dataset and hit "Query...", then hit the red exclamation mark and fill in any parameters if needed.
Try putting a CountDistinct call (on your dataset) in a textbox somehwere in the report, by itself.
Check the filtering and grouping on your tablixes, perhaps even by looking at the XML source code for the RDL.
Show the parameters in textboxes (oldskool printf debugging! :D) to make sure they're what you expect them to be when the report's run on the Report Server. If they're not: try deleting the report on the server and re-deploying it.
Have a look at the ExecutionLog2 View in the ReportServer database, specifically the Number of Rows returned.
As mentioned in the comments by Atilla: You may also monitor exact SQL SSRS sends to server using SQL Server Profiler.

What is maximum limit of items in ssrs 2005 multi-value parameter

I am using SSRS 2005. I have one parameterised report. I am using 3,4 cascading parameters. my last parameter can have upto 5000 values in it. I want to know that what is the maximum limit of multi-value parameter becuase when i select deselect some parameters I got one error "Operation is not valid due to the current state of the object." I wonder if it is due to lot of values in one of the parameter.
Please guide.
Thanks
I can't find a source for a hard limit of number of parameters but to be honest if you're using 100s I think you're going to run into usability issues first.
I'd suggest grouping the options by one or two more cascading parameters that narrow down the range if that's possible for your application.
From here
There is a constraint (on .NET framework or Web server I think) that allows only 1,000 values to be loaded under parameter drop down boxes