SSRS Reports Scheduling Override

I have some reports which have current date default parameters that needs to be mailed to management everyday between 10:00 AM to 5:00 PM.
So i have used Subscriptions of SSRS. But Subscriptions have limitation that it can not be scheduled for specific hours of day hence i have overriden them in backend through Sql Server Agent Jobs because it by default gives power to schedule Report for specific
interval in day. But every day the schedule changes to that of subscription's schedule(the overriding automatically gets removed). One of the reason i could think is because the curent datetime parameter is changed through Subscription daily automatically
that is why the overriden schedule gets removed. But i am not sure why it happens and what could be the workaround for it.
Please Help.......

Hi K Srivastava,
According to your description, your subscription has limited the schedule for specific hours of day. Right?
In Reporting Services, it supposed not to have any limitation for schedule. Even you have set the current date as parameter and you use it as default value in subscription, it only affect filtering records in report, it has no effect on schedule. Please
try to restart the report server and recreate a daily subscription, select all days and specify a start time between 10:00 AM to 5:00 PM. It the issue still exists, please post some detail information or screenshot about your subscription creation. It
can help us reproduce solve your problem. Thank you.
Reference:
Subscriptions and Delivery (Reporting Services)
Best Regards,
Simon Hou

Similar Messages

  • Schedule a SSRS report as step in SQL SERVER agent

    Hi All,
    The requirement is that can we schedule a job as a step in SQL Server Agent.
    Scenario: I got a SQL Agent job which got multiple steps. Executing SP's, running SSIS etc. The last setp i want to setup is run a SSRS report where it gives the report of all the steps. It is like a summary report.
    Is that is possible. If so hw can i achieve it.
    Thanks in advance.

    You can use rs utility to render reports using below script file
    http://skamie.wordpress.com/2010/08/11/using-rs-exe-to-render-ssrs-reports/
    and call rs utility from bat file or using xp_cmdshell.
    Then include this script as last step in your job.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    Visakh, I added you to this list:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/64ad4f52-2fd8-4266-b4a4-5657c8870246/needed-more-answerers?forum=sqlgetstarted
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Create SSRS report using Schedule Perfomance Index(SPI) from mpp file

    Hi,
    We have project server data available in sql server. We need to create SSRS report to show schedule performance Index(SPI) of each week of all the projects. So we have the TaskSPI data available in MSP_EPMTask_Userview table. But the corresponding project
    status date is represented once for each projects. Is the weekly status dates keeping anywhere in the database? How can achieve this functionality?
    Regards,
    Julie

    Hi Julie,
    SPI is calculated at task level and is also a timephased indicator (since BCWP and BCWS are also timephased). There are calculated based on the status date (project tab in the ribbon) which is at project level. The project status date is not kept in
    time, this is a unique value thus you do not have a weekly status date.
    Do you mean you want to keep an history of each value of the status date? Does it really make sense?
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • SSRS report email Scheduling omit zero record

    Is that a way to omit zero record for SSRS report email scheduling?
    That means if zero record happened it shouldn't trigger emailing.

    Hi SAMSUNG TECH,
    Per my understanding that you don't want to send the scheduled email subscription if the report have no data, right?
    I have tested on my local enviroment that you can modify the commend in the job step include some condition to send the email or not.
    Detials information in below for you reference:
    Open SQL Server Management Studio (SSMS) to connect to Database Engine ->expand SQL Server Agent->expand Jobs, double-click the Job.
    you can use query below to find the Subscription you have just created and the “ScheduleID” in the table is equal to the Jobs Name.
    use ReportServer;
    SELECT USR.UserName AS SubscriptionOwner
    ,SCH.ScheduleID
    ,SCH.NextRunTime
    ,SCH.LastRunTime
    ,SCH.EndDate
    ,SCH.EventData
    ,SUB.EventType
    ,SUB.SubscriptionID
    ,SUB.ModifiedDate
    ,SUB.[Description]
    ,SUB.DeliveryExtension
    ,SCH.Name AS ScheduleName
    ,CAT.[Path] AS ReportPath
    ,CAT.[Description] AS ReportDescription
    FROM dbo.Subscriptions AS SUB
    INNER JOIN dbo.Users AS USR
    ON SUB.OwnerID = USR.UserID
    INNER JOIN dbo.[Catalog] AS CAT
    ON SUB.Report_OID = CAT.ItemID
    INNER JOIN dbo.ReportSchedule AS RS
    ON SUB.Report_OID = RS.ReportID
    AND SUB.SubscriptionID = RS.SubscriptionID
    INNER JOIN dbo.Schedule AS SCH
    ON RS.ScheduleID = SCH.ScheduleID
    ORDER BY USR.UserName
    ,CAT.[Path]
    2.  Select "Steps" on the left pane on the Job Properties window.
    3.  Click Edit button in the bottom of the window and then change the command
    Existing command is:
    EXEC [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    Change the command as below: (Remember to check the Database Name and table name):
    If exists
    (Select top 1 * from [DBName].TableName )
    EXEC   [ReportServer].dbo.AddEvent @EventType='TimedSubscription',   @EventData='9be28f07-3784-4070-802a-b7ca0aec4c7c'
    BEGIN
    END
    Note: Change the @EventType and @EventData to the values in your job,the value of this two fields can be found by execute the query in step1.
    More details information in below articles:
    http://www.jasonyousef.com/2012/02/dont-send-that-empty-ssrs-report.html
    http://blogs.msdn.com/b/bimusings/archive/2005/07/29/445080.aspx
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • Link from SSRS Report to a Project Gantt, Focusing on a Task

    Hi,
    We are using Server 2010 SP 2 (and considering moving to 2013).
    We have an SSRS grid report in which each row relates to a task in a project on the server.
    We would like to add to each row in the report a link that will open the project and focus on the relevant task. The project can be opened either in Professional, Project Center or Project Site (any will
    satisfy, as long as the user sees the task in a Gantt context).
    Is this possible in 2010? Is this possible in 2013?
    Thanks,
    Barak

    Hi, 
    you can easily create a hyper link to project site of that particular project, but unfortunately you are limited to redirect to that project's particular schedule PDP only not to your desire view.
    so once the user will click on link, he/she will be redirected to project site's view which they have opened last time as PS always opens the last view in-use by the user. so there is chance that instead of task related view, they may see resource/assignment
    etc etc view.
    If above is OK with you then great, simply create a ssrs column to redirect to something similar like this: http://<server-name>/<PWA-Instance>project detail pages/schedule.aspx?projuid=<projduid>
    in case above is not satisfactory, then you may need to create another ssrs report to be accessed from that parent report to show you your required results. but then it wont be a gantt view, instead you can show another tabular/graphics report to show required
    data.
    so basically its a trade-off between options :)
    hope this helps.
    Khurram Jamshed - MBA, PMP, MCTS, MCITP (
    Blog, Twitter, Linkedin )
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • SSRS report mail subsription is failing.

    Hi All,
    I have one SSRS report which is deployed in my local report server. I need to activate email subscription for the same. I have given my outlook email address and SMTP server which is copied from outlook settings to Report configuration manager. Then I have
    created a mail account and profile in sql server. I made the profile as public and default one. I have chosen basic authentication and provided my windows account and password for SMTP authentication. Port number is 25 which was given there as default.
    SSL was not ticked. Then I have tried with the below sp.
    EXEC msdb.dbo.sp_send_dbmail
    @recipients='[email protected]'
     ,@subject='test'
    ,@body='test'
    Everything worked fine. I have got the mail also. Then I tried to create a mail subscription for the deployed report on
    my report server. I have scheduled it also. But I'm getting error message. Then searched in net and read somewhere that we are supposed to use windows authentication for SMTP. Then I changed the mail account to use windows authentication for SMTP. Even then
    also I'm getting the same error given below.
    Failure sending mail: The SMTP server requires a secure connection or the
    client was not authenticated. The server response was: 5.7.1 Client was not
    authenticatedMail will not be resent.
    I have noticed another issue.
    Because of the above error, I have chosen to use the secure connection (SSL) in the mail account. Also, SMTP authentication is Basic Authentication. I am not able to send email from database itself after checking the secure connection option. I
    was able to send mail from database(by using the [proc dbo.sp_send_dbmail) when unchecking Secure connection option.  
    I'm getting the below error when running this query
    SELECT
    *FROMmsdb.dbo.sysmail_event_logorderbylog_datedesc
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 6 (2015-04-22T17:45:22). Exception Message: Cannot send mails to mail server. (The remote certificate is invalid according to the validation procedure.).
    Please suggest
    Regards,
    Julie

    See if this helps
    https://saravananarumugam.wordpress.com/2012/04/30/the-smtp-server-requires-a-secure-connection-or-the-client-was-not-authenticated-the-server-response-was-5-7-1-client-was-not-authenticated/
    Also check SSRS config
    https://msdn.microsoft.com/en-us/library/ms345234.aspx
    If still it doesnt work see if you can turn on anonymous authentication in SMTP server
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Report Schedule - SQL Server Agent

    Hi,
    We have few SSRS reports which has to run daily after the data is loaded in the database.
    I scheduled the reports on timely based and got the Job Id's using SQL server agent and using SP_START_JOBs stored procedure to run.
    But the problem is it is creating multiple files one for time and one for SP_START_JOBS procedure.
    Any idea how to avoid this?
    I really appreciate any help.
    Thanks,
    Sarah

    If you're going to schedule your SSRS jobs using the agent, don't schedule them in SSRS using subscriptions as well...
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • Send an alert to notify ssrs report rendering is failed

    Hi Friends,
    I have one small requirement.
    When ever the report fails in rendering time or report is not working(due to some data issues), I have to
    send an alert to notify people this report is rendering failed or report is throwing some error.
    How can I do that, please help me on this..

    Hi Priya,
    SSRS unfortunately doesn't give much automatic altering when reports fail (for whatever reason).  There is however a good logging table you can use.  I use the below query to monitor failed subscription, however you easily modify it to find any
    failures:
    SELECT
    c.Name AS [ReportName],
    sb.[Description] AS [SubscriptionDescription],
    sb.DeliveryExtension AS [DeliveryType],
    sb.LastStatus AS [LastRunStatus],
    sb.LastRunTime AS [LastRunTime],
    c.Path AS [ReportPath],
    'http://YourSSRSServer/Reports/Pages/Report.aspx?ItemPath='+REPLACE(REPLACE(C.[Path],'/','%2f'),' ','+')+'&SelectedTabId=PropertiesTab&ViewMode=List&SelectedSubTabId=SubscriptionsTab' AS [SubscriptionLink],
    sc.ScheduleID AS [SQLAgentJobName],
    sb.SubscriptionID
    FROM
    ReportServer.dbo.ReportSchedule AS RS
    INNER JOIN ReportServer.dbo.Schedule sc ON rs.ScheduleID = sc.ScheduleID
    INNER JOIN ReportServer.dbo.Subscriptions sb ON rs.SubscriptionID = sb.SubscriptionID
    INNER JOIN ReportServer.dbo.[Catalog] c ON rs.ReportID = c.ItemID AND sb.Report_OID = c.ItemID
    WHERE
    (sb.LastStatus LIKE 'Failure%' OR sb.LastStatus LIKE 'Error%' OR sb.LastStatus LIKE '%not valid%')
    Once I find failures I send an email and enter them into a table (so I can monitor over time with another SSRS report).
    Thanks,
    UnoT

  • SSRS Report Returning Double Quote string from a Single Quote String

    Hi, I'm getting weird thing in resultset from SSRS report when executed. When I pass parameter to a report, which passes String that has single quote value to a split function , it returns rows with double quote. 
    For example  following string:
    'N gage, Wash 'n Curl,Murray's, Don't-B-Bald
    Returns: 
    ''N gage, Wash ''n Curl,Murray''s, Don''t-B-Bald
    through SSRS report.
    Here is the split function Im using in a report.
    CREATE Function [dbo].[fnSplit] (
    @List varchar(8000), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(8000) NULL 
    As 
    Begin 
    Declare @item varchar(4000), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final delimiter 
    Select @List = @List + @Delimiter -- get position of first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List) - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    FYI: I'm getting @List value from a table and passing it as a string to split function. 
    Any help would be appreciated!
    ZK

    Another user from TSQL forum posted this code which is returning the same resultset but when I execute both codes in SQL server it works and return single quote as expected.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d5c96f5-c498-4f43-b2fb-284b0e83b205/passing-string-which-has-single-quote-rowvalue-to-a-function-returns-double-quoate?forum=transactsql
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    ZK

  • SSRS Reports taking long time to load

    Hello,
    Problem : SSRS Reports taking long time to load
    My System environment : Visual Studio 2008 SP1  and SQL Server 2008 R2
    Production Environment : Visual Studio 2008 SP1  and SQL Server 2008 R2
    I have created a Parameterized report (6 parameters), it will fetch data from 1 table. table has 1 year and 6 months data,      I am selecting parameters for only 1 month (about 2500 records). It is taking almost 2 minutes and 30 seconds
    to load the report.
    This report running efficiently in my system (report load takes only 5 to 6 seconds) but in
    production it is taking 2 minutes 30 seconds.
    I have checked the Execution log from production so I found the timing for
    Data retrieval (approx~)       Processing (approx~)               Rendering (approx~)
    10 second                                      15 sec                        
                2 mins and 5 sec.
    But Confusing point is that , if I run the same report at different time overall output time is same (approx) 2 min 30 sec but
    Data retrieval (approx~)       Processing (approx~)                Rendering (approx~)
    more than 1 min                            15 sec                                     
    more than 1 min
    so 1 question why timings are different ?
    My doubts are
    1) If query(procedure to retrieve the data) is the problem then it should take more time always,
    2) If Report structure is problem then rendering will also take same time (long time)
    for this (2nd point) I checked on blog that Rendering depends on environment structure e.g. Network bandwidth, RAM, CPU Usage , Number of users accessing same report at a time.
    So I did testing of report when no other user working on any report But failed (same result  output is 2 min 30 sec)
    From network team I got the result is that there is no issue or overload in CPU usage or RAM also No issue in Network bandwidth.
    Production Database Server and Report server are different (but in same network).
    I checked that database server the SQL Server is using almost Full RAM (23 GB out of 24 GB)
    I tried to allocate the memory to less amount up to 2GB (Trial solution I got from Blogs) but this on also failed.
    one hint I got from colleague that , change the allocated memory setting from static memory to dynamic to SQL Server
    (I guess above point is the same) I could not find that option Static and Dynamic memory setting.
    I did below steps
    Connected to SQL Server Instance
    Right click on Instance go to properties, Go to Memory Tab
    I found three options 1) Server Memory   2) Other memory   3) Section for "Configured values and Running values"
    Then I tried to reduce Maximum  Server memory up to 2 GB (As mentioned above)
    All trials failed, this issue I could not find the roots for this issue.
    Can anyone please help (it's bit urgent).

    Hi UdayKGR,
    According to your description, your report takes too long to load on your production environment. Right?
    In this scenario, since the report runs quickly in developing environment, we initially think it supposed to be the issue on data retrieval. However, based on the information in execution log, it takes longest time on rendering part. So we suggest you optimize
    the report itself to reduce the time for rendering. Please refer to the link below:
    My report takes too long to render
    Here is another article about overall performance optimization for Reporting Services:
    Reporting Services Performance and Optimization
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to get period date of for a given month from a given date in mdx for SSRS report (mm/dd/yyyy)

    I have a situation,  where i need to write expression Period to date(PTD). i want to know how to get the period date. i want you to help in writing Period date or else is there any function to get period date for a given date(the  date is given
    from the parameter dynamically) in MDX for SSRS report
    ram

    Hi ram,
    Per my understanding that you want to get the period date based on the month selected and the given date, right?
    Could you please provide details information below to help us better understanding your requirements, thus we will be more effective to provide an solution:
    What is the format of the period date you want to get, is this date in the DB and you want to filter it based on the month and the given Date?
    Did the month and given date are two parameters in the report? if possible, could you please provide some sample data in the DB and also the snapshot of the report structure
    I assume you want to get the period date(mm/dd/yyy) between the select month(e.g:Feb) and the given date (10/1/2014) and you should get the date between(02/01/2014-10/1/2014).
    If so,and you also have two parameter "Month","EndDate"(EndDate is the given date), please reference to details information below:
    You can create an new parameter "BeginDate" (Date/Time) which is the begin date of the period, you can use the expression to get the value based on the value of the month and the year value from the given date,finally hide this parameter:
    Specify the available value:
    Label:=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value)
    Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
    Specify the default Value:
    Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
    Add filter to the dataset as below:
    Preview you will get all the date in the given Period:
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Ssrs report web service to save report as pdf throws error Soap exception unhandeled by user code

    I am creating a C# web application to save  an SSRS report as a pdf file on my local machine.
    I added the ReportService web reference as RS2005 and ReportExecution2005 web reference as RE2005.
    http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx?WSDL
    http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx?WSDL
    I created the following function SaveReport that is called on button click. My report can be accessed on the report server with the following url:
    http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter
    On the Report Manager home page the report link appears as "SAMPLE LETTER".
    It is deployed in the DataMgmt folder on the Report Manager.
    It uses a data source called "DS Letter" with option "Credentials stored securely in the report server"
    My application gets compiled, but I get the following run time error:
    Error: Soap exception unhandeled by user code. The item '/DataMgmt/Sample Letter' cannot be found. ---> Microsoft.ReportingService
    s.Diagnostics.Utilities.ItemNotFoundException: The item '/DataMgmt/Sample Letter' cannot be found.
    Please check my code and let me know what I can do to run this successfully. Once this is done, I would like to get help with passing a parameter (memberID) to the generate report for that member, through this application.
    Thank You in advance for your help.
    public static void SaveReport()
    RS2005.ReportingService2005 rs;
    RE2005.ReportExecutionService rsExec;
    // Create a new proxy to the web service
    rs = new RS2005.ReportingService2005();
    rsExec = new RE2005.ReportExecutionService();
    // Authenticate to the Web service using Windows credentials
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = "http://myServer/ReportServer_DEVPROJECT/ReportService2005.asmx";
    rsExec.Url = "http://myServer/ReportServer_DEVPROJECT/ReportExecution2005.asmx";
    string historyID = null;
    string deviceInfo = null;
    string format = "pdf";
    Byte[] results;
    string encoding = String.Empty;
    string mimeType = String.Empty;
    string extension = String.Empty;
    RE2005.Warning[] warnings = null;
    string[] streamIDs = null;
    string fileName = @"c:\temp\samplerHAPeport.pdf";
    string _reportName = @"/DataMgmt/Sample HAP Letter";
    string _historyID = null;
    bool _forRendering = false;
    RS2005.ParameterValue[] _values = null;
    RS2005.DataSourceCredentials[] _credentials = null;
    RS2005.ReportParameter[] _parameters = null;
    try
    _parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials);
    RE2005.ExecutionInfo ei = rsExec.LoadReport(_reportName, historyID);
    RE2005.ParameterValue[] parameters = new RE2005.ParameterValue[1];
    if (_parameters.Length > 0)
    //parameters[0] = new RE2005.ParameterValue();
    //parameters[0].Label = "";
    //parameters[0].Name = "";
    //parameters[0].Value = "";
    rsExec.SetExecutionParameters(parameters, "en-us");
    results = rsExec.Render(format, deviceInfo,
    out extension, out encoding,
    out mimeType, out warnings, out streamIDs);
    using (FileStream stream = File.OpenWrite(fileName))
    stream.Write(results, 0, results.Length);
    catch (Exception ex)
    throw ex;
    protected void BtnGenReport_Click(object sender, EventArgs e)
    SaveReport();

    Hello Devster,
    Thank you to post your question on TechNet forum.
    After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
    From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
    am not sure whether you post out the correct code segment.
    Please check the above things on your side, and hope it is helpful to you.
    Regards,
    Edward
    Edward Zhu
    TechNet Community Support

  • SSRS report with tabular model - MDX query to filter parameter data based on Tuple value.

    Hello Everyone,
    I am working on SSRS report in which a tabular model is being used as a backend.
    I want to filter the report parameters which are dependent to other parameters. Like, country, state, and cities drop downs.
    All are multi-select parameters. I am using MDX queries to filter the parameters data.
    Based on selected one or more countries, the data of states needs to be filtered.
    The point is the text which is being displayed in state dropdown for each state name is combination of 3 different members.
    So, I created the following Tuple for the same and can see the expected display names in states dropdown.
    "("+
    [Location].[Code 1].CURRENTMEMBER.UNIQUENAME +","+
    [Location].[Code 2].CURRENTMEMBER.UNIQUENAME +","+
    [Location].[Descr].CURRENTMEMBER.UNIQUENAME +")"
    Now, when I would like filter the cities data based on selected one or more states, I am unable to pass the multiple Tuples (more than one selected Tuples) as parameter for cities dropdown.
    The following is my query for City parameter. It is working well when I select only one State from the dropdown.
    However, when I select multiple states, it is unable to convert the Tuple into SET in ELSE part of IIF condition specified in following query.
    Can anybody help me how to resolve the error that I am getting about STRTOSET function?
    Or
    Are there any other alternatives to achieve this requirement?
    Any help would be much appreciated.
    Query:
    WITH MEMBER [Measures].[ParameterCaption] AS [City].[City Business].CURRENTMEMBER.MEMBER_CAPTION
    MEMBER [Measures].[ParameterValue] AS [City].[City Business].CURRENTMEMBER.UNIQUENAME
    MEMBER [Measures].[ParameterLevel] AS [City].[City Business].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
    [City].[City Business].Children ON ROWS
    FROM (
    SELECT ( STRTOSET(@State, CONSTRAINED) ) ON COLUMNS FROM [Model])
    WHERE ( IIF( STRTOSET(@State).Count= 1,
    STRTOTUPLE(@State, CONSTRAINED),
    STRTOSET("{
    ("+
    [Location].[Code 1].CURRENTMEMBER.UNIQUENAME +","+
    [Location].[Code 2].CURRENTMEMBER.UNIQUENAME +","+
    [Location].[Descr].CURRENTMEMBER.UNIQUENAME
    + ")
    }",CONSTRAINED )) ) CELL PROPERTIES VALUE
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

    Hi,
    I used following dynamic query in expression of dataset of parameter and it works like a charm.
    "WITH MEMBER [Measures].[ParameterCaption] AS [City].[City Business].CURRENTMEMBER.MEMBER_CAPTION "&
    "MEMBER [Measures].[ParameterValue] AS [City].[City Business].CURRENTMEMBER.UNIQUENAME "&
    "MEMBER [Measures].[ParameterLevel] AS [City].[City Business].CURRENTMEMBER.LEVEL.ORDINAL "&
    "SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , " &
    "[City].[City Business].Children ON ROWS " &
    " FROM [Model] WHERE ({"& join(Parameters!Location.Value,",") &"}) CELL PROPERTIES VALUE"
    Thanks, Ankit Shah
    Inkey Solutions, India.
    Microsoft Certified Business Management Solutions Professionals
    http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html

  • SSRS Report with mutli select values in parameters

    Hi All,
    I am creating a SSRS report and displaying the result in tablix. I want to make the report to filter by multi select values from the parameters.
    I have 3 parameters. For all the three parameters, I have set "Default  Values" and "Available Values". Also, modified my result dataset to get the values from parameters using "WHERE ID = @Parameter1" (example) and so
    on..
    3 Parameters types:   1. Yes or No       
    2. Date          3. Values with NULL in the DB
    Problems:
    1. When I am passing the default values "Yes" "No" - it is throwing errors because default values is passed as Yes "AND" No instead of "OR" condition. The value stored in the DB wil have either Yes or No but not both.
    2. When I am querying the date values, it is a DateTime field in the DB. But I have queried like SELECT CONVERT(DATE, EXE_DATE) AS DATE FROM table which is giving only date in SQL but in SSRS displaying date with time.
    3. When I pull the list of values for third Parameter from SQL, it has some NULL values. When I try to use it in SSRS, it is not displaying the NULL value as select option in the list of values
    Any suggestions for the above three problems for SSRS with multi select values as filter will be helpful.
    Maruthu | My Blog

    Hi Maruthi,
    Regarding the three things:
    1.) I believe your first parameter is mutliselect , please convert it to single select.
    Steps: 
    a.) Select the parameter, right click and go to parameter properties
                    b.) Under General Tab in DataType section remove the checkbox for Allow Multiple Value.
    2.) Instead of returning as the date please return string. For example : 
    SELECT CONVERT(VARCHAR, GETDATE(),101)
    Here is the list of conversion : http://www.sqlusa.com/bestpractices/datetimeconversion/
    3.) As such there is no concept of null in SSRS. (Its a relational concept) . We do have nothing , which means empty. In Order to use null please select the Allow null option in the DataType section of the Parameter, This will add an checkbox for null in
    the report preview. Its developer job to handle the null values in there query.
    Regards Harsh

  • Generate SSRS Report and save as PDF in SharePoint

    Hi,
    I am working on a SharePoint 2010 Visual WebPart that lets a user click a button to generata a SSRS report and save the report in a SharePoint Library as a PDF file.  Code is mentioned below:
    try
    string siteContext = SPContext.Current.Web.Url;
    string strReport = siteContext + "/Reports/Quote/Quote.rdl";
    WR_SSRS.ReportExecutionService rs = new WR_SSRS.ReportExecutionService();
    rs.Url = siteContext + "/_vti_bin/ReportServer/ReportExecution2005.asmx";
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    byte[] result;
    string format = "PDF";
    string historyID = null;
    string devInfo = "<DeviceInfo><Toolbar>False</Toolbar></DeviceInfo>";
    WR_SSRS.ParameterValue[] parameters = new WR_SSRS.ParameterValue[3];
    parameters[0] = new WR_SSRS.ParameterValue();
    parameters[0].Name = "EnqID";
    parameters[0].Value = enqID.ToString();
    parameters[1] = new WR_SSRS.ParameterValue();
    parameters[1].Name = "QuotationID";
    parameters[1].Value = quoteID;
    WR_SSRS.DataSourceCredentials[] credentials = null;
    string showHideToggle;
    string encoding;
    string mimeType;
    WR_SSRS.Warning[] warnings;
    WR_SSRS.ParameterValue[] reportHistoryParameters;
    string[] streamIDs;
    WR_SSRS.ExecutionInfo execInfo = new WR_SSRS.ExecutionInfo();
    WR_SSRS.ExecutionHeader execHeader = new WR_SSRS.ExecutionHeader();
    string SessionId = null;
    string extension;
    rs.ExecutionHeaderValue = execHeader;
    execInfo = rs.LoadReport(strReport, historyID);
    rs.SetExecutionParameters(parameters, "en-gb");
    SessionId = rs.ExecutionHeaderValue.ExecutionID;
    result = rs.Render(format, devInfo, out extension, out mimeType, out encoding, out warnings, out streamIDs);
    execInfo = rs.GetExecutionInfo();
    using (SPSite site = new SPSite(SPContext.Current.Site.ID))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPFolder folder = web.Folders[siteContext + "/Quotes"];
    string filename = string.Concat(quoteID, ".pdf");
    //remove old copies
    SPList lib = web.Lists["Quotes"];
    foreach (SPListItem i in lib.GetItems())
    if (i.Name == filename)
    i.Delete();
    break;
    SPFile file = folder.Files.Add(filename, result);
    SPListItem item = file.Item;
    item["EnquiryID"] = enqID.ToString();
    item["FinalQuote"] = "No";
    item.Update();
    web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    LogError(ex.Message);
    The WebPart works fine in my local server and even on another development testing server.  However, once deployed to the live server that has claims authentication it stops working and throws an error that says:
    "Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. 
    The request failed with the error message: 
    <RSError xmlns="http://www.microsoft.com/sql/reportingservices"><MoreInformation><Message>An unknown error occurred with the Reporting Services endpoint on this SharePoint site. Contact the SharePoint site administrator for help.</Message></MoreInformation></RSError> 
    If I open the report manually in SharePoint Site, it works fines it even works fine when try to view in a WebPart. 
    Can someone help me with this ?
    Regards, Vikram

    Hi Vicky,
    Based on the error message, it is related to the service account for reporting service.
    If the Report Server service runs under a built-in account such as NetworkService, the Grant database access option in SharePoint Central Administration will not work correctly.
    Configure the service account to run under a domain user account as follows:
    1. Start the Reporting Services Configuration tool and connect to the report server.
    2. On the Service Account page, click Use another account, enter a domain user account, and click Apply.
    3. Click Web Service Identity, for Report Server, click New, type an application Restart the Report Server service.
    Here is a detailed MSDN article for your reference:
    http://msdn.microsoft.com/en-us/library/ms159704.aspx
    Best Regards
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for

  • Adding a new toolbar button in IC to Save the transaction

    Hi, I want to add a new custom button to my IC Toolbar which would do save. I have gone through some blogs( http://it.toolbox.com/blogs/sap-crm/how-to-add-buttons-to-the-ic-webclient-toolbar-46764 ) and able to get a new button and subscribe an event

  • Error in activating Info source

    Hi All; It gives me warning log, but where to see it. View the log for the function 'Show log for the node' in the Administrator Workbench. Thanks, Manasa.

  • New Authorization Object within Role

    hi everybody, does anyone know how can i get New Authorization Objects for any Role for the new release that did not exist in the same Role from former release? tables AGR_1250 and AGR_1251 do not show if object is new for this role. they only show i

  • Why does my iPad mini not receive 2.4ghz signal but does receive 5.0 ghz signal?

    I have an iPad mini that does not receive a signal from any router on 2.4 ghz, but does receive a signal from the same router if it is 5.0 ghz. Since most public wireless systems broadcast on 2.4 ghz, I am unable to use the mini anywhere except my ho

  • Elements locks up when opening photos

    I have not been able to use photoshop elements 11 since I installed it. It keeps locking up when I try of open a picture. (thread title edited by forum host)