Refresh data source view gets 'column' argument cannot be null

When I try to refresh a data source view in SQL Server 2008 BIDS, I get the error: System.Data   'column' argument cannot be null.  Parameter name: column.   How to resolve this?  The underlying tables have no data yet.

Hi PCSQL66,
The error message should be caused by FOREIGN KEY constraint auto-generated. If you
add a FOREIGN KEY to the generated table, then you will see the error message after clicking refresh button. Please submit this issue to below official link and then post the link back here, I think we need to get confirmation from product group.
http://connect.microsoft.com/SQLServer
Thanks,
RaymondRaymond Li - MSFT

Similar Messages

  • Refreshing the Data Source View in Analysis Services

    I have added columns to the SQL Database table that is used as a dimension in an Analysis Services Cube.  The new columns will be used as additional Property Fields for the dimension.  When I attempted to refresh the Data Source view so that the additional columns are present, I am given the following error:
    System.Data
    Property not accessible because 'Parent Columns and Child Columns don't have type-matching columns'
    I have done nothing to the columns used for the parent of child and the error message provides nothing to gon on. Does anyone have any ideas on this?
    Gary

    Olga,
    Thanks for your response.  I will try and answer your questions
    1) I have not tried removing the columns yet.  I will try that this afternoon but have limited hope.  The two columns I added are simple text columns that will be used as attributes in the dimension.  I have made no change to the parent or child columns.
    2) The table I modified is the source table for a parent-child dimension.
    3) The reference to the "check list" does not take me to any kind of check list.
    4) The parent-child dimensions I am trying to modify have been in use for months and the parent and child columns do have the dame data types.
    5) I have also check the data types between the dimension table and the fact table.  they use the same data types (small int).
    6) I have not made a collection for the parent key, it is a single column. The remainder of your last paragraph is not clear to me. Can you give me an example.
    I am fairly inexperienced with Analysis Services, please talk slow and use small words  :-)
    Thanks again for your help!
    Gary

  • Errors in the high-level relational engine. The data source view does not contain a definition for the table or view. The Source property may not have been set.

    Hi All,
    I have a cube in which i'm using the TIME DIM that i created in the warehouse. But now i wanted a new measure in the cube which is Average over time and when i wanted to created the new measure i got a message that no time dim was defined, so i created a
    new time dimension in the SSAS using wizard. But when i tried to process the new time dimension i'm getting the follwoing error message
    "Errors in the high-level relational engine. The data source view does not contain a definition for "SSASTIMEDIM" the table or view. The Source property may not have been set."
    Can anyone please tell me why i cannot create a new measure average over the time using my time dimension? Also what am i doing wrong with the SSASTIMEDIM, that i'm getting the error.
    Thanks

    Hi PMunshi,
    According to your description, you get the above error when processing the time dimension. Right?
    In this scenario, since you have updated the DSV, it should have no problem on the table existence. One possibility is that table has been specified for tracking in the notifications for proactive caching, but isn't available any more for some
    reason. Please change the setting in Proactive Caching into "MOLAP".
    Reference:
    How To Implement Proactive Caching in SQL Server Analysis Services SSAS
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • How to create olap cube using Named Query Table in Data source View

     I Create on OLAP Cube using Existing Tables Its Working Fine But When i Use Named Query Table with RelationShip To other Named query Table  It Not Working .So give me some deep Clarification On Olap Cube for Better Understanding
    Thanks

    Hi Pawan,
    What do you mean "It Not Working"? As Kamath said, please post the detail error message, so that we can make further analysis.
    In the Data Source View of a CUBE, we can define a named query. In a named query, you can specify an SQL expression to select rows and columns returned from one or more tables in one or more data sources. A named query is like any other table in a data source
    view (DSV) with rows and relationships, except that the named query is based on an expression.
    Reference:Define Named Queries in a Data Source View (Analysis Services)
    Regards,
    Charlie Liao
    TechNet Community Support

  • PREDICTION JOIN OPENQUERY against data source view does not work

    Hi,
     I am trying to follow the example in this link:
    http://technet.microsoft.com/en-us/library/ms132031.aspx
    to do a prediction join with a table defined in a data source view of our cube/mining structures.  No matter how I specify the table in the OPENQUERY statement I get: "OLE DB error: OLE DB or ODBC error: Invalid object name 'DataSourceView.dbo.TableName'.;
    42S02."  I've tried specifying the table name in 1, 2, and 3 parts, with and without the '[]' brackets but get the same error every time.  I thought something might be wrong with the table in the DSV so tried putting other tables in the query,
    but that produces the same error.  Any ideas on the problem?
    SELECT FLATTENED
            t.[Column1],
            t.[Column2],
            t.[Column3],
            PredictTimeSeries([ModelName].[Column3],5)
    From
      [ModelName]
    PREDICTION JOIN
      OPENQUERY([DataSourceView],
        'SELECT
            [Column1],
            [Column2],
            [Column3]
        FROM
          [DataSourceView].[dbo].[TableName]
        ') AS t
    ON
            [ModelName].[Column3] = t.[Column3]
    OLE DB error: OLE DB or ODBC error: Invalid object name 'R Staging.dbo.TestSet'.; 42S02."

    I want to be able to query a data source view table/named query.  This TechNet article seems to imply it is as simple as running the following in a DMX window:
         OPENQUERY ([MyDatasourceView],'select Column1 from DataSourceTable')
    I've also tried:
         select * from OPENQUERY ([MyDatasourceView],'select Column1 from DataSourceTable')
    Both result in:
        "Query (1, 1) Parser: The syntax for 'OPENQUERY' is incorrect."
    Can we query a DSV table from a DMX query directly with OPENQUERY, or does the OPENQUERY only work within a PREDICTION JOIN?  Seems like such a simple case for it not to work.
    Following the example in this article:
    http://technet.microsoft.com/en-us/library/ms132173.aspx

  • How do I reference multiple tables in SSAS Data Source View Named Calculation functionality?

    Hi SSASers - 
    On the Data Source View node of SSAS Visual Studio Interface, I want to create a named calculation that references multiple tables. Something like: CASE WHEN tableA.Column1 = 'Y' Then tableB.Column1 ELSE tableB.Column2 End, but the compiler throws an error
    here "Deferred prepare could not be completed". 
    What is the syntax for referencing multiple tables on this node or how else can multiple tables be used to create a calculated value in SSAS? I'm new to SSAS and so far have been building big views and building calculations this way. Another option is the
    Calculation tab off the cube node but this calculation will need to be based off of dimensions AND measures so please provide a syntax example here also. 
    Thanks in advance!
    Carl

    Thanks Jiri! The named query functionality off the Data Source View node is exactly what I was looking for - it's just a view on the SSAS side of things instead of the relational dbase.
    Sorry for the delayed answer verification - got pulled into something else last week. Carl 
    Carl

  • Objects are not referenced in cube data source view. Large model.

    Looking at large model. 100+ measure groups, 200+ dimensions, one cube. Deployed to multiple customers in production as a part of custom developed software.
    in data tools 2010 I'm looking at the cube on sql 2008, sql 2008 R2 (EE, DE).
    In the cube data source diagram we observe 50+ objects that do not have any links to them or from them.
    1)
    Some of these I was unable to find in DMV's of the cube at all, it turns out they are present in the Data source that is in Data Source Views section.
    How did these end/could end up in the cube data source model? they are not available in dimension usage window at all.
    2) Others do not have any links from them or to them in cube’s data source diagram, however the dimension usage clearly shows these objects are part of relationships 
    both regular and many to many depending on the object in question.
    We are trying to identify what objects we can ‘trim’ from the model. I’m not sure what am I looking at in this case: data tools have a trouble interpreting diagram for 200+ dimensions and
    100+ measure groups (it is a large existing model) and this artifact should not be used to decide what in dimensions is obsolete and can be decommissioned.
    We are looking at cube that has over 40 NxM just to one fact not counting regular relationships.
    Am I looking at a feature or maybe an issue with the model itself that somehow has developed in the particular cube.
    It is not something I came across before.
    thanks

    Hi,
    According to your description, you are designing a large SQL Server Analysis Services cube, the problem is that you are unable view the relationship in the data source
    view diagram, right?
    In your description, you said that you can see the relationships in Dimension Usage window. In your scenario, can you see the relationship under the Tables pane when expanding
    a table's Relationships folder?
    General, the relationships will be defined automatic if the relationships were defined in your data source of the cube. And the dimension relationships between cube dimensions
    and measure groups in the cube are defined manually in Dimension Usage. In your scenario, you can define relationship manually in the data source view, please refer to the link below to see the details.
    http://technet.microsoft.com/en-us/library/ms178448.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to find all uses of data source views in an SSIS solution

    I am upgrading Visual Studio from 2008 to 2013 (with SSDT) and SQL Server 2008 R2 to  2012.  I have a solution with over 30 dstx files. Each file has multiple OLE data sources and lookup tasks.  There is inconsistent usage of data source views
    throughout (as compared to SQL queries or table references).  It is my understanding that all data source views need to be removed before upgrading SSIS packages from BIDS to SSDT.  I tried searching the files as XML for the DSVs but it appears the
    GUID reference changes per dstx file.  It seems like I will have to look at each source/lookup. Is there quicker way to search for where they are used? 
    Thanks
    Adding this question here.  Posted question incorrectly in VSO forum.

    All right, yes, they are dropped
    Never upgraded a package that had them.
    What happens if you just upgrade leaving a copy?
    Arthur My Blog
    This ended up being what I did for many of the packages.  Upgrading the packages severed the data source views and left the SQL in the related tasks (e.g. OLE Source task).  Sorry for the delayed mark as answered.

  • ESS Error- Data source contains no columns which can be displayed

    Hi
      After the application of support packs, an error is observed in ESS applications where the data/content has to be displayed in tabular format.
      On accessing Personal Data application, error message is displayed -
       Error Occured
       Data source contains no columns which can be displayed
       Screenshot is also attached for reference.
       Please help in resolving the issue.
    Regards
    Shaily

    Hi all!
    I have the same problem, any ideas how to analyze and solve the problem?
    Regards
    Peter Meyer

  • Column 'prix' cannot be null

    Hi,
    I'm using the server behavior "Insert record" and I always have the same problem when I want to insert a new record.
    I get the error message "Column 'prix' cannot be null" and I don't understand why ????
    Does someone know the solution ?
    Thank you.
    Here is the code :
    <?php require_once('Connections/connexionMysql.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ajout")) {
      $insertSQL = sprintf("INSERT INTO articles (prix) VALUES (%s)",
                           GetSQLValueString($_POST['prix'], "double"));
      mysql_select_db($database_connexionMysql, $connexionMysql);
      $Result1 = mysql_query($insertSQL, $connexionMysql) or die(mysql_error());
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <form action="<?php echo $editFormAction; ?>" method="POST" name="ajout" id="ajout">
      <p>
        <label for="prix">Prix</label>
        <input type="text" name="prix" id="prix">
      </p>
      <p>
        <input type="submit" name="envoyer" id="envoyer" value="Envoyer">
      </p>
      <input type="hidden" name="MM_insert" value="ajout">
    </form>
    </body>
    </html>

    Romanna,
    where did you perform the transformation concerning the sequence...
    Source, Staging or Target?
    The CKM check the constraint Null columns, PK, AK, FK and check in the staging area before integrated datas into the target Table... So if you perform the transformation in the target, your column id is null in the staging area...

  • SPM: Using "refresh data sources" in Data Source Administrator

    Hi All,
    When making changes to a query, that I want to be reflected in the flex front end, I carry out the following steps:
    1) save the query in query designer
    2) load up the SPM user interface, navigate to Administration -> Data Source Administration
    3) Click on "Refresh All Data Sources"
    4) Wait for the "wait" cursor to finish (only takes a few seconds)
    5)log out of the portal
    6) clear the browsers cache
    7) reload the web page
    8) Repeat Steps 2-7 again
    9) the query's changes are not reflected in the UI
    Does anyone know what I should be doing differently so that the query changes are reflected in the Data Source?
    Kind regards,
    Neil

    Hi Neil,
    You are almost right on the steps, just a few changes.
    1. Modify your query and save the query changes.
    2. Close the query designer so you are not locking the query (optional step, but recommended).
    3. Go to transaction RSRT and generate the query (optional step, but recommended).
    4. Login to portal and launch SPM user interface, navigate to Administration -> Data Source Administration
    5. Click on "Refresh All Data Sources"
    6. Check the UI logs (Settings > View logs), to confirm that datasource refresh has finished successfully (your should receive messages saying 'Metadata Loaded'.  The cursor will turn into a clock multiple times, this is the UI checking to see if the metadata refresh has finished.  You should see the message 'Metadata Loaded' as many times as there are registered BW queries.  This could take a few minutes depending on the number of queries registered in SPM UI.
    You need not clear your browser cache or logout of the application.  At most you may need to relaunch the application.
    These steps should be sufficient to reflect any query changes to the SPM UI.
    Regards,
    Rohit

  • Data source not getting replicated

    hi all,
    i have created a generic datasourc  and when i tried to replicate the datasource in BI, its not getting replicated at all.\
    the datasource is active in rsa5.
    I tried to replicate the application component but still  the particulate datasource is not getting replicated.
    I tried to store the data source in ECC in separate application component and try to replicate in Bi.,But still cannot replicate.
    how to replicate the datasource?

    Hi,
    Please check if you r not replicating the daat source first time:
    1. Delete teh PSA records if any.
    2. Check if your replication trial create  lock entry in daat base tables.
    3. After deletion of whole datasource along with teh data , try replicating teh datasource again.
    IF new datasource:
    Go to rsa6 activate teh data source , check in RSa3 the extraction is proper.
    log off from all teh sessions and of both BW and R/3 system.
    Log in to BW and select teh r/3 system and replicate full data source.
    Also check teh daat source RFC is activated and restored as well.
    Thanks
    Mukesh

  • Newly added field in the data Source not getting populated

    Hello All,
    We have added few fields in the Data Source. The Data Source is based on the InfoSet. We have included the field in the Infoset and have updated the code to fetch the value for the newly added fields.
    When we perform the test extraction for this Data Source in RSA3, the newly added fields are not getting populdated with the value. In the system generated query's selection list, the newly added fields are not selected.
    Please let mw know how to get the newly added field selected in the system generated query of the infoset.
    Regards,
    -Purnima

    Hi,
    As you said you have added the filed in Info Set. Have you included the same in data source? try if not.
    If you are trying to create a query in source system to check the data. I guess in R/3 (ECC) then you have to include the new field in slection critera (ther is an option available on top menu).
    I would suggest before creating any query go to RSO2 select the data source. Display the field structure and check if the filed is there or not. You maysee Infoset level data directly by data display from top menu. Try that optionas well to check.
    I hope it will help.
    THanks,
    S

  • Using Excel & ODBC data source to get data

    I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
    Thanks in advance.

    user11307988 wrote:
    I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
    Thanks in advance.Adding to sb92075's brief but accurate statement, from one of my recent presentations (note - no need for an ODBC connection):
    'Need to add a reference to Microsoft ActiveX Data Objects 2.8 Library before starting
    '*** This section might be in the top portion of the user form, worksheet code, or module:
    'Declare a connection object in the general section to hold the connection to the database
    Dim dbVMFG As ADODB.Connection
    'Declare a set of variables to hold the username and password for the database
    Dim strUserName As String
    Dim strPassword As String
    Dim strDatabase As String
    Dim i as Integer
    Dim intResult As Integer
    Dim strSQL as String
    Dim lngRow as Long
    On Error Resume Next
    strDatabase = "MyDB"
    strUserName = "MyUser"
    strPassword = "MyPassword"
    'Connect to the database
    'Oracle connection string
    Set dbVMFG = New ADODB.Connection
    dbVMFG.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=" & strDatabase & ";User ID=" & strUserName & ";Password=" & strPassword & ";ChunkSize=1000;FetchSize=100;"
    dbVMFG.ConnectionTimeout = 40
    dbVMFG.CursorLocation = adUseClient
    dbVMFG.Open
    If (dbVMFG.State <> 1) Or (Err <> 0) Then
        intResult = MsgBox("Could not connect to the database.  Check your user name and password." & vbCrLf & Error(Err), 16, "Excel Demo")
    Else
        strSQL = "SELECT" & VBCrLf
        strSQL = strSQL & "  ID AS RESOURCE_ID," & VBCrLf
        strSQL = strSQL & "  DESCRIPTION" & VBCrLf
        strSQL = strSQL & "FROM" & VBCrLf
        strSQL = strSQL & "  MY_TABLE" & VBCrLf
        strSQL = strSQL & "WHERE" & VBCrLf
        strSQL = strSQL & "  DESCRIPTION LIKE '%10%'" & VBCrLf
        strSQL = strSQL & "ORDER BY" & VBCrLf
        strSQL = strSQL & "  ID"
        'Add a new worksheet to the new workbook, add after the last sheet
        ActiveWorkbook.Sheets.Add
        ActiveWorkbook.ActiveSheet.Name = "JustATest"
        snpData.Open strSQL, dbVMFG
        If snpData.State = 1 Then
            'Slow Method------------------------------------
            lngRow = 0
            'Header Row
            For i = 0 To snpData.Fields.Count – 1
                lngRow = lngRow + 1
                ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i).Name
                ActiveSheet.Cells(lngRow, i + 1).Font.Bold = True
            Next i
            'Detail Rows
            Do While Not snpData.EOF
                lngRow = lngRow + 1
                For i = 0 To snpData.Fields.Count - 1
                    ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i)
                Next i
                snpData.MoveNext
            Loop
            'End Slow Method------------------------------------
            'Fast Method----------------------------------------
            'Do not use this and the slow method!
            For i = 0 To snpData.Fields.Count - 1
                ActiveSheet.Cells(1, i + 1).Value = snpData.Fields(i).Name
            Next i
            ActiveSheet.Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(1, snpData.Fields.Count)).Font.Bold = True
            ActiveSheet.Range("A2").CopyFromRecordset snpData
            'Auto-fit up to 26 columns
            ActiveSheet.Columns("A:" & Chr(64 + snpData.Fields.Count)).AutoFit
            'End Fast Method----------------------------------------
            snpData.Close
        End If
    End IfA couple of notes:
    1. Do not repeatedly connect to the database, execute a SQL statement, and disconnect from the database - connect once and stay connected.
    2. Use bind variables where possible in SQL statements for constants (literals) which might change from one execution to the next - let me know if you need s code example showing bind variable usage in Excel.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Xml data source in db column?

    Hi everybody
    If I want to use XML data as data source for BI Publisher, can these data be stored in a database column
    or do I have to store the source data in XML files in a file system?
    If it can be stored in a db column - is there anything I need to consider in terms of defining the data source and building the data model?
    Thanks
    Regards
    Andy

    can these data be stored in a database column
    or do I have to store the source data in XML files in a file system?
    yes
    data can be stored in
    1) table column as xmltype or clob or blob or .....
    so you can parse this column in some way by xquery or xmltable or ...
    2) as os file
    processing by bfilename like
    xmltype( bfilename('GET_XML', xmlfilename.xml))

Maybe you are looking for

  • Problems with Language Menus

    My DVD supports multiple languages. To try to figure out how to set up multiple-language menus, I've gone thorugh and added the German text assets to all of my menus by choosing "German" in the menu language pop-up. So far so good: all of my menus ha

  • COPA Report ( How to explode in the report )

    Hi , I just created COPA painter report for the sales commission.When i drill down the Report it will show the commission posted for each sales district 1 , when i drill the sales district it will show all the profit center 1 updated for the sale dis

  • Built-in administrator account

    Dear All,     I was searching for the best way to secure the Built-in Administrator account on Active Directory and found the below two options suggested from Mircosoft. I would appreciate your help in recommending the best option: 1. rename account

  • Having a huge problem getting photos out of kalleri into photo shop touch

    I have the new Samsung galaxy note 10.1 tablet with PS Touch preinstalled. My huge problem is trying to bring photos for editing/enhancing into PS Touch from "Gallery" *"Gallery" is where all your photos  are stored (like Adobe Bridge)       Please h

  • Video flicker CS5.5 Premiere.

    Hi. I've been having this problem for quite sometime. I've tried many different things like changing the field order dominance, deinterlace, creating a new sequence straight from the clip, changing the speed duration, importing into after effects and