Data Driven Subscription Missing in Reporting Services Manager under Subcriptions

I am attempting to create my first data driven subscription.
However, the 'New Data-driven Subscription'
button is missing from my management view under Subscriptions for the report I am using.
I have verified that I have the 'Content Manager' and 'System Administrator' roles associated with my login.  Also, I am running on the necessary Enterprise Edition.
Microsoft SQL Server 2012 Enterprise Edition (64-bit) on Windows NT 6.2 
Please assist me in troubleshooting this matter as this is the only method I'm aware of for accessing data driven subscriptions.

Hi ThornDrill,
According to your description, the 'New Data-driven Subscription' button is missing though you install SQL Server Enterprise edition.
In you scenario, it’s possible that you are running a different SKU of Report Server while the SQL Server is Enterprise edition. Please find the first log file within the Reporting Service logs, then search the keyword with “SKU” to find the actual edition
of the report server instance. For more information, please refer to this similar thread:
Data driven subscription button not displayed.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • 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>

  • [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.

  • Identify failed subscriptions in a data driven subscription batch

    Hi,
    I have a single data driven subscription that is a batch of 250 subscriptions running on SQL Server 2008 R2. All the parameter values for the report are sourced from a database table. During the execution of the data driven subscription 5 of those subscriptions
    failed due to timeout error.
    Final Status as shown on Subscription screen "Done: 250 processed of 250 total; 5 errors."
    The SSRS log file has the subscription GUID which is a single record in the reporting server database tables. How can i identify the individual failed subscriptions? Is there an easy way or a work around that i should implement to identify the failed
    subscriptions?
    Thanks in advance.

    This is a painful topic...
    Yes, data-driven subscriptions can be difficult to manage.  We have had similar issues...
    What we opted to do was create an SSIS package that copies the most recent logfile to a staging directory, truncates the import table, imports the current logfile, then performs a set of data queries to determine all report subscriptions that failed, using
    joins to the ReportServer database tables and the Subscriptions table.  At the end of the morning job we fire off report that lists all Reports/To_Email combinations that were unsuccessful.

  • PDF Bookmarks for Data driven subscription

    Hi
    I have a data driven subscription for a report which is in PDF format.
    The report has bookmarks and the users would like the PDF to show the bookmarks when the PDF document has been opened.
    Is there a setting in SSRS which will force the PDF document to open with the bookmarks open?
    I have searched and am unable to find anything, please help!
    Thanks

    Hi Nasa1999,
    According to your description, you create a document map in a report. Then you want to render the report as PDF file in the data driven subscription. When you open the PDF file, you want to see the bookmarks open automatically.
    In Reporting Services, if document map labels present in the report, a document outline is added to the PDF file when we render the report as a pdf file. When we open the PDF file, the bookmark is hidden and it only display when we click Bookmarks in Adobe
    Reader. This behavior is by design. So in your scenario, your requirement can’t be achieved currently.
    Reference:
    Document Map  
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • 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

  • 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

  • SSRS Data Driven Subscription - Analysis Services OLE DB Provider Not Recent Enough

    We are creating  new SSRS Data Driven Subscription. After entering the command query (which has been tested and is valid) we are getting the following error when the wizard validates the query in step 3:
    The dataset cannot be generated. An error occurred while connecting to a data source, or the query is not valid for the data source. (rsCannotPrepareQuery). The current version of Analysis Services OLE DB Provider is not recent enough to perform
    this check.
    The data source involved and the query are all working as we have reports running on this server that use this data source. We've looked into the OLE DB Provider and both the SSAS server and the SSRS server (they are on different servers) appear to have
    the same versions installed. Both the SSRS and SSAS servers are running SQL 2012 SP2.
    Any suggestions would be appreciated as I haven't had much success locating the cause.

    Hi Tymbow,
    Per my understanding that you got the error message in the step3 when creating the DataDriven Subscription, right?
    I have checked the error message and as you have mentioned that other reports which have the same connection string works fine in report server, so the issue can be cause by the query you are using in the step3 is not correct, sometimes although it
    will work in database or in the desginer, it will have some limitation in the commend query.
    Please provide the connection string you are using and also the commend query to help us better understanding of the issue.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    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

    I am getting the following error "System.Web.Services.Protocols.SoapException: The required field Field is missing from the input structure. ---> Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException: The required field Field
    is missing from the input structure.
       at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateSubscription(String Report, ExtensionSettings ExtensionSettings, Boolean isDataDriven, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData,
    ParameterValueOrFieldReference[] Parameters, String& SubscriptionID)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateDataDrivenSubscription(String Report, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData, ParameterValueOrFieldReference[]
    Parameters, String& SubscriptionID)".
    Below is the code i used .
           ReportingService2005 rs = new ReportingService2005();
                rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
                //the name of the report for which the DDS is to be created
                string report = "/testDataDriven/Report1";
                string description = "Programmatic Data Driven Subscription for Windows File Share";
                //set extension as Windows File Share
                ExtensionSettings settings = new ExtensionSettings();
                settings.Extension = "Report Server Email";
                // Set the extension parameter values.
                ParameterValueOrFieldReference[] extensionParams =
                   new ParameterValueOrFieldReference[8];
                ParameterFieldReference to = new ParameterFieldReference(); // Data-driven.
                to.ParameterName = "TO";
                to.FieldAlias = "EmailAddress";
                extensionParams[0] = to;
                ParameterValue replyTo = new ParameterValue();
                replyTo.Name = "ReplyTo";
                replyTo.Value = "[email protected]";
                extensionParams[1] = replyTo;
                ParameterValue includeReport = new ParameterValue();
                includeReport.Name = "IncludeReport";
                includeReport.Value = "False";
                extensionParams[2] = includeReport;
                ParameterValue renderFormat = new ParameterValue();
                renderFormat.Name = "RenderFormat";
                renderFormat.Value = "HTML4.0";
                extensionParams[3] = renderFormat;
                ParameterValue priority = new ParameterValue();
                priority.Name = "Priority";
                priority.Value = "NORMAL";
                extensionParams[4] = priority;
                ParameterValue subject = new ParameterValue();
                subject.Name = "Subject";
                subject.Value = "Your sales report";
                extensionParams[5] = subject;
                ParameterValue comment = new ParameterValue();
                comment.Name = "Comment";
                comment.Value = "Here is the link to your report.";
                extensionParams[6] = comment;
                ParameterValue includeLink = new ParameterValue();
                includeLink.Name = "IncludeLink";
                includeLink.Value = "True";
                extensionParams[7] = includeLink;
                settings.ParameterValues = extensionParams;
                DataSource delivery = new DataSource();
                delivery.Name = "";
                DataSourceDefinition dataSourceDef = new DataSourceDefinition();
                dataSourceDef.ConnectString = "my credentials";
                dataSourceDef.CredentialRetrieval = CredentialRetrievalEnum.Store;
                dataSourceDef.Enabled = true;
                dataSourceDef.EnabledSpecified = true;
                dataSourceDef.Extension = "ORACLE";
                dataSourceDef.WindowsCredentials = false;
                dataSourceDef.ImpersonateUser = false;
                dataSourceDef.UserName = "";
                dataSourceDef.Password = "";
                delivery.Item = dataSourceDef;
                //we will have to declare the list of parameter(s) the report requires
                //in this report there is only one parameter named “Sales Order Number”
                //create fields list which is comprising of only one field in this report
                Field[] fieldlist = new Field[2];
                fieldlist[0] = new Field();
                fieldlist[0].Name = "REF_MONTH";
                fieldlist[0].Alias = "REF_MONTH";
                fieldlist[1] = new Field();
                fieldlist[1].Name = "MTSO_ID";
                fieldlist[1].Alias = "MTSO_ID";
                //create data set
                DataSetDefinition dataSetDefinition = new DataSetDefinition();
                dataSetDefinition.AccentSensitivitySpecified = false;
                dataSetDefinition.CaseSensitivitySpecified = false;
                dataSetDefinition.KanatypeSensitivitySpecified = false;
                dataSetDefinition.WidthSensitivitySpecified = false;
                dataSetDefinition.Fields = fieldlist;
                QueryDefinition queryDefition = new QueryDefinition();
                queryDefition.CommandText = "SELECT  REF_MONTH FROM  REFERRAL_TRN_DETAILS1";
                queryDefition.CommandType = "Text";
                queryDefition.Timeout = 1000;
                queryDefition.TimeoutSpecified = true;
                dataSetDefinition.Query = queryDefition;
                DataSetDefinition results = new DataSetDefinition();
                bool changed;
                string[] paramNames;
                results = rs.PrepareQuery(delivery, dataSetDefinition, out changed, out paramNames);
                DataRetrievalPlan dataRetrieval = new DataRetrievalPlan();
                dataRetrieval.DataSet = results;
                dataRetrieval.Item = dataSourceDef;
                // Set the event type and match data for the delivery.
                string eventType = "TimedSubscription";
                string matchData = @"<ScheduleDefinition>";
                matchData += @"<StartDateTime>2003-04-14T19:15:00-07:00</StartDateTime><WeeklyRecurrence><WeeksInterval>1</WeeksInterval>";
                matchData += @"<DaysOfWeek>";
                matchData += @"<Monday>True</Monday><Tuesday>True</Tuesday><Wednesday>True</Wednesday><Thursday>True</Thursday><Friday>True</Friday>";
                matchData += @"</DaysOfWeek></WeeklyRecurrence></ScheduleDefinition>";
                // Set the report parameter values.
                ParameterValueOrFieldReference[] parameters = new ParameterValueOrFieldReference[2];
                ParameterFieldReference empID = new ParameterFieldReference(); // Data-driven.
                empID.ParameterName = "val";
                empID.FieldAlias = "REF_MONTH";
                parameters[0] = empID;
                ParameterValue reportYear = new ParameterValue();
                reportYear.Name = "val";
                reportYear.Value = "112013";
                parameters[1] = reportYear;
                string subscriptionID = rs.CreateDataDrivenSubscription
                (report, settings, dataRetrieval, description, eventType, matchData, parameters);
    i have one report parameter val, ineed to pass value from the query result.

    Hi Santosh,
    According to your code, you are trying to create a data driven subscription with the code. As per my understanding, the issue can be caused by the FieldAlias does not exactly match a field in the dataset that is a part of the data retrieval plan, then the
    error is thrown. Note that exactly match includes case and leading/trailing whitespace.
    So please make sure the fields name are exactly matched in the code. The following blog posted by Gouri Sohoni is for your reference:
    http://www.sqlservercurry.com/2009/07/programmatically-create-data-driven.html
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Data driven subscription using c#

    I am getting the following error "System.Web.Services.Protocols.SoapException: The required field Field is missing from the input structure. ---> Microsoft.ReportingServices.Diagnostics.Utilities.MissingElementException: The required field Field
    is missing from the input structure.
       at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateSubscription(String Report, ExtensionSettings ExtensionSettings, Boolean isDataDriven, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData,
    ParameterValueOrFieldReference[] Parameters, String& SubscriptionID)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateDataDrivenSubscription(String Report, ExtensionSettings ExtensionSettings, DataRetrievalPlan DataRetrievalPlan, String Description, String EventType, String MatchData, ParameterValueOrFieldReference[]
    Parameters, String& SubscriptionID)".
    Below is the code i used .
           ReportingService2005 rs = new ReportingService2005();
                rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
                //the name of the report for which the DDS is to be created
                string report = "/testDataDriven/Report1";
                string description = "Programmatic Data Driven Subscription for Windows File Share";
                //set extension as Windows File Share
                ExtensionSettings settings = new ExtensionSettings();
                settings.Extension = "Report Server Email";
                // Set the extension parameter values.
                ParameterValueOrFieldReference[] extensionParams =
                   new ParameterValueOrFieldReference[8];
                ParameterFieldReference to = new ParameterFieldReference(); // Data-driven.
                to.ParameterName = "TO";
                to.FieldAlias = "EmailAddress";
                extensionParams[0] = to;
                ParameterValue replyTo = new ParameterValue();
                replyTo.Name = "ReplyTo";
                replyTo.Value = "[email protected]";
                extensionParams[1] = replyTo;
                ParameterValue includeReport = new ParameterValue();
                includeReport.Name = "IncludeReport";
                includeReport.Value = "False";
                extensionParams[2] = includeReport;
                ParameterValue renderFormat = new ParameterValue();
                renderFormat.Name = "RenderFormat";
                renderFormat.Value = "HTML4.0";
                extensionParams[3] = renderFormat;
                ParameterValue priority = new ParameterValue();
                priority.Name = "Priority";
                priority.Value = "NORMAL";
                extensionParams[4] = priority;
                ParameterValue subject = new ParameterValue();
                subject.Name = "Subject";
                subject.Value = "Your sales report";
                extensionParams[5] = subject;
                ParameterValue comment = new ParameterValue();
                comment.Name = "Comment";
                comment.Value = "Here is the link to your report.";
                extensionParams[6] = comment;
                ParameterValue includeLink = new ParameterValue();
                includeLink.Name = "IncludeLink";
                includeLink.Value = "True";
                extensionParams[7] = includeLink;
                settings.ParameterValues = extensionParams;
                DataSource delivery = new DataSource();
                delivery.Name = "";
                DataSourceDefinition dataSourceDef = new DataSourceDefinition();
                dataSourceDef.ConnectString = "my credentials";
                dataSourceDef.CredentialRetrieval = CredentialRetrievalEnum.Store;
                dataSourceDef.Enabled = true;
                dataSourceDef.EnabledSpecified = true;
                dataSourceDef.Extension = "ORACLE";
                dataSourceDef.WindowsCredentials = false;
                dataSourceDef.ImpersonateUser = false;
                dataSourceDef.UserName = "";
                dataSourceDef.Password = "";
                delivery.Item = dataSourceDef;
                //we will have to declare the list of parameter(s) the report requires
                //in this report there is only one parameter named “Sales Order Number”
                //create fields list which is comprising of only one field in this report
                Field[] fieldlist = new Field[2];
                fieldlist[0] = new Field();
                fieldlist[0].Name = "REF_MONTH";
                fieldlist[0].Alias = "REF_MONTH";
                fieldlist[1] = new Field();
                fieldlist[1].Name = "MTSO_ID";
                fieldlist[1].Alias = "MTSO_ID";
                //create data set
                DataSetDefinition dataSetDefinition = new DataSetDefinition();
                dataSetDefinition.AccentSensitivitySpecified = false;
                dataSetDefinition.CaseSensitivitySpecified = false;
                dataSetDefinition.KanatypeSensitivitySpecified = false;
                dataSetDefinition.WidthSensitivitySpecified = false;
                dataSetDefinition.Fields = fieldlist;
                QueryDefinition queryDefition = new QueryDefinition();
                queryDefition.CommandText = "SELECT  REF_MONTH FROM  REFERRAL_TRN_DETAILS1";
                queryDefition.CommandType = "Text";
                queryDefition.Timeout = 1000;
                queryDefition.TimeoutSpecified = true;
                dataSetDefinition.Query = queryDefition;
                DataSetDefinition results = new DataSetDefinition();
                bool changed;
                string[] paramNames;
                results = rs.PrepareQuery(delivery, dataSetDefinition, out changed, out paramNames);
                DataRetrievalPlan dataRetrieval = new DataRetrievalPlan();
                dataRetrieval.DataSet = results;
                dataRetrieval.Item = dataSourceDef;
                // Set the event type and match data for the delivery.
                string eventType = "TimedSubscription";
                string matchData = @"<ScheduleDefinition>";
                matchData += @"<StartDateTime>2003-04-14T19:15:00-07:00</StartDateTime><WeeklyRecurrence><WeeksInterval>1</WeeksInterval>";
                matchData += @"<DaysOfWeek>";
                matchData += @"<Monday>True</Monday><Tuesday>True</Tuesday><Wednesday>True</Wednesday><Thursday>True</Thursday><Friday>True</Friday>";
                matchData += @"</DaysOfWeek></WeeklyRecurrence></ScheduleDefinition>";
                // Set the report parameter values.
                ParameterValueOrFieldReference[] parameters = new ParameterValueOrFieldReference[2];
                ParameterFieldReference empID = new ParameterFieldReference(); // Data-driven.
                empID.ParameterName = "val";
                empID.FieldAlias = "REF_MONTH";
                parameters[0] = empID;
                ParameterValue reportYear = new ParameterValue();
                reportYear.Name = "val";
                reportYear.Value = "112013";
                parameters[1] = reportYear;
                string subscriptionID = rs.CreateDataDrivenSubscription
                (report, settings, dataRetrieval, description, eventType, matchData, parameters);
    i have one report parameter val, ineed to pass value from the query result.
    santosh

    Hi Santosh,
    Based on your error message, it's has issue in the parameters arguments when you call the createDataDrivenSubscription() function. we suggest you to check your parameters argument to createDataDrivenSubscriptio() function. Mostly it's the issue of the
    Parameters. You are passing a ParameterFieldReference array object called parameters. The web service is very strict with the FieldAlias property. It need the fieldAlias have to EXACTLY MATCH a field in the data set that
    is part of the data retrieval plan, otherwise it will throw the exception above. So please pay attention to the white space or lower/higher cap issue. Also we suggest you use functions like Trim() to make fieldAlias fit the field in dataset.
    Reference:
    The required field Field is
    missing from the input structure.
    Best Regards,
    Simon Hou

  • Data-driven Subscription doesnt send out an email but job history shows its successfull

    Hi All
    Please give me some advice about this Data-driven Subscription runs every hour misses out once or twice a day, but the subscription job history shows it ran sucessfull but it doesnt trigger the e-mail out.
    Is there a way to check on subscription logs that SSRS has triggered the report out to the e-mail server.
    Is there a way to add add logs for the e-mail part to make sure it has sent out the email ?
    Nothing in the E-mail server logs to show this report email was requested / delivered / rejected by it.
    So - Kindy advice me how can I proceed my findings on this.
    Thanks a lot in advance.

    Report Server Service logs below
    ReportingServicesService!dbpolling!11!30/10/2014-22:37:10:: i INFO: EventPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!e!30/10/2014-22:37:10:: i INFO: EventPolling processing item 1f4ae9bb-5283-4756-866b-e794ddb8fc75
    ReportingServicesService!library!e!30/10/2014-22:37:13:: i INFO: Schedule 88486172-a685-428a-a138-cc1efd7d16f8 executed at 30/10/2014 22:37:13.
    ReportingServicesService!schedule!e!30/10/2014-22:37:13:: Creating Time based subscription notification for subscription: 859722ed-ab17-4357-8bab-5c068ede6366
    ReportingServicesService!library!e!30/10/2014-22:37:13:: i INFO: Schedule 88486172-a685-428a-a138-cc1efd7d16f8 execution completed at 30/10/2014 22:37:13.
    ReportingServicesService!dbpolling!e!30/10/2014-22:37:16:: i INFO: EventPolling finished processing item 1f4ae9bb-5283-4756-866b-e794ddb8fc75
    ReportingServicesService!dbpolling!11!30/10/2014-22:37:16:: i INFO: EventPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!e!30/10/2014-22:37:16:: i INFO: EventPolling processing item 17027403-5870-487b-93ab-f8d54a646b77
    ReportingServicesService!dbpolling!e!30/10/2014-22:37:17:: i INFO: EventPolling finished processing item 17027403-5870-487b-93ab-f8d54a646b77
    ReportingServicesService!dbpolling!11!30/10/2014-22:37:22:: i INFO: NotificationPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!3!30/10/2014-22:37:22:: i INFO: NotificationPolling processing item faac99a8-48a2-4262-b699-f798589a2ecc
    ReportingServicesService!library!3!10/30/2014-22:37:22:: i INFO: Call to RenderFirst( '/Narrowcaster_SSRS/9105 - ALERT - Negative Margin by Destination Account' )
    ReportingServicesService!runningjobs!e!30/10/2014-22:37:59:: i INFO: Adding: 1 running jobs to the database
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'. ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion
    of the operation or the server is not responding.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       --- End of inner exception stack trace ---
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: e ERROR: An exception has occurred in data source 'SSRSSRV02_interface'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'.
    ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.FirstPassInit()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.FirstPassProcess(Boolean& closeConnWhenFinish)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.Process()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.ProcessConcurrent(Object threadSet)
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: i INFO: Merge abort handler called for ID=-1. Aborting data sources ...
    ReportingServicesService!dataextension!3!30/10/2014-22:38:31:: w WARN: CommandWrapper.Cancel not called, connection is not valid
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'.
    ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.FirstPassInit()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.FirstPassProcess(Boolean& closeConnWhenFinish)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.Process()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.ProcessConcurrent(Object threadSet)
       --- End of inner exception stack trace ---
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: w WARN: Data source 'SSRSSRV02_interface': Report processing has been aborted.
    ReportingServicesService!processing!3!30/10/2014-22:38:31:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
     Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'.
    ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.FirstPassInit()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.FirstPassProcess(Boolean& closeConnWhenFinish)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.Process()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.ProcessConcurrent(Object threadSet)
       --- End of inner exception stack trace ---
    ReportingServicesService!library!3!10/30/2014-22:38:31:: i INFO: Initializing EnableExecutionLogging to 'True'  as specified in Server system properties.
    ReportingServicesService!emailextension!3!10/30/2014-22:38:33:: Error sending email. Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException:
    An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for data set 'SSRSSRV02_interface'. ---> System.Data.SqlClient.SqlException: Timeout expired.  The
    timeout period elapsed prior to completion of the operation or the server is not responding.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
       at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected)
       at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
       at System.Data.SqlClient.TdsParserStateObject.ReadByte()
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
       at System.Data.SqlClient.SqlDataReader.get_MetaData()
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
       at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
       at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.DataExtensions.SqlCommandWrapperExtension.ExecuteReader(CommandBehavior behavior)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.RunDataSetQuery()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.FirstPassInit()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.FirstPassProcess(Boolean& closeConnWhenFinish)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeReportDataSetNode.Process()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RuntimeDataSetNode.ProcessConcurrent(Object threadSet)
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessingContext.AbortHelper.ThrowAbortException(Int32 reportUniqueName)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessingContext.CheckAndThrowIfAborted()
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.Merge.Process(ParameterInfoCollection parameters, Boolean mergeTran)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessReport(Report report, ProcessingContext pc, ProcessingContext context)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.ProcessReport(Report report, ProcessingContext pc, Boolean snapshotProcessing, Boolean processWithCachedData, GetReportChunk getChunkCallback, ErrorContext errorContext, DateTime
    executionTime, CreateReportChunk cacheDataCallback, ProcessingContext& context)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(IRenderingExtension renderer, DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc, CreateReportChunk
    cacheDataCallback, Boolean& dataCached)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderReport(DateTime executionTimeStamp, GetReportChunk getCompiledDefinitionCallback, ProcessingContext pc, RenderingContext rc)
       at Microsoft.ReportingServices.Library.RSService.RenderAsLive(CatalogItemContext reportContext, ItemProperties properties, ParameterInfoCollection effectiveParameters, Guid reportId, ClientRequest session, String description, ReportSnapshot intermediateSnapshot,
    DataSourceInfoCollection thisReportDataSources, Boolean cachingRequested, Boolean isLinkedReport, Warning[]& warnings, ReportSnapshot& resultSnapshotData, DateTime& executionDateTime, RuntimeDataSourceInfoCollection& alldataSources, UserProfileState&
    usedUserProfile)
       at Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(CatalogItemContext reportContext, ClientRequest session, Warning[]& warnings, ParameterInfoCollection& effectiveParameters)
       at Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext reportContext, ClientRequest session, Warning[]& warnings, ParameterInfoCollection& effectiveParameters, String[]& secondaryStreamNames)
       at Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
       at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
       at Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RSService rs, CatalogItemContext reportContext, ClientRequest session, JobType type, Warning[]& warnings, ParameterInfoCollection& effectiveParameters, String[]&
    secondaryStreamNames)
       at Microsoft.ReportingServices.Library.ReportImpl.Render(String renderFormat, String deviceInfo)
       at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.ConstructMessageBody(IMessage message, Notification notification, SubscriptionData data)
       at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.CreateMessage(Notification notification)
       at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
    ReportingServicesService!library!3!10/30/2014-22:38:33:: Data Driven Notification for activation id fb8257a8-85c2-4438-9eda-640f33e5e695 was saved.
    ReportingServicesService!library!3!10/30/2014-22:38:33:: Status: Failure sending mail: An error has occurred during report processing.
    ReportingServicesService!notification!3!10/30/2014-22:38:33:: Notification faac99a8-48a2-4262-b699-f798589a2ecc completed.  Success: False, Status: Failure sending mail: An error has occurred during report processing., DeliveryExtension: Report Server
    Email, Report: 9105 - ALERT - Negative Margin by Destination Account, Attempt 0
    ReportingServicesService!dbpolling!3!10/30/2014-22:38:34:: i INFO: NotificationPolling finished processing item faac99a8-48a2-4262-b699-f798589a2ecc
    ReportingServicesService!dbpolling!11!30/10/2014-22:40:17:: i INFO: EventPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!3!30/10/2014-22:40:17:: i INFO: EventPolling processing item b6d83c57-cd6a-4950-a798-b36b66cbfc7a
    ReportingServicesService!library!3!30/10/2014-22:40:19:: i INFO: Schedule 8d08cd19-0c18-42ac-ae1c-68aafc695717 executed at 30/10/2014 22:40:19.
    ReportingServicesService!schedule!3!30/10/2014-22:40:19:: Creating Time based subscription notification for subscription: 907abd66-3757-43ef-9318-5446f200d58d
    ReportingServicesService!library!3!30/10/2014-22:40:19:: i INFO: Schedule 8d08cd19-0c18-42ac-ae1c-68aafc695717 execution completed at 30/10/2014 22:40:19.
    ReportingServicesService!dbpolling!3!30/10/2014-22:40:20:: i INFO: EventPolling finished processing item b6d83c57-cd6a-4950-a798-b36b66cbfc7a
    ReportingServicesService!dbpolling!11!30/10/2014-22:40:21:: i INFO: EventPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!3!30/10/2014-22:40:21:: i INFO: EventPolling processing item 058c9023-65a2-4828-8575-8c569fc339bd
    ReportingServicesService!dbpolling!3!30/10/2014-22:40:22:: i INFO: EventPolling finished processing item 058c9023-65a2-4828-8575-8c569fc339bd
    ReportingServicesService!dbcleanup!16!30/10/2014-22:41:58:: e ERROR: Sql Error in CleanExpiredSessions: System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AS_KS_WS" and "Latin1_General_CI_AS"
    in the equal to operation.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()
       at Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSessions()
    ReportingServicesService!library!16!30/10/2014-22:42:41:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 21 snapshots, 78 chunks, 0 running jobs, 0 persisted streams
    ReportingServicesService!dbpolling!11!30/10/2014-22:45:07:: i INFO: EventPolling processing 1 more items. 1 Total items in internal queue.
    ReportingServicesService!dbpolling!e!30/10/2014-22:45:07:: i INFO: EventPolling processing item 44368d3b-66ac-4799-9c3e-606cb7cb637c

  • 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

  • New at data driven subscriptions

    Hi there
    I am new to subscriptions and need to schedule some reports.
    However the email field is greyed out... I need to edit it to insert an email address is this a permissions issue..?

    Hi LuluWala,
    Based on my understanding, when you create a new data-driven subscription, the To box is greyed out, then you can’t alter the email address, right?
    In Reporting Service, when SendEmailToUserAlias is set to True, users who define individual subscriptions are automatically specified as recipients of the report. The To field is hidden. If this value is False, the To field is visible. So in your scenario,
    you should change the value of SendEmailToUserAlias to False in the Reporting Services configuration file (in SSRS 2012, this file locates at xx:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\rsreportserver.config),
    then the field can be editable.
    Reference:
    Configure a Report Server for E-Mail Delivery (SSRS Configuration Manager)
    Subscription Emails TO Field Greyed out in SSRS 2008
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Creating Data Driven Subscription does not allow me to get Auto copy from Query.

    I am trying to create a data driven Subscription for sharepoint document Library.  I have a table I populate with values.  Then a stored procedure that exec and returns the values.  I use this in my data driven subscription. 
    Here is what my table looks like
    intSubscriptionID strSubscriptionName strFileName strPath strRenderFormat strWriteMode strFileExt strTitle strAutoCopy strUserName strPassword strVar1 strVar2 strVar3 strVar4 strVar5 strVar6 strVar7 strVar8 strVar9 strVar10 bitEnabled
    400 Billing - Invoice_ParentChildRollup 19_Jan2015 http://eagleviewportal/BusinessIntelligenceCenter/AccountingBI/Reports/New Excel Overwrite True Invoice_ParentChildRollup False NULL NULL 0000019 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    401 Test Daily Order and Pending Status by SubAccount Test Daily Order and Pending Status by SubAccount http://eagleviewportal/BusinessIntelligenceCenter/ClientRelationsBI/Reports/New Excel Overwrite True Test
    Daily Order and Pending Status by SubAccount True NULL NULL 152884 NULL NULL NULL NULL NULL NULL NULL NULL NULL 1
    I can use all the values and it creates my subscription no problem as long as I do not try to use the autocopy. 
    If I select Use no Value  all works great. 
    If I select Specify a static Value and then choose True it gives me an error The AutoCopy Delivery setting cannot be set to True if the WriteMode Delivery setting is not set to Overwrite.  as you can see that value is set to overwrite.  If I use
    hard coded word OverWrite instead of getting it from query it works.
    If I do the same step above but select False it seems to work as well.
    If I try to choose the value from the query then it errors with the generic Sorry Something went wrong. I cannot find any value in url logs.
    Ken Craig

    Hi Ken,
    I have reproduced the same issue as you encountered. If you choose both value for the fields(WriteMode and AutoCopy) from query, SharePoint will result in an error page. I finally fixed the issue by manually updating the table
    dbo.Subscriptions from the reporting service database. To make this, please first copy the value of field
    ExtensionSettings from the subscription table.
    Change the WRITEMODE and AUTOCOPY from "<ParameterValue><Name>WRITEMODE</Name><Value>Overwrite</Value></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Value>AutoCopy</Value></ParameterValue>"
    to "<ParameterValue><Name>WRITEMODE</Name><Field>strWriteMode</Field></ParameterValue> <ParameterValue><Name>AUTOCOPY</Name><Field>strAutoCopy</Field></ParameterValue>".
    Here Value means the static value, and field means the name of the query field. After you modify it, copy the settings back to field
    ExtensionSettings or use update SQL to update it.
    At last, your data driven subscription should be like this:
    Thanks,
    Reken Liu

Maybe you are looking for