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

SSRS Report Builder - Must Declare the scalar variable

$
0
0

Hi,

I've recently moved a LOB application from on-premise to the cloud. I want to continue to use the SSRS services on my SQL 2008 server but with the database now in the cloud. I have been given the login credentials to allow me to connect via OLEDB. I can build a SSRS report using Report Builder 3.0, create the OLEDB data source, add a dataset e.g. SELECT company_recid FROM v_Company and bind to a report table not a problem. When I preview the report using my browser all is working fine.

My problem comes with using parameters. 

I have created a parameter in the report called @param1 (int). When I modify the dataset with the command text of "SELECT company_recid FROM v_Company WHERE company_recid = @param1, I get an error saying "Must Declare the scalar variable @param1.

It's as though the dataset is not inheriting the report parameter but instead is looking at the parameter in isolation. I have modified the dataset parameters collection to bind the report parameter to a parameter of the same name in the dataset and this still gives an error.

If in the dataset command text, I add "DECLARE @param1 int;" at the top then the error disappears but I'm left with an empty dataset and no fields because the value of @param1 is NULL. If I add "DECLARE @param1 int=123;" then this works fine, I get my field list and the record with company_recid of 123. This however is not what I want - I'm effectively embedding a static variable in my report. 

If I create my dataset command text as an expression and issue the following:-

"SELECT company_recid FROM v_Company WHERE company_recid = " & =Parameters!param1.Value

then this works but it can't resolve the fields list so I can't bind these to the report?

Anyone got any ideas?



SSRS 2008: Set initial drill down to expanded with (-) sign problem.

$
0
0
Hi All,
I am using SSRS 2008, and  am trying to set the initial state of the drill down report to be expanded
usually am doing this by choosing  SHOW from visibility of the details row then assigning the toggle item 
BUT the problem still with the toggle sign  it shows as (+) while expanded, and that is wrong it must be (-) and when click it must change to (+) collapsed 
Who can I solve this issue ??? 

SSRS report with dynamic content and destination

$
0
0

Hi all,

I have a query that can get some data from a table based on two parameters: Vendor and a date. The date is the current date every Thursday, the Vendor is a list maintained in a separate table; currently includes 50 Vendors with an email address for each.

How do I design a report that runs every Thursday and distributes the appropriate chunk of data to each Vendor?

I have developed a report in the past that is able to distribute the same report to a range of dynamically gathered recipients.
Now I need to make the content dynamic as well based on the Vendor.

Thanks you very much,
elsvieta

Could not load file or assembly error on adding custom libraries in SSRS reports

$
0
0

I have created a custom library(CodeLibrary) which internally references the dlls Microsoft.TeamFoundation.Client and Microsoft.TeamFoundation.WorkItemTracking.Client.

I added this custom Dll codelibrary.dll to my SSRS report. and the expression of one of the field as 
=codelibrary.codefunction.GetValue(1000)  

codefunction is the class and GetValue is the method.

When I preview the report, I get the error "Error while loading code module: 'CodeLibrary,Version=1.0.0.0,Culture=neutral,PublicKeyToken=null'. Could not load file or assembly 'CodeLibrary,Version1.0.0.0, Culture=neutral,PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

I am using VS2013, I have placed the custom library DLL in the path
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies


I have tested the custom library with a WPF application and it works fine.

I am not able to figure out what is causing this error.

Reporting Server Error 1053: The service did not respond to the start or control request in a timely fashion

$
0
0

 

Hi,

 

I'm not able to start reporting services after applying the last SQL Server 2005 hotfix (9.0.3068), I'm getting the followwing  error 1053: The service did not respond to the start or control request in a timely fashion.

 

Any clues ?

 

Regards

 

Dejan

 

 

 

 

 

 

 

Automatically Align the results of a Tablix in Report Builder 3.0

$
0
0

How do i automatically align the results of a tablix in Report Builder 3.0? I want the second table to go to the position pointed by the red arrow as shown in the picture bellow:


Rabelani Netshifhire

Using input text instead Dropdown list as Parameter (Cube as my Data Source)

$
0
0

Greeting

im kinda new to SSRS , im working with cube as my source in my report , i created many parameters as Drop down list and i was able to manipulate them using  their dataset and change their parameter caption and value ,
i wanted  to set another Parameter but as an input text this time !

any idea how i can do that with a little example 


Thanks in Advance



ActiveX Report Viewer compatibility with SSRS 2017

$
0
0
We have a set-up that's worked previously using ActiveX Report Viewer on SQL Server 2008, however upgrading to 2017, and subsequently SSRS, has meant the previous functionality has been lost. Our easiest potential solution so far has been to re-establish the old ActiveX control, but we can't find any information on whether the two are compatible or not. Is it possible to use ActiveX Report Viewer in SSRS 2017?

Thanks in advance

SSRS Parameter Reset on View Report in Report Manager

$
0
0

Any help on this is highly appreciated.

SQL Server 2008 R2

We have created one report that have two multivalue parameters. Both parameters do not have any dependency. They do not have any default values and both have visible property.

This report is working fine in VS and able to select parameters values from drop down in visual studio but it is not working in report manager.

In report manager it allows me to select values for both parameters from the drop down and when i click on "View Report" button it resets second parameters and does not show report body at all.

I tried to switch parameters positions but even that did not help. After switching first parameter resets.

Anything i am missing here or further infomation please let me know. thanks in advance.


SSRS 2012 Report - Page Refreshes and Parameters change back to default

$
0
0

I have a report with 2 individual parameters that executes fine the first time. After executing, I wait approximately 45 seconds, and when I change the parameters again and click 'View Report', the parameters revert to default then executes with default parameters. I confirmed this with SQL Profiler. This is causing frustration with some users and I'm not sure what's causing this. It seems like there's a 45 second timeout where the whole page has to refresh.

NOTE parameters are NOT cascading. They are independent of each other.

Here is some troubleshooting I have tried:

- Parameter Advanced Options set to 'Never Refresh'
- Parameter Data pulling from Dataset (hard-coded default value still has this issue)
- I found one computer that this doesn't refresh the parameters. An old XP machine with IE 8.0.6001.18702. Win7 IE8 machines have this problem
- Tried clearing browser history, changing IE security options
- Tried 4 different computers with different IE versions. Tried other browsers

EDIT: 

I just tested a different report on a Win 7 machine, with only a single parameter. When the user changes the parameter and scrolls through the pages, the screen will suddenly refresh and revert the parameter back to default. 

I'm using SSRS 2012 RS Add-in for SharePoint v 11.1.3000.0


SSRS Duplicates Information Flag

$
0
0

Hello everyone,

I'm presently making a report on ssrs from a Great Plains Dynamics DB. 

It's a pretty simple report with a few columns. Everything works fine but in GP, when creating an Invoice or a Return bill, sometimes GP is gonna give the same Bill ID. It doesn't really shows as a duplicated because for GP, an Invoice and a Return can/could have the same ID because they are not the same type. Don't ask me why.. 

So for my report, when I start a research from a multiples values parameters with my SopNumber (Bill ID) it gives me the right information. But now I would like to have a flag on those information that equals the bill ID and has Invoice and Return at the same time. 

Since it is normal for GP to have 2 different type of document for the same ID, I cannot ask my report to remove the return or the invoice cause in different case, an Invoice could be the important document and in an other case, the return. 

In my tablix, I do not show the Bill ID, because I don't need the information except when there is this "duplication".

I would also like after the flag (line highlited), that on the top of my report, a sentence shows something like : "Those documents are in conflict : 000123123". So with this information showing my ID, I can now go in my multiple values parameter and remove this number.

I wanna achieve those 2 flags because I'm making a calcul from my documents amount and if those 2 would be there, it would make my calcul wrong.

Here would be my Sql Query

select CASE SOP10200.SOPTYPE
				WHEN 1 THEN 'QUOTE'
				WHEN 2 THEN 'ORDER'
				WHEN 3 THEN 'INVOICE'
				WHEN 4 THEN 'RETURN'
				WHEN 5 THEN 'BACK ORDER'
				WHEN 6 THEN 'FULLFILLMENT ORDER'
				END AS SOPTYPE,
				sop10200.SLPRSNID,
				sop10200.XTNDPRCE as ExtendedPrice,
				sop10200.SOPNUMBE,
				iv00101.ITMCLSCD as FAMILYCLASS,
				sop10100.DOCDATE

from sop10200
left join iv00101 on sop10200.ITEMNMBR = iv00101.ITEMNMBR
left join sop10100 on sop10200.SOPNUMBE = sop10100.SOPNUMBE

WHERE SOP10100.DOCDATE BETWEEN '2018-01-01 00:00:00.000' AND '2035-01-01 00:00:00.000' 
union all

select  CASE SOP30300.SOPTYPE
				WHEN 1 THEN 'QUOTE'
				WHEN 2 THEN 'ORDER'
				WHEN 3 THEN 'INVOICE'
				WHEN 4 THEN 'RETURN'
				WHEN 5 THEN 'BACK ORDER'
				WHEN 5 THEN 'FULLFILLMENT ORDER'
				END AS SOPTYPE,
				sop30300.SLPRSNID,
				sop30300.XTNDPRCE as ExtendedPrice,
				sop30300.SOPNUMBE,
				iv00101.ITMCLSCD as FAMILYCLASS,
				sop30200.DOCDATE

from sop30300
left join iv00101 on sop30300.ITEMNMBR = iv00101.ITEMNMBR
left join sop30200 on sop30300.SOPNUMBE = sop30200.SOPNUMBE

WHERE SOP30200.DOCDATE BETWEEN '2018-01-01 00:00:00.000' AND '2035-01-01 00:00:00.000'

ORDER BY SOPNUMBE desc

And here my report

I worked on a couple of different expressions but never got the result I wanted. 

I hope you guys can help me. If so, thank you very much in advance!


SSRS REPORT MULTIPLE PARAMETERS FILTER

$
0
0

Hello everyone,

Might be a stupid question, but I don't remember if I ever done that or not, I'm trying to make a report with multiple Tablix and multiple parameters.

My parameters goes as followed:

Each group of SOP is link with his Shipping Cost. Every information from each group goes into it's specific tablix like so :

Now  I want a final tablix that takes all of these SopGroup and bring them into one tablix. I might have the same sales person twice with the same Family class on both lines. So it would need to be grouped as only one line in my final tablix. I tried using my filter like I did with all my other tablix and make it like so :

But unfortunately, it would bring ALL of my parameters in the same tablix.

Thanks for your help!

SSRS Report Exporting CSV Issues

$
0
0

Hi Team,

I have exported SSRS report to csv format.

I observed below three issues.

1)Text box value not exporting as it is displayed in report.Its appearing as Textbox8...

2)Date value appearing in second row.

3)Column width shrinking,i want to set auto fit.Please suggest how to set auto fit option report.


SSRS export multiple tabs not working while exporting to csv

$
0
0

Hi,

I am exporting ssrs report to excel its displaying with multiple table,but not while exporting to csv.

I have done below steps 

created row group and provided page group.

Please find below attachment

Excel file with tabs

csv file exporting with out tabs






Passing report parameters to a query using a WCF data source

$
0
0

Hello everyone,

 

I am attempting to pass report parameters to my query. My report's data source is a WCF web service. I can run normal queries fine, but I have found that without the know-how to pass parameters to my query I am limited with my capabilities.

Assume a string parameter named "Name" with a specified default value of "Jmachol90", how would I pass that into the following query at the designated place:

 

 

<Query>

          <Method Namespace="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09" Name="SecurityPrincipalsGetRequest">

          <Parameters>

          <Parameter Name="Criteria" Type="XML">

<DefaultValue>

<Identifiers>

<Identifier>

<Name>[PASS PARAMETER IN HERE]</Name>

</Identifier>

</Identifiers>

<All>true</All>

 <ResultType>Details</ResultType>

 <Type>UserAccount</Type>

<FunctionPrivilege>Details</FunctionPrivilege>

</DefaultValue>

          </Parameter>

          </Parameters>

          </Method>

          <SoapAction>

          http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/SecurityPrincipalsGet

          </SoapAction>

          <ElementPath IgnoreNamespaces="True">

          SecurityPrincipalsGetResponse{}/Principals{}/Users{}/User

          {

           DisplayName

          }

          </ElementPath>

          </Query>

 

If you have any questions please ask.

 

Thanks,

 

Josh

 


Method Not Supported Error When Trying To Create New Report Model

$
0
0

 

I'm trying to create a few report models in Visual Studio to demonstrate the Report Builder tool and I'm encountering an issue when I try to generate a Report Model.

 

I get the error message "Specified Method Is Not Supported" when I click Finish on the Report Model wizard.  The error detail is:

 

===================================

Specified method is not supported. (Microsoft Visual Studio)

------------------------------
Program Location:

   at Microsoft.ReportingServices.ModelDesigner.Wizards.ChooseSemanticModelName.CreateSqlDsvStatisticsProvider(IDbConnection connection)
   at Microsoft.ReportingServices.ModelDesigner.Wizards.ChooseSemanticModelName.BuildModel()

 

 

Steps to reproduce:

1.  Create a new Report Model project in Visual Studio 2005 against SQL Server 2005

2.  Create a new data source.  The data source was tested and works correctly

3.  Create a new data source view.  The data source view was also tested (clicked on Explore Data) and I was able to look at the data in the view

4.  Right-click on Report Models and select "Add New Report Model"

5.  Click next at the welcome screen

6.  Select the data source view created in #3

7.  Leave the selected options for report model generation rules for creating the data source view

(Create Entities for all Tables, Create Count Aggregates, Create Attributes, Create Attributes for auto-increment columns, Create date variations, Create numeric aggregates, Create date aggregates, Create roles were all selected)

8.  Click next

9.  Select Update Model Statistics Before Generating (default option)

10.  Click next

11.  Click Run

 

Once I click run it processes for approx 3 seconds and then returns the error above.

 

If anyone could help me I'd appreciate it.  Microsoft hasn't published any details on the namespace and I'm not sure why I'd be getting the error I am.

 

Thanks in advane,

Maurice

Sort a tablix in SSRS based on another column in the table

$
0
0

Greeting 

im kinda new to SSRS ! i have a tablix that provide the top 5 selling store of my client 

i want to sort the tablix based on sales by stores 

NB : my Datasource is a cube of sales 

Thanks in advance 

Using Bar codes in SSRS 2017

$
0
0

I have a report that was created using v 2008 that included a barcode and it works fine. However when I migrate the report to the newest version the barcode language fails.

The error is "Failed to load expression host assembly. Details could not load file or assembly 'BarcodeLib, Version=1.0.0.22, Culture= neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant permission to execute. HRESULT:0x80131418

I have the following code in the report properties-code:

Public Function Convert(Text As String) As Byte()

           Dim b As System.Drawing.Bitmap

        '   Dim bar As New BarcodeLib.Barcode

           bar.Alignment = BarcodeLib.AlignmentPositions.LEFT

           bar.IncludeLabel = False

           bar.RotateFlipType = Drawing.RotateFlipType.RotateNoneFlipNone

           b = bar.Encode(BarcodeLib.TYPE.CODE128, Text, 400, 50)

           Dim bitmapData As Byte() = Nothing

           Using ms As New System.IO.MemoryStream()

               b.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp)

               bitmapData = ms.ToArray()

           End Using

           Return bitmapData

       End Function

I also have the following assemblies:

system.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

BarcodeLib, Version=1.0.0.22, Culture=neutral, PublicKeyToken=null

I have the class as:

BarcodeLib.Barcode        bar

What is my issue? and how do I fix this.

Thanks,

Trish


Trish Leppa

Rendering of PNG Image looks terrible when exported to PDF

$
0
0

Hi,

I have a requirement to embed signatures in a report. I have several different signatures. They look fine when I run the report, but when I export to PDF they look really terrible. If I run them to excel they look fine too. What is the trick when working with these kind of images?

We had the users sign a piece of paper then we scanned it.

We then used Adobe Photoshop to clear the background.

I have screen shots below. The first one is after it's exported to PDF.

The second one is how it looks from SSRS directly and how it comes out in Excel.

Any advice would be appreciated.

Thanks,

Trish

From PDF:

From SSRS before Exporting ( comes into excel just fine):


Trish Leppa

Report Subscription - Windows File Share - Not writing file to the shared folder

$
0
0

I was trying to create a report subscription as the steps mentioned in below link.

https://docs.microsoft.com/en-us/sql/reporting-services/subscriptions/subscriptions-and-delivery-reporting-services?view=sql-server-2017

I’ve tried both Standard and Data-Driven Subscriptions. And was trying the Windows File Share.

The issue I’m facing now is that, the report file which is generated by the subscription is not writing to the shared folder I’ve created in the Report Server.

Here is what I did.



  • Made sure the user is in Administrators Group


  • Here is my subscription (Owner and file share access Credentials are same/ same user has access to the Shared Folder as well)


  • I’ve tried adding a File Share account (the same WINDOWS user) as well because that is another option I can choose as shown above in the red highlighted


  • I’ve a question here: You can see it is mentioned in the screen shot above that “an account that is different from the account used for the Reporting Services service account”. This refers to the Service Account I mentioned below?
  • Service Account is set as Virtual Service Account (I don’t know this matters)


  • Always when the report subscription runs throws some ACCESS DENIED Error:
  • “Throwing Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: , Microsoft.ReportingServices.Diagnostics.Utilities.WindowsAuthz5ApiException: Windows returned a ERROR_ACCESS_DENIED error when Reporting Services attempted to call the Windows Authz APIs. If this issue persists the Reporting Services account may not possess permission to perform authentication checks. Check the Windows Authz documentation for more information and details on diagnosing issues. Authz method: AuthzInitializeContextFromSid, Error code: 5, UserName: WINDOWS\TestUser”
  •  I’ve tried several solutions in different forums and they’ll didn’t help (here are some links I’ve gone through):
  1. https://stackoverflow.com/questions/38056889/file-share-delivery-of-ssrs-without-domain
  2. https://support.microsoft.com/en-us/help/842423/a-call-to-the-authzinitializecontextfromsid-api-function-fails-during
  3. https://social.msdn.microsoft.com/Forums/en-US/bdc5b51c-444b-442d-9657-3cf5495e79d0/file-share-delivery-failing#7725882e-d7c6-4b3d-88f6-2620409c3d48
  4. https://www.sqlshack.com/report-subscription-changes-sql-server-reporting-services-2016/
  5. https://social.msdn.microsoft.com/Forums/en-US/3767a04c-0e91-41a0-b568-c01da23791f6/ssrs-2016-email-subscriptions?forum=sqlreportingservices
Viewing all 10045 articles
Browse latest View live


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