Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

An error occurred during report processing (rsProcessingAborted). Cannot create a connection to datasource?

$
0
0

I created some reports and whenever I try to load the reports, I get the error below:

"An error has occurred during report processing. (rsProcessingAborted)

Cannot create a connection to data source 'datasource name'. (rsErrorOpeningConnection)
For more information about this error navigate to the report server on the local server machine, or enable remote errors "

If I hit refresh on the page, the report loads correctly. This seems to happen the first time I load a report after a certain time period. If I get the error and then refresh.. the report loads correctly. I can close the window and go back to the report and it loads without the error.

However, if I wait a little while, then try to load the report again, I get the same processing error and have to refresh the page for the report to load. I have my datasource configured with "Credentials stored securely in the report server and have the user id and password saved. I also checked Use as Windows credentials when connecting to the data source"

Any idea?


SSRS Report Rendering

$
0
0

Hi All,

I am trying to get my ssrs report in an excel. I want the report to be displayed in a single excel sheet, however, I am getting multiple sheets. I have even tried the page break functionality and used the expression(=IIF(Globals!RenderFormat.Name="EXCEL",TRUE,FALSE) in the tablix properties--> pagebreak--->disabled option. The same is not working. Can any one guide me through this, as in what am i missing here?

Regards,

Avinash


need to add data middle of the table in ssrs

$
0
0

Hi Team,

 

 In SSRS report genertion using store proc based on years, retrieving the data of previous and current year details. In the middle of data, I have to add sub tax total and sub total amount from previous and current year.

I have added sub total tax and sub total in database for  previous and current year totals.

Below are the current results



Expected results

:

Need your assistance. please help me



SSRS - Export to CSV

$
0
0
when the SSRS report exported to CSV file,  all the column headers are added in the first row. The issue here is, I have hidden( thru Visibility property) some of the columns in the report but those columns are also displayed in the header row(first row)CSV file and the blank values for their corresponding data.

for example,  i have displayed only below 3 columns out of 6 columns in the report.
col1, col2, col3
but the CSV generated as below format..

col1,col2,col3,col4,col5,col6
a1,a2,a3,,,
b1,b2,b3,,,
c1,c2,c3,,,

i dont want the highlighted items.

The TableColumn Visibility property has been setup as below..
=IIF(Fields!col4.IsMissing, TRUE, FALSE)


When the report is exported to other formats(like Excel,XML..) this works fine..ie no hidden columns are displayed.

I appreciate your valuable comments/suggestions....


thanks,
sasi.








SSRS Rectangle in SubReport

$
0
0

I have a created SSRS Report with 5 Subreports.All my SubReports have Header. unfortunately these headers won't display in the main report so I removed the header and put all the header content into a rectangle and set the repeat with the property to the My table in the report.All is well so far .But When i exported to PDF the Rectangle only displayed in the first page of the subreport .But I want to show this rectangle(Header) for all the pages in the subreport. Can anybody please advice How can i achieve this?

Thanks

Split function resulting in #Error

$
0
0

Hi, I have a report that is using the following expression for one of the fields:
=Split(Fields!FromAccount.Value, " ")(1)

The format of the number is xxxxx-xxx xxxxxxxxxxxx

So the function is to grab the second section of numbers after the space

The query for this report can bring back 1 to many results which equals one to many pages.

I have an issue where the query returns three results. The first page will display the correct number, the second page displays #Error and the third displays the number.

When I run the query from Management Studio I see the numbers are as follows:


xxxxx-xxx  xxxxxxxxxxxx
xxxxx-xxx xxxxxxxxxxxx
xxxxx-xxx  xxxxxxxxxxxx

Note the first and and last lines have extra spaces which I thought would be the cause of the problem though I would've expected the #Error to appear on the first and third page rather than the second one.

When I remove the extra space for the first and third number all three pages display their values correctly.

However, there are many, many numbers in the table that have one to two spaces. These numbers are from a spreadsheet that is imported biweekly. So it was either I fix the spreadsheet before every import or I come up with a new expression to check for one or two spaces. This is what I came up with:

=IIF (Fields!FromAccount.Value.Contains("  "), Split(Fields!FromAccount.Value, "  ")(1),Split(Fields!FromAccount.Value, " ")(1))

Now, the first page displays the number correctly while the second and third page displays with the #Error. Basically I want to say if the value contains two spaces then split at the two spaces otherwise split at the one space.

Any ideas?

Calling SSIS Package from SSRS

$
0
0

I'm hoping that someone can provide some clarification on calling an SSIS package from SSRS.  I have managed to get this to work, but only if I actually build the SSIS package on the report server machine.

 

My SSIS package is very simple it.  The control flow is a single data flow task. Within the data flow task is an ole db data source and a data reader destination.  I verified that the package works in BIDS.

 

If I build it and deploy it on the report server I can execute it just fine from integration services (using the dtexec UI panel) in SSMS, no validation errors and no execution errors.

 

If I try to build a dataset (specifying SSIS as the data source type) then immediately on referencing the package I get a "Package failed to validate error".  However, if I bring the whole project over to the report server and build it then I can reference it from my Report Services project.

 

I'm using package deployment security of "Don't Save Sensitive" for the SSIS package with the 'sa' login.  After the deployment package is built I edit the connection string to include the password.

 

The remote execution account for the Report Server is set to the administrator of the box.  I know these account permissions are overkill, but I'll iron all that out once I get the basic pieces in place and working.

 

Can anyone provide any insight into this issue?

 

Thx very much

How can you retrieve the computer name of the person running a report?

$
0
0
I'm coming up blank here...how can I identify the computer of the person running an SRS report?  If I query HOST_NAME() it gives me the host of the reporting server, not the person browsing.

So, for example, Melissa opens a browser from computer named AAA to the SRS and pulls up her report.  How do I get that report to show that the user is browsing from AAA?

Thanks!
Number2 - (John Nelson)
Microsoft MVP - System Center Configuration Manager
http://number2blog.com

How to display the count of column groups.

$
0
0

How to count the column group values and how to print the counts on every column for column group.

I used below expression to get the total column group count.

=CountDistinct(Fields!MMU.Value, "DataSet3")


Palani

Grouping multiple tables (tablix) with different datasets - SSRS 2008 R2

$
0
0

We have a report that was created in SSRS 2008 R2 that has 3 tables with different datasets that share a common ID that I want to use to group them.

If we run the report passing only a single value for the grouped parameter then the report works perfectly.  What we need is for this report to allow multiple values to be selected for this parameter and for the report to run as if the user had selected each value one at a time and run the report with page breaks in between.  Currently, when we pass multiple selected values for the grouping parameter the report displays all values for table 1, then all values for table 2, then all values for table three as below:

Table 1:

Detail rows for Group Param Value 1 ...

Detail rows for Group Param Value 2 ...

Detail rows for Group Param Value 3 ...

....


Table 3:

Detail rows for Group Param Value 1 ...

Detail rows for Group Param Value 2 ...

Detail rows for Group Param Value 3 ...

But we want it to render like this:

Table 1:

Detail rows for Group Param Value 1...

Table 2:

Detail rows for Group Param Value 1...

Table 3:

Detail rows for Group Param Value 1...

---PAGEBREAK----

Table 1:

Detail rows for Group Param Value 2...

Table 2:

Detail rows for Group Param Value 2...

Table 3:

Detail rows for Group Param Value 2...

---PAGEBREAK----

Table 1:

Detail rows for Group Param Value 3...

Table 2:

Detail rows for Group Param Value 3...

Table 3:

Detail rows for Group Param Value 3...

etc

The page breaks are needed so that when the report is exported to excel each individual report (by group param) will be on its own uniquely named tab.

The report must export cleanly to excel and currently does for the single value passed.

Any ideas????

Re: Report Parameter issue with where clause condition

$
0
0

Hello all,

I have a simple report  with columns ID, full Name, Salary. My report wants to show the data from 3 columns with parameter @Name. User want to enter the Name columns like first name or last name or full name(without,)  to get the result as shown in below.

But when they enter name without  ',' , results shown as below. In-order to get the result what is the best way to use parameter in where clause. ?

I used the 'Name' parameter from where clause with wild card options as shown in below.

SELECT * FROM dbo.test
where Name  like '%'+@Name+'%'

This is the simple table but  I have a very large table which has 'Description' column . I have to get full name from this column and I have to use it as a parameter so that user can enter first name or last name or full name(without ,) to get the results.

Kindly provide any solution in where clause, how to use wild cards to get the results as shown in above images.

Thanks.


bihelp

Alternate column colors in SQL 2008 Matrix

$
0
0
I have a Matrix with dynamic columns. I am grouping Matrix on one column group. I am trying to have a different color for every group. I hvae so far, three groups. How can I do that? A note, there is no data for every column group in every row.

How to build a sum field starting from a constant initial value

$
0
0

Dear all,

I am using sql server 2012 and report builder 3.0 for building my report

I have a querry which produce the following output

Is there a way directly in report builder to add a new column field which need to produce the following output :

RUNNING STOCK
8          (calculated from ProductTotalWeight - StockBalance)
10       (calculated from Previous row value + StockBalance)
8        (calculated from Previous row value + StockBalance)
10      ....
8
10
8

Can this be achieve ?

regards

SSRS Tablix Column Toggle Whitespace

$
0
0

Hi Team,

I am facing whitespace issue in my SSRS report. I have simple tablix report with 10 columns. I am trying to toggle column 5 to 8 using on column 4. The problem I am facing is the whitespace. Now column 5 to 8 are only visible when we expand column 4. When the report is rendered on the screen, there is a huge gap between column 4 and 9.

Can someone please help me with this issue?


Thanks, Pulkit Ojha Microsoft Business Intelligence Developer



Word Export Requires Protected View Off to See Headers

$
0
0
I've got a report which, when exported to word, comes up with only the body of the report visible, and with the protected view warning present in Word 2013. When I enable editing, the header and footers appear correctly. What is happening here, and how do I correct it, if at all? I don't know that my customer is likely to accept having to enable editing to address this.

Andrew Raymond Sr. Software Engineer, Mitchell 1 MCAD .NET


Unable to calculate running balance column correctly in sql and ssrs

$
0
0

Hello,

I created a view that i want to use in ssrs.

In the view there is a column for running balance.

In the table contain transaction of inventory with their quantity.


"SELECT     TOP (100) PERCENT ITEMNMBR, TRXSORCE, DOCTYPE, DOCNUMBR, DOCDATE, HSTMODUL, UOFM, UNITCOST, EXTDCOST, TRXQtyInBase,
                          (SELECT     SUM(TRXQtyInBase) AS Expr1
                            FROM          dbo.INVTRXB AS b
                            WHERE      (DEX_ROW_ID <= a.DEX_ROW_ID) AND (ITEMNMBR = a.ITEMNMBR)) AS ENDQTY
FROM         dbo.INVTRXB AS a
ORDER BY ITEMNMBR, DOCDATE"

If i run the query on sql or use the view on ssr. The end qty is  not showing accurately.

I ran it on another database it works perfectly. Then i noticed that the dex_row_ID of the second database is sequential as the date. But for the initial database it was not sequential as with the date.

What can i do to correct this issue?

Thank you 


Akintayo Kemi

Main report is not reflecting sub report updates

$
0
0
A problem that I've been experiencing (and others) is that changes made to a sub report do not always show up when refreshing a preview. The only two solution thus far has been to  delete the sub report, recreate it, and reinstate the parameters every time it happens. Any ideas what this may be?

The domain account used for the SSRS service keeps getting locked out

$
0
0
Sometimes I have to unlock the account 3 or 4 times a day. This is getting annoying. Why would my service account keep getting locked out?

Linking parameters with filters

$
0
0

Hi All,

I am creating a dashboard. It has two charts. One will utilize 'calendar year' data and other utilizes 'Fiscal Year' data.

I have 'CY start date', 'CY end date','FY start date', 'FY end date', 'Reference Date' columns in my data set.

I have a report parameter of date type that the user selects. When the user selects the date, I have to display the corresponding 'Fiscal Year' data for the entire year.

My question is, how can i filter the data set based on 'FY start date', 'FY end date' field values when i have only one Date parameter.

How can i get these data set field values based on parameter. Pls help.

Hiding Duplicated Row in SSRS

$
0
0

Hi,

Is there any way to hide duplicated rows in SSRS except this formula

=iif(Fields!YourField.Value = Previous(Fields!YourField.Value), True, False)

 because doesn't work here.

Law Nature
CountryArrest DateRelease DateComment
DetentionCY23-Jul-1330-Aug-13XXXX
ImprisonmentCY30-Aug-1320-Sep-13YYYY
Violation of Military LawIR10-Aug-0910-Aug-09ZZZZ
DetentionCY23-Jul-1330-Aug-13XXXX
ImprisonmentCY30-Aug-1320-Sep-13YYYY
Violation of Military LawIR10-Aug-0910-Aug-09ZZZZ

Thank you,


Erdal Huzmeli

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>