I have created a report in SSRS. The source of the report is a SQL script that includes temp tables. There is a date variable and 29 fields are returned.
I expect 3 results to be returned. When I preview the report 3 lines are returned but they are blank. When I deploy the report the 3 lines of data are visible and correct.
Can someone please advise on this rather strange issue.
Thanks
Related
I have created a very simple report in Visual Studio (also tried it in Report Builder) that just returns 10 rows from a table in a MySQL (Not MSSQL) database. I changed the background and foreground color to make sure I could clearly see the rows in the report.
There are no parameters and it does not use a stored procedure. It's a straightforward SQL query:
select TASK_INSTANCE_ID, TASK_NAME, ASSIGNED_NAME, CREATED_DTTM
from task_instance where created_dttm > date_sub(now(), interval 1 day)
limit 10
Here's the result when previewing the report in Visual Studio. You can see that it is showing 10 rows of data.
I then publish that report to our SSRS server:
And when I view that report on the SSRS server I get 10 blank rows.
To confirm that I was actually seeing the rows and they were just blank, I changed the query to return just 5 rows. This shows that there are now only 5 blank rows, but with the defined background color.
For reference, I also created a simple report from an Oracle DB and published it to the same folder on the same SSRS server. This report works just fine.
So it appears to be something related to using a MySQL DB, but I have not been able to find anything that explains what I'm doing wrong. Any pointers/help will be greatly appreciated.
I then tried to add a couple new columns to the SQL query.
I used the ROW_NUMBER function to get the rownum of each returned row
I added a dummy column with a constant value for each row
Works fine in the Query Designer:
Works fine in the Preview:
Shows the new columns when published to SSRS, but still shows blank cells for the other columns:
If your problem is/was the same as mine then I think you will find that if you export your report to excel from the report-portal that all of the data that you expect to see is in fact present.
After some digging into the report properties and trying page width settings etc. I found that I had different values for the CanGrow property of the cells in the row and once I set them all to be the same -- True in my case -- then the report rendered as expected.
I am thinking that the reason that Excel showed the data is because it effectively ignores the CanGrow setting so having a mixture of them didn't matter.
I hope that this helps -- you or others who encounter it later -- as it was a really bizarre thing to encounter...
I'm having an issue with report preview in Reporting services.
Blank data being displayed in Report preview only for few rows which have a length greater than 38( the data type for the field is Varchar(60)).) But in SQL Server able to see the data. Even the Query designer in the data set also displays the expected data. When I preview the report, then, for few rows it is displaying the blank value. I tried refreshing the data set/ adding a new field (given a new name) and used the source field for this new field/Changed font size /added new tablix and tried out/added new data set and tried out. But nothing worked out. Still, it is displaying blank data for a few rows. Can anyone pls. help with getting out of this issue?
Thanks, #BJones & #Alan Schofield for trying it out. I found the solution for this. Actually, in server1 the value is blank and in the server2 the values are set up. The report runs based on the server1. So, only it was displaying the blank data. Actually, there are no issues with the report design or logic. It fully depends on the environment it runs on. Anyhow the issues solved now. I'm happy for that.
I am using SSRS to create report. I have created one drilldown report using matrix. it is having row groups and one column group in matrix. when i am running the report in SSDT there is not extra row is showing in grouping.
SSDT Design and Report Output:
Same report when i am exporting into Excel it is showing some extra row on each row group (Highlighted in Yellow).
Excel Output
I have tried with all possible grouping steps, but not able to hide these extra rows in Excel export.
Can anybody help me to fix this.
I have created a linked report in ssrs. I have made a action from the values in a Pivot matrix to another report which shows just raw data. My Pivot matrix is perfect however when I click on a value for example 9 and takes me to my raw data report I only get back 8 results. My parameters pass through fine.I ran a query in sql server to see that result did not come back in the report and that record was created on a different date than the other 8 that came back which were all created on the same date.
Note some linking works fine if I click on the value of 10 it will bring back 10 results.
The scenario I have is the matrix has a count value of items on a particular day. For example day 1 has 10 assets sold and when I click on that value it is meant to show the 10 assets in another report. Sometimes only less will show. could this be a cache error or a coding error?
Thanks
Issue I get for one of my shared data sets only on certain parameters. If the parameter returns nothing for that dataset then I seem to come across this problem, there is a tablix in this report that uses the shared dataset and if I remove the tablix but keep the shared dataset I still get the error on the report preview.
The dataset uses a MDX query (SSAS) to get its data, if I run the query from the query designer it returns 2 rows but the dates in the rows are outwith the scope of my report so the report would return 0 and I assume thats my issue.
Anyone got any ideas/tips?
Uses SQL Server 2008 R2
Thanks
Managed to get round this issue by having an embedded data set rather than a shared one.
Gets around the issue, very annoying though!