Errror occured in shared data set report

DECLARE @COMMODITY_ID_LIST as Commodity_ID_TBLTYPE;
DECLARE @POINT_ID_LIST as Point_ID_TBLTYPE;
INSERT @COMMODITY_ID_LIST VALUES (@COMMODITY_ID)
DELETE @COMMODITY_ID_LIST WHERE (@COMMODITY_ID) < 0
EXEC USP_DIM_FACILITY @CUSTOMER_ID,  NULL, 'BMS', @COMMODITY_ID_LIST, @POINT_ID_LIST, NULL, 1
the above logic is written in shared data set creation in query text  when i am refreshing the fields it throws below error i f i solve this problem i can easily view the report result the below is the
error i am getting when i used above logic in query text
Cannot insert the value NULL into column 'Commodity_ID', table '@COMMODITY_ID_LIST'; column does not allow nulls. INSERT fails.
The statement has been terminated.

Hello,
The error message is pretty clear, you can not insert NULL values into that table (variable).
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Shared Data Source with prompted credentials - errors out.

    Using Data Tools (VS 2010) to build report.
    Have built a simple report while trying to diagnose this issue.  This report is created in a project that was originally built in BIDS2008 and migrated to Data Tools 2010.  This project contains an original shared dataset that does NOT
    error out.
    Report contains
         1) shared data source with properties set to prompted credentials.
         2) shared dataset using data source above
         3) 2 parameters (month and year)
         4) Report uses shared dataset
         5) 2 text boxes in the report body to display the parameters values.
    When I try to preview this report I get the error:
         The execution failed for the shared data set "xxx"
         Cannot create a connection to data source 'Data source for shared dataset'
         Security processing failed with reason "3" ("password missing")
    Now, if I changed that same shared dataset to use a static login and password; the report renders fine.
    What is going on???

    Hi RoseNeedsAVacation,
    When you use shared data source with "Prompt for credential" option, please use SQL Server login credential to u view the report in BIDS or SSDT report designer environment.
    Note: The shared data source will automatic switch to SQL Server authentication mode if we use "Prompt for credential" option.
    After you deploy your report and shared data source to report server, please remember to configure your shared data source to use "Credentials supplied by the user running the report" option. Furthermore, select "Use
    as Windows credentials when connecting to the data source" checkbox if the credentials that the user provides are Windows Authentication credentials. Do not select this check box if you are using database authentication (for example, SQL
    Server Authentication).
    For more information, please refer to the article below:
    New Data Source Page (Report Manager):
    http://technet.microsoft.com/en-us/library/ms180077(v=sql.100).aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • An error has occurred during report processing. (rsProcessingAborted).. Query execution failed for data set

    Hi All,
    I'm facing a strange problem..
    I've developed few reports. they are working fine in develop environment. after successfull testing they were published on web.
    in web version, all reports are executing for first time.. if I change any of parameters values or without chaning also..
    if I press "View Report"  following error occurs..
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for data set 'dsMLGDB2Odbc'. (rsErrorExecutingCommand)
    For more information about this error navigate to the report server on the local server machine, or enable remote errors
    please suggest any alternative ways to overcome this issue
    thanks in adv.

    in my case the problem is
    one virtual machine is for developers
    other for testers
    in developers i created a report, then save like *.rdl and copy to testers machine, does not work there
    the error what testers get is
    Error during the local report processing.
    Could not find a web-based application at http://developersMachine/AnalyticsReports/DataBaseConnector.rsds
    and the solution is to use alternative url or in some cases http://localhost/

  • Report Builder Wizard and Parameter Creation with values from other data source e.g. data set or views for non-IT users or Business Analysts

    Hi,
    "Report Builder is a report authoring environment for business users who prefer to work in the Microsoft Office environment.
    You work with one report at a time. You can modify a published report directly from a report server. You can quickly build a report by adding items from the Report Part Gallery provided by report designers from your organization." - As mentioned
    on TechNet. 
    I wonder how a non-technical business analyst can use Report Builder 3 to create ad-hoc reports/analysis with list of parameters based on other data sets.
    Do they need to learn TSQL or how to add and link parameter in Report Builder? then How they can add parameter into a report. Not sure what i am missing from whole idea behind Report builder then?
    I have SQL Server 2012 STD and Report Builder 3.0  and want to train non-technical users to create reports as per their need without asking to IT department.
    Everything seems simple and working except parameters with list of values e.g. Sales year List, Sales Month List, Gender etc. etc.
    So how they can configure parameters based on Other data sets?
    Workaround in my mind is to create a report with most of columns and add most frequent parameters based on other data sets and then non-technical user modify that report according to their needs but that way its still restricting users to
    a set of defined reports?
    I want functionality like "Excel Power view parameters" into report builder which is driven from source data and which is only available Excel 2013 onward which most of people don't have yet.
    So how to use Report Builder. Any other thoughts or workaround or guide me the purpose of Report Builder, please let me know. 
    Many thanks and Kind Regards,
    For quick review of new features, try virtual labs: http://msdn.microsoft.com/en-us/aa570323

    Hi Asam,
    If we want to create a parameter depend on another dataset, we can additional create or add the dataset, embedded or shared, that has a query that contains query variables. Then use the option that “Get values from a
    query” to get available values. For more details, please see:http://msdn.microsoft.com/en-us/library/dd283107.aspx
    http://msdn.microsoft.com/en-us/library/dd220464.aspx
    As to the Report Builder features, we can refer to the following articles:http://technet.microsoft.com/en-us/library/hh213578.aspx
    http://technet.microsoft.com/en-us/library/hh965699.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Multiple data sets: a common global dataset and per/report data sets

    Is there a way to have a common dataset included in an actual report data set?
    Case:
    For one project I have about 70 different letters, each letter being a report in Bi Publisher, each one of them having its own dataset(s).
    However all of these letters share a common standardized reference block (e.g. the user, his email address, his phone number, etc), this common reference block comes from a common dataset.
    The layout of the reference block is done by including a sub-llayout (rtf-file).
    The SQL query for getting the dataset of the reference block is always the same, and, for now, is included in each of the 70 reports.
    Ths makes maintenance of this reference block very hard, because each of the 70 reports must be adapted when changes to the reference block/dataset are made.
    Is there a better way to handle this? Can I include a shared dataset that I would define and maintain only once, in each single report definition?

    Hi,
    The use of the subtemplate for the centrally managed layout, is ok.
    However I would like to be able to do the same thing for the datasets in the reports:
    one centrally managed data set (definition) for the common dataset, which is dynamic!, and in our case, a rather complex query
    and
    datasets defined on a per report basis
    It would be nice if we could do a kind of 'include dataset from another report' when defining the datasets for a report.
    Of course, this included dataset is executed within each individual report.
    This possibility would make the maintenance of this one central query easier than when we have to maintain this query in each of the 70 reports over and over again.

  • SharePoint 2010 Report using a Shared Data Source Connection file (.rsds) is forcibly closed.

    Hi -
    When attempting to render a report (.rdl) in a SharePoint 2010 document library that has a
    Connection Type specified as a Shared data source (the connection succeeds when tested in the SharedDataSource.aspx page), the following error message is displayed in the report:
    The data source that I'm using passes the test when tested in isolation but when used in the report it yields to the error message above. Below are some of the details of the .rsds file:
    For this particular Web Application, Kerberos has been enabled. I couldn't spot any traces in ULS nor in the Security Windows logs.
    Any feedback on how to fix this issue is appreciated.
    Thanks.

    Hi
    There are multiple resolution found for the same issue, please refer 
    http://www.marc-lognoul.me/itblog-en/an-existing-connection-was-forcibly-closed-by-the-remote-host/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/4ad2a302-8a77-44f3-91ce-803d36efc9c5/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/235ca863-f540-4fa0-9688-0b0b46c2d75d/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • No data set found when creating a report

    Dear all,
    This is my first time using BI Publisher, and I am stuck at a very early stage.
    I have followed the various steps described in the documentation, up to creating a new report.
    When I try to do so, I fail as there is no available data set in the left panel.
    Another curious behaviour is that I have first to export and then import sample data as xml for the sample to be saved. Otherwise, when I just click on 'Save as Sample Data', the sample file appears to be associated with the dataset, but disappears at the next logon.
    What would cause such behaviours?
    Are these issues linked?
    Is it a configuration/setup issue?
    Or could it be a privileges/roles issue?
    Cordially,
    Albain

    Vitaly,
    1.  Yes, I checked "More Data Sources" - not there.
    2.  I tried adding the Field Definitions using Control Panel Add/Remove - no help.
       I tried removing the "Field Definitions" and then adding them again - no help.
    3.  Another machine does have the same version of CR.  It is running Vista.  Problem machine is running XP.
    4.  Clicked the "Reinstall" button in the Control Panel Add/Remove - this fixed the problem.  I did not need to uninstall the program.
    Both machines now exhibit the same list of connection types (with one small exception).  Thank-you for your hellp.
    .... Warren
    Edited by: Warren Pickell on Oct 23, 2009 11:55 PM
    Edited by: Warren Pickell on Oct 23, 2009 11:56 PM
    I'm trying to indicate "Yes, my question has been answered.", but it does not seem to "take".

  • How to activate a different sub-report for each row in the data set as main report page breaks on each row of data in the main dataset

    I am going to try asking this same question a different way as I have yet to find a working solution to my problem.  I have a main report and then 8 sub reports.  My main report has one data set and returns one row of data per account number.  One
    of the fields in the main data set is called AccountProf.  My main report displays one page per Account number and then calls a different sub report based on that account's AccountProf value.  The sub reports take in the account number as a parameter
    and get multiple rows of data to display that accounts usage formatted differntly for each AccountProf (hence the 8 different sub report.  
    So far I can figure out how to do everything but setting the visibility property of each sub-reports when I have multiple accounts.  If I use the following expression for the visibility property on each sub report, it makes all the applicable sub report
    for all the accounts requested visible at once:
    =IIF(Fields!AccountProf.Value= "USE_PLUS_DMD",False,True)
    *The value in bold USE_PLUS_DMD  is different for each sub report.
    Here is a look at what the main report look like:
    Here is the main reports data set:

    Hi JasonDWilson77,
    According to your description, there is a main report and 8 sub reports in the report, you want to set visibility of sub reports, if no value is passed to the parameter of sub report, the sub report will not be displayed. If that is the case, please refer
    to the following steps:
      1. Create a new parameter named NewAccountNumber, set its data type the same as @AccountNumber, select Allow multiple values, set Visibility to be hidden, then set all available values to default values.
      2. Right-click the first sub report and open Subreport Properties dialog box, click Parameters in left pane, set name to AccountNumber, then click (fx) button, type the expression like below:
    =Parameters! NewAccountNumber(0)
      3. Click Visibility in left pane, select Show or hide based on an expression, then click (fx) button and type the expression like below:
    =IIF(InStr(Join(Parameters! AccountNumber.Value), Parameters!NewAccountNumber.Value(0))>0 , false,true)
      4. Modify parameter of other sub reports like step2.
      5. Set visibility of other sub reports like step3.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • Using report parameter in data set filter expression with an SSAS data source

    I have an SSRS report with an SSAS data source.
    Report parameters:
    Param1 - text, single select
    Param2 - text, multi-select
    Dataset:
    In Query Designer, I want to include Param1 as a filter expression so I can have "Dimension1 Begins with @Param2". I'm not sure the exact syntax to make param2 work in this.
    The point is to filter my data set on param1. If A is selected for param1, I want the data set to have the filter saying "Dimension1 begins with A"
    Anyone know how to use a report parameter in the dataset filter expression for an ssas data source?

    hi,
    try this maybe the dates you are comparing are not in the same format.
    I test data template in EBS but not with dates.
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'dd/mm/YY') and to_date(:p_to_date ,'dd/mm/YY')
    if dont works try to put values insted of your parameter like :
    to_date(date,'dd/mm/YY') between to_date(:p_from_date ,'10/01/07') and to_date(:p_to_date ,'01/12/07') ... put dates where u can have some values in report...
    if dont work then try to print the values of the 2 parameters and the date of the select somwhere in ur report to see what you have in it..
    hope it helps..
    Regards Joe.

  • I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query parameter to report parameter i need to pass distinct values. How can i resolve this

    I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
    parameter to report parameter i need to pass distinct values. How can i resolve this

    Hi nancharaiah,
    If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
    None
    Specify values
    Get values from a query
    If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
    sample is for your reference:
    Select distinct field_name  from table_name
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Report Runing Very Slow for  range even data set for that range is small

    Hello Experts,
      I have a report which runs on date selection.
    When I run the report for say 01.01.2000 -31.12.2010  whcih contains 95% of the data , the report output is coming with in a minute.
    But when I ran the report from 01.01.2011 - 31.12.2011 , or say 01.01.2011 for a single day , where the data set is hardly 3k records,the report is runing for long time 15 - 20 minutes and not showing output.
    But when i remove this variable and run the report , it is coming again with in a minute.
    One weird thing is when i ran the report from 01.01.2000 - 31.12.2011 it is also coming with in a minute, but when i ran for 01.01.2011 single day it is not coming.
    Can any one share some inputs on this one.
    Thanks
    Vamsi

    Hello Experts,
      I have a report which runs on date selection.
    When I run the report for say 01.01.2000 -31.12.2010  whcih contains 95% of the data , the report output is coming with in a minute.
    But when I ran the report from 01.01.2011 - 31.12.2011 , or say 01.01.2011 for a single day , where the data set is hardly 3k records,the report is runing for long time 15 - 20 minutes and not showing output.
    But when i remove this variable and run the report , it is coming again with in a minute.
    One weird thing is when i ran the report from 01.01.2000 - 31.12.2011 it is also coming with in a minute, but when i ran for 01.01.2011 single day it is not coming.
    Can any one share some inputs on this one.
    Thanks
    Vamsi

  • Link to summary report with filtered data set within FormsCentral

    Is it possible to generate a link to a summary report with a filtered data set within FormsCentral?
    If I have 4 sales agents each using the form to submit their repsective sales (with a dropdown indicating the sales agent) is it possible to filter the data so that only Sales Agent A see a report of their sales?
    Thanks,
    D

    Try following forum:
    http://forums.adobe.com/community/formscentral?view=discussions

  • DRILL DOWN REPORT FOR DIFFERENT DATA SETS in 11G

    Hello.
    My requirment is to do a drill down report with 2 data sets.
    My first data set have all the chart of accounts , My second data set have all the transactions.
    in my report i have 2 data tables. One with the accounts , and when i click in one account get all the transactions for selected account in the second data table.
    Anyone know how i can do this
    Any help would be apreciatted
    Paulo

    You can use the drill down strategy, well described by my friend Kan:
    http://bipconsulting.blogspot.com/2010/02/drill-down-to-detail-or-another-report.html
    regards
    Jorge
    p.s If this answers your question then please grant the points and close the thread

  • Attempt to assign data set as datasource for existing report

    There must be something stupid I am missing.
    1) Created a report with Crystal Reports 2011
    2) It queries a table in a SQL 2008 database
    3) The internal select statement is
    SELECT "CUSTOMER"."rname", "CUSTOMER"."radd", "CUSTOMER"."radd2", "CUSTOMER"."rcity", "CUSTOMER"."rprov", "CUSTOMER"."rpostal", "CUSTOMER"."rcountry"
    FROM   "Data"."dbo"."CUSTOMER" "CUSTOMER"
    ORDER BY "CUSTOMER"."rname"
    4) Now I am attempting to use the report in Visual Basic 2010 but using a data set as the source
    5) Following examples I have looked at this is the code
    Private Sub CustomerCrystalReport2frm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
            ' Define connection information
            Dim ConnectionInfo As New ConnectionInfo
            ConnectionInfo.ServerName = "TEST7\TEST7"
            ConnectionInfo.DatabaseName = "Data"
            ConnectionInfo.UserID = "Master"
            ConnectionInfo.Password = "MasterPassword"
            ' Load the existing report
            Dim rd As ReportDocument = New ReportDocument
            rd.Load(Application.StartupPath & "\Crystal Reports\DGVCustomerListing.rpt")
            SetDBLogonForReport(ConnectionInfo, rd) ' Set the report table connections
            ' This shows the report has loaded the records using the internal select statement (18305 records)
            Debug.Print(" Report Document Records=" & rd.Rows.Count)
            ' Create the data set with the records I want the report to use
            Dim ReportInfo As DataSet = New DataSet()    ' To hold data to pass to the report
            Dim SQLSelect As String = "select * FROM Data.dbo.Customer where rname LIKE 'z%' order by rname"
            ReportInfo = FillDataSet(SQLSelect, "ReportData")   ' Fill the data set to pass to the report
            ' This shows the data set contains the expected records (57 records)
            Debug.Print(" Data Set Records=" & ReportInfo.Tables("ReportData").Rows.Count)
            ' Change the source of the report
            rd.SetDataSource(ReportInfo)
            ' This changing the source had no effect records still (18305 records)
            Debug.Print(" Report Document Records=" & rd.Rows.Count)
            CrystalReportViewer1.ReportSource = rd  ' Bind report document to crystal report viewer
        End Sub
        Private Sub SetDBLogonForReport(ByVal ConnectionInfo As ConnectionInfo, ByVal ReportDocument As ReportDocument)
            Dim Tables As Tables = ReportDocument.Database.Tables
            For Each table As CrystalDecisions.CrystalReports.Engine.Table In Tables
                Dim TableLogOnInfo As TableLogOnInfo = table.LogOnInfo
                TableLogOnInfo.ConnectionInfo = ConnectionInfo
                table.ApplyLogOnInfo(TableLogOnInfo)
            Next
        End Sub
    end Sub
    6) The report is appearing in the viewer with 18305 records
    Any help would be appreciated

    Setting the report table connections caused the report to fill with data.
    At this point I seemed unable to reset the datasource.
    Also the set data source needed further clearification.
    The simplified following code works:
    Dim rd As ReportDocument = New ReportDocument
    rd.Load(Application.StartupPath & "\Crystal Reports\DGVCustomerListing.rpt")
    ' Create the data set with the records I want the report to use
    Dim ReportInfo As DataSet = New DataSet()    ' To hold data to pass to the report
    Dim SQLSelect As String = "select * FROM Data.dbo.Customer where rname LIKE 'z%' order by rname"
    ReportInfo = FillDataSet(SQLSelect, "ReportData")   ' Fill the data set to pass to the report
    ' Change the source of the report
    rd.SetDataSource(ReportInfo.Tables("ReportData"))
    CrystalReportViewer1.ReportSource = rd  ' Bind report document to crystal report viewer

  • U201CValid Tou201D date set before the date that the report is run u2013 print u201Cnullu201D.

    Hi Experts
    I had a requirement for  the Query, when we executing the through slection screen we will be giving 0fiscyear "from and to" dates. the "Valid to" (0date)  has to check the relation of the Client partner and contract of relationship, if it is within the current date it should dipslay the report with values , if it is out of current date, it should display in the report as "null".
    Logic : This report is based on the u201CClient Partneru201D and the u201CContact ofu201D relationship. If any of these relationships have a u201CValid Tou201D
               date set before the date that the report is run u2013 print u201Cnullu201D.
    Could anyone of you provide the inputs on this.
    Thanks in advance
    Thanks
    Sekhar.P

    IvanLevo wrote:
    Could not find the /Library/Startup Items.
    Good, it shouldn't be there.
    For your Dock problem,
    Go to your Finder "Go" menu choose "Go to Folder" and enter ~/Library/Preferences. Then delete these files then restart or log out and back in.
    com.apple.Finder.plist
    com.apple.dock.plist
    com.apple.dock.db
    com.apple.dock.extra.plist
    Let us know

Maybe you are looking for

  • GNC Manager demanded to see my ID in order to make a purchase today with my VISA.

    I went to GNC today, ive been to this location a couple times never had an issue like this. I went to the counter with my item, one guy came over asked me if i wanted to buy another tub of protein because its buy one get one half. Then asked me if i

  • Problem for uplaoding sales text using LSMW

    Hi, I have use LSMW for uplaoding material masters sales and purchase order text ,  first I have done for purchase order text  with object : MATERIAL  and ID : BEST  it works fine for this  after that when I am trying same for uploading sales text   

  • Adobe Reader XL and PDF Documents not opening EULA

    I have successfully loaded Adobe reader xl several times now and each time I try to open a pdf I get this prompt that says must accept EULA.  I can't find a EULA and am so frustrated.  I have a MAC. How can I fix this?

  • Scheduler Not Following Pattern

    I have scheduled a transaction within the hourly tab to run between 3pm - 4pm and to run every 5 minutes within that range.  The job does start at 3:00pm and runs every 5 minutes but does not stop at 4:00pm.  Does somebody know why?

  • Condition Maintenance at Product Category Level

    Dear Gurus, Could you please advise how to enable/define pricing conditions/discounts at product category level? In the 'comprehensive' SAP CRM training material it says "In order to define condition types on the product category level, you have to d