[Forum FAQ] How to configure a Data Driven Subscription which get multi-value parameters from one column of a database table?

Introduction
In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
EmailAddress                             Parameter                      
Comment
[email protected]              2012,2013,2014               NULL
In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
Workaround
Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
EmailAddress                        Parameter             Comment
[email protected]         2012                     NULL
[email protected]         2013                     NULL
[email protected]         2014                     NULL
In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
From
Expression:[ParameterName]
Operator   :In
Value         :[@ParameterName]
To
Expression:[ParameterName]
Operator   :In
Value         :Split(Parameters!ParameterName.Value,",")
In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

For every Auftrag, there are multiple Position entries.
Rest of the blocks don't seems to have any relation.
So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
Try out this snippet.
DATA lt_data TYPE TABLE OF string.
DATA lv_data TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
  EXPORTING
    filename = 'C:\temp\test.txt'
  CHANGING
    data_tab = lt_data
  EXCEPTIONS
    OTHERS   = 19.
CHECK sy-subrc EQ 0.
TYPES:
BEGIN OF ty_str,
  a1 TYPE string,
  a2 TYPE string,
  a3 TYPE string,
  p1 TYPE string,
  p2 TYPE string,
  p3 TYPE string,
END OF ty_str.
DATA: lt_str TYPE TABLE OF ty_str,
      ls_str TYPE ty_str,
      lv_block TYPE string,
      lv_flag TYPE boolean.
LOOP AT lt_data INTO lv_data.
  CASE lv_data.
    WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
         OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
      lv_block = lv_data.
      lv_flag = abap_false.
    WHEN OTHERS.
      lv_flag = abap_true.
  ENDCASE.
  CHECK lv_flag EQ abap_true.
  CASE lv_block.
    WHEN '[Auftrag]'.
      SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
    WHEN '[Position]'.
      SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
      APPEND ls_str TO lt_str.
  ENDCASE.
ENDLOOP.

Similar Messages

  • SSRS 2005 - Data Driven Subscription

    Hi ,
    On my report manager - 2005, I have one report which has only one parameter (Seller) and this is a single select parameter (NOT multiple selects)
    I want to create a data driven subscription which will send automatic Email to specified users on a weekly basis (every Friday morning)
    The only condition while sending excel formatted email is that, it should select some specific values only for this parameter "Seller"
    Example, it should send email to users only for Seller = A, B, and C and it should NOT send data for all other sellers
    Can you pl explain each step to do this ?
    Regards

    Hi UltraDev,
    If I understand correctly, you want to use data-driven subscription to send corresponding report to specific Seller. Please refer to the following steps:
    Click New Data-driven Subscription icon in the Subscriptions dialog box of the report.
    Select E-Mail option of Specify how to recipients are notified, and select “Specify a shared data source”. Next.
    Select the corresponding datasource. Next.
    Add query in the blank. It is related to the recipient. You can refer to the following code:
    Select ‘[email protected]’ as SellerAddress, ’A’ as Seller
    Union
    Select ‘[email protected]’ as SellerAddress, ’B’ as Seller
    Union
    Select ‘[email protected]’ as SellerAddress, ’C’ as Seller
    In the Step4 page, select “Get the value from the database” below “To”.
    Then, we can select the Seller field as the specify value which is only with A, B, C three values.
    In the Step5 page, we can configure the parameter values.
    After that, we can configure the schedule of the subscription.
    There is an article about how to Creating a Data-Driven Subscription, you can refer to it.
    http://technet.microsoft.com/en-us/library/ms169673(v=sql.90).aspx
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • SSRS Data Driven Subscription Management Questions

    I have two questions on data driven subscriptions in SSRS 2012 Enterprise Edition
    1) Is there a limit to how many can run at a time?  The reason I am asking is that yesterday we had a very large subscription running and we had several others waiting to run,  We waited for about 8 hours before they actually ran.  There was
    plenty of resource on the Oracle database server and plenty of resource on the reporting server, I am wondering if there is a limit that I can increase to the number of jobs that can run at a given time?
    2) My second question has to do with how to stop a data driven subscription?  We tried everything from rebooting the SSRS server, to stopping the SQL Server Agent Job, to identifying the process on the database server and nothing stopped the job from
    running.  How do I do stop a job?
    Thank you

    Hi Sql Dude,
    1) Is there a limit to how many can run at a time?  The reason I am asking is that yesterday we had a very large subscription running and we had several others waiting to run, 
    We waited for about 8 hours before they actually ran.  There was plenty of resource on the Oracle database server and plenty of resource on the reporting server, I am wondering if there is a limit that I can increase to the number of
    jobs that can run at a given time?
    In Reporting Services, there is a setting in RSReportServer.config file called MaxQueueThreads. It specifies the number of threads used by the Report Server Windows service for concurrent processing of subscriptions and notifications. By default, the value
    is 0. Also you can specify the value for this setting. For more information, please refer to this article:
    MaxQueueThreads.
    2) My second question has to do with how to stop a data driven subscription? 
    We tried everything from rebooting the SSRS server, to stopping the SQL Server Agent Job, to identifying the process on the database server and nothing stopped the job from running. 
    How do I do stop a job?
    In Reporting Services, we can’t pause a subscription directly. But we can interrupt the subscription processing ahead of the processing starting or connecting to the data source successfully. In your scenario, you can disable a shared data source so that
    the data source is unavailable for the report. Or you can pause the schedule to prevent processing. For more information, please refer to this article:
    Pause Report and Subscription Processing.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Data driven subscription not working properly.

    Dear All
    I am in trouble in finding solution to this please help me on this.
    I have a data driven subscription which sends group wise multiple mail to recipients.
    Now when subsciption runs it only send one email to one recipient and in status show like..
    where in reportserver database it shows single execution of subscription .
    Kindly note last run : 11:02:06
    this is log files for above run time :
    library!WindowsService_1!fc8!09/26/2014-11:02:06:: i INFO: Schedule 885a4ed9-3722-4867-92c2-f6af77533064 executed at 09/26/2014 11:02:06.
    schedule!WindowsService_1!fc8!09/26/2014-11:02:06:: Creating Time based subscription notification for subscription: f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6
    library!WindowsService_1!fc8!09/26/2014-11:02:06:: i INFO: Schedule 885a4ed9-3722-4867-92c2-f6af77533064 execution completed at 09/26/2014 11:02:06.
    library!WindowsService_1!a04!09/26/2014-11:02:06:: i INFO: Handling data-driven subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report /EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report
    Server Email.
    library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    notification!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
    library!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    notification!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
    notification!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
    notification!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
    notification!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: Handling subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6 to report HR_yesterday_Missing_Punch_Report_005, owner: BCS\Administrator, delivery extension: Report Server Email.
    library!WindowsService_1!a04!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
    library!WindowsService_1!fc8!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
    library!WindowsService_1!1174!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
    library!WindowsService_1!7c0!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
    library!WindowsService_1!ae4!09/26/2014-11:02:07:: i INFO: RenderForNewSession('/EDP_Reports/HR And Admin/HR_yesterday_Missing_Punch_Report_005')
    library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to GetSystemPermissionsAction().
    library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to ListSubscriptionsAction(null, null).
    library!ReportServer_0-1!1154!09/26/2014-11:02:07:: Call to GetSystemPropertiesAction().
    library!WindowsService_1!1174!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!fc8!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!a04!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!ae4!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!7c0!09/26/2014-11:02:08:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    library!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    emailextension!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 93) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    notification!WindowsService_1!a04!09/26/2014-11:02:09:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
    timeout or low disk condition within the database.Mail will not be resent.
    library!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    emailextension!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 95) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    notification!WindowsService_1!1174!09/26/2014-11:02:14:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
    timeout or low disk condition within the database.Mail will not be resent.
    library!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    emailextension!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 90) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    notification!WindowsService_1!ae4!09/26/2014-11:02:16:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
    timeout or low disk condition within the database.Mail will not be resent.
    library!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: , An error occurred within the report server database.  This may be due to a connection failure, timeout
    or low disk condition within the database.;
    emailextension!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerStorageException: An error occurred within the report server database.  This may be due to a connection
    failure, timeout or low disk condition within the database. ---> System.Data.SqlClient.SqlException: Transaction (Process ID 88) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    notification!WindowsService_1!fc8!09/26/2014-11:02:18:: e ERROR: Error occured processing subscription f9acd34c-e7f2-41e9-86d1-c0b7fd1491d6: Failure sending mail: An error occurred within the report server database.  This may be due to a connection failure,
    timeout or low disk condition within the database.Mail will not be resent.
    library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to GetSystemPermissionsAction().
    library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to ListSubscriptionsAction(null, null).
    library!ReportServer_0-1!1154!09/26/2014-11:02:42:: Call to GetSystemPropertiesAction().
    I am not getting why it is happening .. hope this is enough to understand issue
    Dilip Patil..

    Make sure you have enough space for ReportserverTempDb and SQL Server TempDB for getting the data from respective database.
    As per the errors seems query has issues with blockings.
    Transaction (Process ID 90) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Please verify the query in SSMS and make sure the results are appearing smoothly.
    Regards, Pradyothana DP http://www.dbainhouse.blogspot.in/ .Please Mark This As Answer if it solved your issue.

  • Cannot Edit My Data Driven Subscription

    "The value provided for the StartDateTime field is not valid for its type. It cannot be converted from a string value to the type that is required. (rsElementTypeMismatch)
    Get Online Help
    Home
    I'm a noobie. Getting the above error message SS 2012. Here's what happened. About 20 minutes ago I created a data driven subscription which worked fine (I set it for every five minutes, it ran 3 times). Then I edited the schedule but made a typo generating
    the above error.  The report is still running every five minutes. I'm going to have to put a stop to SqlAgent.
    When I click the Edit button I get the error message again, immediately  - I never get a chance to edit the subscription. I suppose I could delete it, but isn't there a way to edit it?

    Thanks! That's an excellent solution, although it basically asks me to script my own version of Report Manager so I can edit a subscription whenever Report Manager fails to do its job. It's a great idea, although it's a little scary as I would worry about
    making a scripting error that crashes/corrupts the service. I was hoping for an easier solution.
    Does this kind of thing happen often?  I hope not.
    I've not seen this myself but have heard from my own colleagues facing this. The solution I suggested has worked for some of the cases atleast
    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

  • [Forum FAQ] How do I export each group data to separated Excel files in Reporting Services?

    Introduction
    There is a scenario that a report grouped by one field for some reasons, then the users want to export each group data to separated Excel files. By default, we can directly export only one file at a time on report server. Is there a way that we can split
    the report based on the group, then export each report to Excel file?
    Solution
    To achieve this requirement, we can add a parameter with the group values to filter the report based on the group, then create a data-driven subscription for the report which get File name and parameter from the group values.
    In the report, create a parameter named Name which use the Name field as Available Values (supposing the group grouped on Name field).
    Add a filter as below in the corresponding tablix:
    Expression: [Name]
    Operator: =
    Value: [@Name]
    Deploy the report. Then create a data-driven subscription with Windows File Share delivery extension for the report in Report Manager.
    During the data-driven subscription, in the step 3, specify a query that returns the Name field with the values as the group in the report.
    In the step 4 (Specify delivery extension settings for Report Server FileShare), below “File name”option, select “Get the value from the database”, then select Name field.
    Below ‘Render Format’ option, select Excel as the static value.
    In the step 5, we can configure parameter Name “Get the value from the database”, then select Name field. 
    Then specify the subscription execute only one time.
    References:
    Create a Data-Driven Subscription
    Windows File Share Delivery in Reporting Services
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to pass the multiplevalue parameter into SSRS by data driven subscription

    Hi All,
    I create a table and show it in the SSRS by table
    EmID Name
    AA1, A
    BB1, C
    CC1, E
    And set one parameter EmID for the user to filter the record and that Parameter Accept multiple values and the type is text.
    And I create a another table for the data-driven subscription to send the report to user by email.
    EmailTitle EmID  EmailComment
    TestEmail  AA1,BB1,CC1    TestComment
    And I set the subscription and set the EmID parameter is from EmID column, then test the subscription, it failed...
    However, when I only put AA1 into the table, then the subscription works well
    EmailTitle EmID  EmailComment
    TestEmail  AA1    TestComment
    So How I can config the above table to support subscription?
    Thanks.

    Hi Bimaster,
    When specify a column for the parameter value in a data-driven subscription, it will be regarded as a single value. So when specify the value "AA1,BB1,CC1" as the parameter value, the subscription will fail.
    The work around for this issue clear the "Allow multiple values" for the report parameter, and then change the filter
    From
    Expression:[ParameterName]
    Operator   :In
    Value         :[@ParameterName]
    To
    Expression:[ParameterName]
    Operator   :In
    Value         :Split(Parameters!ParameterName.Value,",")
    In this case, we can specify a value like "AA1,BB1,CC1" from database to the data-driven subscription. I have tested it on my local host environment, it works fine.
    Regards
    Charlie Liao
    TechNet Community Support

  • How to pass multi-value parameters to DDS (data driven subscription)?

    Using RS2005, how should multivalue parameters be stored in a database field so that a data driven subscription can properly read and use them?  I have so far had no luck using syntax of:
    1)  parm1, parm2
    2)  parm1,parm2
    Do single qutoes need to explicitly wrap the values?  Can you please provide an example and a SQL INSERT statement using parm1 and parm2 to demonstrate what to store in the database field? 
    Thanks!!

    I have skimmed through this an have ran into this problem before but not with RS specifically, but with other ASP.NET apps I have built.  Maybe this work around will help.
    In my database I created a table function I call udf_Split List.  It looks like this: (Can't remember where I got this from, but it's not my own.)
    CREATE
    FUNCTION [dbo].[udf_SplitList]
    @List
    varchar(max),
    @SplitOn
    nvarchar(5)
    RETURNS
    @RtnValue table
    Id
    int
    identity(1,1),
    Value
    nvarchar(100)
    AS
    BEGIN
    While
    (Charindex(@SplitOn,
    @List)
    > 0)
    Begin
    Insert
    Into @RtnValue
    (value)
    Select Value
    =
    ltrim(rtrim(Substring(@List,
    1,
    Charindex(@SplitOn,
    @List)
    - 1)))
    Set @List
    =
    Substring(@List,Charindex(@SplitOn,
    @List)
    +
    len(@SplitOn),
    len(@List))
    End
    Insert
    Into @RtnValue
    (Value)
    Select Value
    =
    ltrim(rtrim(@List))
    Return
    END
    Then, in my query I used the following parameter: QueriedField IN(select value from dbo.udf_SplitList(@Parameter,',')  (I used commas to separate the list, but you can use whatever you like (;,|,*, etc.)
    For you @Parameter would be your DDS list parameter.  Hope this helps.  You can enter your list like Item1,Item2,Item3 etc.

  • How to configure Essbase data source in OBIEE11g on Unix system?

    Hi,
    I am looking for documentation/link for how to configure Essbase data source in OBIEE 11g on UNIX system.
    Thanks in advance

    Hi Fayaz
    First You need "BI Administrator Client Tool" cause you need to make changes with in RPD (repository) BUT "BI Administrator Client Tool" for Unix is not Available.
    So you have download OBIEE 11.1.1.5 ""BI Administrator Client Tool" and Install it on Windows Platform.
    Now regarding your Original Issue I am also looking for this Info.
    Regards
    Sher
    Edited by: Sher Ullah Baig on Apr 17, 2012 4:00 PM

  • How would I implement something similar to SSRS data driven subscriptions in CRM 2015 Online?

    Requirement: Generate Report and send specific pricing information to a list of contacts based on field value.
    I'm new to CRM, but am well versed in SSRS and I'm looking to understand:
    1. Is it possible to create something like a data driven subscription in CRM?
    Everything I've looked at is from years ago, and I'm just looking for some high level directions I can pursue in order to fulfill this requirement.
    Thanks!

    Did you notice the difference between your image and theirs. Their image has a coordinate grid. This coordinate grid can be used to determine size, location of pixels, etc...
    If you add a grid, when you process the image, find the grid, then find the coordinate markings, then find the pixels in relation to these coordinate marking creating an internal buffer of the image.
    ie: have 0=white 1=black 2=grid 3=coordinate marking and make an internall representation of your image
    011002300000
    001002201000
    011102300010
    323232232323
    222222222222
    001002310000
    000102200100
    010002301000
    Just an idea, but look into the coordinate grid it may be the key to why they can process their image.
    DeltaCoder

  • [Forum FAQ] How do I restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity

    Question
    Background: When restoring Full + DIFF backups of a Change Data Capture (CDC) enabled database to a different SQL server, the CDC integrity is not being maintained. We did RESTORE the databases with the KEEP_CDC option.
    How do I successfully restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity?
    Answer
    When restoring a CDC enabled database on a different machine that is running SQL Server, besides using use the KEEP_CDC option to retain all the CDC metadata, you also need to add Capture and Cleanup jobs. 
    In addition, as you want to restore FULL + DIFF backups of a CDC enabled database, you need to note that the KEEP_CDC and NoRecovery options are incompatible. Use the KEEP_CDC option only when you are completing the recovery. I made a test to display
    the whole process that how to restore the CDC enabled database backups (FULL + DIFF) on a different machine.
    Create a database named ’CDCTest’ in SQL Server 2012, then enable the CDC feature and take full+ differential backups of the database.
    -- Create database CDCTest
    CREATE DATABASE [CDCTest] ON  PRIMARY
    ( NAME = N'CDCTest ', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest.mdf' , SIZE = 5120KB ,
    MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
     LOG ON
    ( NAME = N'CDCTest _log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest _log.LDF' , SIZE = 3840KB ,
    MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    use CDCTest;
    go
    -- creating table
    create table Customer
    custID int constraint PK_Employee primary key Identity(1,1)
    ,custName varchar(20)
    --Enabling CDC on CDCTest database
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_db
    --Enabling CDC on Customer table
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_table
    @source_schema = N'dbo',
    @source_name = N'Customer',
    @role_name = NULL
    GO
    --Inserting values in customer table
    insert into Customer values('Mike'),('Linda')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking full database backup
    backup database CDCTest to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTest.bak'
    insert into Customer values('David'),('Jane')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking differential database backup
    BACKUP DATABASE CDCTest TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTestdif.bak' WITH DIFFERENTIAL
    GO
    Restore Full backup of the ‘CDCTest’ database with using KEEP_CDC option in a different server that is running SQL Server 2014.
    Use master
    Go
    --restore full database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak' with keep_cdc
    Restore Diff backup of the ‘CDCTest’ database.
    Restore Database CDCTest From Disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak'
        With Move 'CDCTest' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest.mdf',
            Move 'CDCTest _log' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest _log.LDF',
            Replace,
            NoRecovery;
    Go
    --restore differential database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTestdif.bak' with keep_cdc
    Add the Capture and Cleanup jobs in the CDCTest database.
    --add the Capture and Cleanup jobs
    Use CDCTest
    exec sys.sp_cdc_add_job 'capture'
    GO
    exec sys.sp_cdc_add_job 'cleanup'
    GO
    insert into Customer values('TEST'),('TEST1')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    Reference
    Track Data Changes (SQL Server)
    Restoring a SQL Server database that uses Change Data Capture
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Question
    Background: When restoring Full + DIFF backups of a Change Data Capture (CDC) enabled database to a different SQL server, the CDC integrity is not being maintained. We did RESTORE the databases with the KEEP_CDC option.
    How do I successfully restore the CDC enabled database backups (FULL + DIFF) while maintaining the CDC integrity?
    Answer
    When restoring a CDC enabled database on a different machine that is running SQL Server, besides using use the KEEP_CDC option to retain all the CDC metadata, you also need to add Capture and Cleanup jobs. 
    In addition, as you want to restore FULL + DIFF backups of a CDC enabled database, you need to note that the KEEP_CDC and NoRecovery options are incompatible. Use the KEEP_CDC option only when you are completing the recovery. I made a test to display
    the whole process that how to restore the CDC enabled database backups (FULL + DIFF) on a different machine.
    Create a database named ’CDCTest’ in SQL Server 2012, then enable the CDC feature and take full+ differential backups of the database.
    -- Create database CDCTest
    CREATE DATABASE [CDCTest] ON  PRIMARY
    ( NAME = N'CDCTest ', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest.mdf' , SIZE = 5120KB ,
    MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
     LOG ON
    ( NAME = N'CDCTest _log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\ CDCTest _log.LDF' , SIZE = 3840KB ,
    MAXSIZE = 2048GB , FILEGROWTH = 10%)
    GO
    use CDCTest;
    go
    -- creating table
    create table Customer
    custID int constraint PK_Employee primary key Identity(1,1)
    ,custName varchar(20)
    --Enabling CDC on CDCTest database
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_db
    --Enabling CDC on Customer table
    USE CDCTest
    GO
    EXEC sys.sp_cdc_enable_table
    @source_schema = N'dbo',
    @source_name = N'Customer',
    @role_name = NULL
    GO
    --Inserting values in customer table
    insert into Customer values('Mike'),('Linda')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking full database backup
    backup database CDCTest to disk = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTest.bak'
    insert into Customer values('David'),('Jane')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    --Taking differential database backup
    BACKUP DATABASE CDCTest TO DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\ CDCTestdif.bak' WITH DIFFERENTIAL
    GO
    Restore Full backup of the ‘CDCTest’ database with using KEEP_CDC option in a different server that is running SQL Server 2014.
    Use master
    Go
    --restore full database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak' with keep_cdc
    Restore Diff backup of the ‘CDCTest’ database.
    Restore Database CDCTest From Disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTest.bak'
        With Move 'CDCTest' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest.mdf',
            Move 'CDCTest _log' To 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\DATA\CDCTest _log.LDF',
            Replace,
            NoRecovery;
    Go
    --restore differential database backup
    restore database CDCTest from disk = 'C:\Program Files\Microsoft SQL Server\MSSQL12.SQL2014\MSSQL\Backup\CDCTestdif.bak' with keep_cdc
    Add the Capture and Cleanup jobs in the CDCTest database.
    --add the Capture and Cleanup jobs
    Use CDCTest
    exec sys.sp_cdc_add_job 'capture'
    GO
    exec sys.sp_cdc_add_job 'cleanup'
    GO
    insert into Customer values('TEST'),('TEST1')
    -- Querying CDC table to get the changes
    select * from cdc.dbo_customer_CT
    Reference
    Track Data Changes (SQL Server)
    Restoring a SQL Server database that uses Change Data Capture
    Applies to
    SQL Server 2014
    SQL Server 2012
    SQL Server 2008 R2
    SQL Server 2008
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • Is it possible to output a report as a text file (.txt) in a Data Driven Subscription?

    Is it possible to create a Data Driven Subscription report as a text file output to a shared folder? Thanks.
    Kahlua

    Hi Vicky:
    Thank you for your reply. I changed the config file in SSRS and it works. I managed to generate a text file with Data Driven Subscription as the report output in a shared folder. However is it possible not to have the "double quote" wrapping around
    the text. Do I need to modify the config file to remove the "double quote" and how. Thanks. 
    Kahlua
    <Render>
    <Extension Name="XML" Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering"/>
    <Extension Name="NULL" Type="Microsoft.ReportingServices.Rendering.NullRenderer.NullReport,Microsoft.ReportingServices.NullRendering" Visible="False"/>
    <Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering"/>
    <Extension Name="PDF" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering"/>
    <Extension Name="TAB" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
    <OverrideNames>
    <Name Language="en-US">TAB (Tab Delimited Text File)</Name>
    </OverrideNames>
    <Configuration>
    <DeviceInfo>
    <FieldDelimiter xml:space="preserve">[TAB]</FieldDelimiter>
    <UseFormattedValues>True</UseFormattedValues>
    <NoHeader>True</NoHeader>
    <FileExtension>txt</FileExtension>
    <Qualifier xml:space="preserve"></Qualifier>
    <ExcelMode>False</ExcelMode>
    </DeviceInfo>
    </Configuration>
    </Extension>
    <Extension Name="RGDI" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.RGDIRenderer,Microsoft.ReportingServices.ImageRendering" Visible="False" LogAllExecutionRequests="False"/>
    <Extension Name="HTML4.0" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="False" LogAllExecutionRequests="False"/>
    <Extension Name="MHTML" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering"/>
    <Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering"/>
    <Extension Name="RPL" Type="Microsoft.ReportingServices.Rendering.RPLRendering.RPLRenderer,Microsoft.ReportingServices.RPLRendering" Visible="false" LogAllExecutionRequests="false"/>
    <Extension Name="IMAGE" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRenderer,Microsoft.ReportingServices.ImageRendering"/>
    <Extension Name="WORD" Type="Microsoft.ReportingServices.Rendering.WordRenderer.WordDocumentRenderer,Microsoft.ReportingServices.WordRendering"/>
    </Render>

  • SSRS Data Driven Subscription Split Report on Email

    I have a requirement to email an SSRS report to each of the individual emails referenced in the report.
    Think of it is as a mail merge wherein there are 5 persons receiving the report.The Current SSRS Report contains 5 Letters. The Email Subscription dataset is identical to the one upon which the report is based and works as expected. The problem is that currently
    it is sending the ENTIRE report to each email rather than sending only the report that corresponds to the applicable email ( I have heard this referred to as bursting the report).
    Is there some setting that I may be missing? How can this be achieved?
    Again I have Info
    Report A
    (user1 info, User 1 Email
    User2 info---------------BEING EMAILED TO ---------->        User 2 email
    User3 info User 3 email
    User4 info User 4 email
    User5 ) User 5 email
    And I want
    Report A
    (user1 info--------------BEING EMAILED TO ----------> User 1 Email
    User2 info---------------BEING EMAILED TO ----------> User 2 email
    User3 info --------------BEING EMAILED TO ----------> User 3 email
    User4 info --------------BEING EMAILED TO ----------> User 4 email
    User5 info --------------BEING EMAILED TO ----------> User 5 email

    Hi Garrett_ll,
    After testing the issue in my local environment, we can refer to the steps below to achieve your requirement:
    We should add a parameter named User in the report use User field as Available Values.
    Add a filter as below in the corresponding tablix:
    Expression: [User]
    Operator: =
    Value: [@User]
    Deploy the Report to report server.
    During the data-driven subscription, in the step 4 (Specify delivery extension settings for Report Server Email). Below “To” option, select “Get the value from the database”, then select User field.
    In the step 5, we can configure report parameter “Get the value from the database”, then select User field.
    The following article about Create a Data-Driven Subscription, you can refer to it.
    http://technet.microsoft.com/en-us/library/ms169673.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Data driven subscription query returns no data

    We have a data driven subscription on SSRS 2008 R2. The columns in the query are tied to one or more parameters of the report. When we run the subscription and if the query does not return any rows, I was hoping that the subscription will not start; however,
    instead, to my surprise, I got error stating..."Parameter XYZ value can't be null". How to avoid this error and keep subscription from running in this situation? 
    Example: I have a report that required employeeID as a parameter. I have a query (step 3: data driven subscription) that fetches employee ID based on some criteria. If there is no row returned by the query; It throws error on report stating "Parameter
    EmployeeID can't be null."
    Nehal Jain

    Hello Nehal -
    Try adding a UNION ALL to your parameter dataset query like
    UNION ALL SELECT NULL AS EmployeeID , ..
    Just check accordingly. I ll revert again based on this , got a priority now.
    Happy to help! Thanks. Regards and good Wishes, Deepak. http://deepaksqlmsbusinessintelligence.blogspot.com/

  • Add Data driven subscription option missing in sharepoint 2013

    i have a sharepoint 2013 enterprise version with sql server 2012 standard version. And i want to add Data- driven subscriptions for a document library by selecting manage subscriptions. But in the manage subscriptions Add Data- Driven subscription option
    is missing. How can i get the options. is ther any workaround if  i am using standard version.

    Hi sppanda,
    According to your description, you want to use data driven report subscription feature with SQL Server 2012 Standard.
    In Reporting Services 2012, only SQL Server 2012 Enterprise and Business Intelligence edition support the data driven feature. So it’s expected that the Add Data- Driven subscription option is missing in your environment. In your scenario, if you want to
    use data driven subscription feature, please perform edition upgrade.
    Reference:
    Reporting Services Features
    Upgrade to a Different Edition of SQL Server 2012 (Setup)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

Maybe you are looking for

  • Asha 300 and Mail for Exchange error - will not in...

    Hi there, I have just purchased an Asha 300 to trial Mail for Exchange, however every time I try to install Mail for Exchange I get the error message "You are running an unsupported OS version.  Please upgrade to OS14.53 or later".  When I try to do

  • Can't Install Flash Player version 10.1!

    I've been trying to install Flash Player 10.1, and having difficulties I never had with previous versions. When I try to install it it comes up with this message: Error 1031: [PATH TO FLASH PLAYER] [WINDOWS ERROR CODE]: The file could not be written

  • EJB3 ejb-ref/JNDI confusion

    Hi, I'm trying to learn EJB3 development on WebLogic 10, but am struggling because the version 10 documentation refers to EJB 2.1 and version 9.0 weblogic-ejb-jar.xml (which isn't supported by version 10). I'd like to have my EJB's hosted on one WLS,

  • Photoshop CC Versus CS6

    I have a paid copy with the paid license of Photoshop CS 6 and want to know what happens to my copy of CS6 if I was to go to a monthly fee for CC. If I decide I do not want to continue with CC but go back to my paid copy of CS6 is that possible? Afte

  • Security update : PPC 2007-004 on April 23rd

    Installation of the most recent Security Up^date has turned my Powerbook into a windows acting computer!? I can not drag and drop anything anywhere –except for the desktop after restarting– not even in itunes. I can not manage any new cd's or downloa