SSIS: Unflatten a hierarchy

I have an excel file that has the following columns and data
ItemNumber
Description
Attribute1
Attribute2
Attribute3
1000
A
1
2
1
1001
B
1
0
2
1002
C
2
1
1
1003
D
0
0
1
I need to output this into two tables and in the following way
ItemId
ItemNumber
Description
1
1000
A
2
1001
B
3
1002
C
4
1003
D
ItemId
AttributeId
Value
1
1
1
1
2
2
1
3
1
2
1
1
2
3
2
3
1
2
3
2
1
3
3
1
4
3
1
Essentially two questions:
1. After I create the first table, how can I provide the Id generated there to the Attributes table
2. How do I unflatten the Attibutes to multiple rows. There can only ever be three attributes Attribute1, Attribute2 and Attribute3. These need to be associated with AttributeIds 1, 2 and 3 respectively.
Thanks in advance

Try this,
declare @temp table (ItemNumber int,Description varchar(10), Attribute1 int, Attribute2 int, Attribute3 int)
insert into @temp values(1000,'A',1,2,1)
insert into @temp values(1001,'B',1,0,2)
insert into @temp values(1002,'C',2,1,1)
insert into @temp values(1003,'D',0,0,1)
if OBJECT_ID('tempdb..#temp') IS NOT NULL DROP TABLE #temp
select row_number() over (order by description) ItemId, * into #temp from @temp
select ItemId, Replace(Attributes,'Attribute','') as AttributeId, Value from #temp
unpivot(Value for Attributes in (Attribute1,Attribute2,Attribute3)) upvt
where Value <> 0
select ItemId,ItemNumber, Description from #temp

Similar Messages

  • SSIS XML Source not importing data

    ISSUE:
    I'm working from a complex xml schema.  The issue I'm having is that the xsd passes SSIS XML Source validation, I'm able to create each table from its connections, but on import it executes and succeeds but w/o importing any data.
    FILE DETAILS:
    The xsd is not generated from the xml file.  It is provided by a client to guarantee that it covers all possible relationships. I understand that I can create an xsd in the SSIS XML Source but exporting a full data set each time there is a schema change
    and then creating a new xsd file is not ideal, nor does it guarantee that all relationships will be correctly generated.
    The Schema version does match the XML version (which is a bit suspect since I can still run xml files on the old schema w/o error)
    QUESTIONS:
    1. I have been unable to find an answer as to why this happens.  Can anyone shed light on why the data is ignored?  I've read that it's not an uncommon occurrence but have not season an answer on why.  Getting an answer to this is probably
    the most important.
    2. My Options?:
    a. I am not proficient in C# so i cannot script the import, plus there are over a 100 tables currently being generated. So I am ruling this out
    b. This is my most likely approach: I will create an xsd from a large data set and then manually adjust any inconsistencies I find.

    Thank you Arthur
    I previously tried testing w/ DataViewer.  The issue is that no rows are retrieved or inserted so there is no data to view.
    When I was referring to the versions I was really meaning each new release.  These are important if there are element changes.  Regardless, it does not seem to have an impact.
    And I understand the problems w/o having concrete examples.  
    I found this article noting the issue and providing documents that should create the same issue. I did not test his documents since I know what the issue looks like.  
    But it's back to question #1 in that I have not been able to find any articles stating why.  I would greatly appreciate any insite.
    Here is the excerpt:
    "In the below example, I am using sample "purchase order" and "customers and orders" XML files which can be downloaded from the MSDN
    site: http://msdn.microsoft.com/en-us/library/bb387034.aspx andhttp://msdn.microsoft.com/en-us/library/bb387025.aspx respectively.
     I also downloaded related XSD files at: http://msdn.microsoft.com/en-us/library/dd489284(v=vs.110).aspx and http://msdn.microsoft.com/en-us/library/bb675181.aspx.
    Both of these XML files are moderately complex with several layers (or nested) values. Unfortunately, as an XML file's hierarchy structure and complexity increases, often times the supplied XSD file do not parse and load the data correctly. Often
    the load will occur without error, however no data is transferred. Thus, the Generate XSD button will need to be used to generate a new XSD file to be used for importing. The Generate XSD process works well most often, but you may need to adjust it for
    special cases within your XML file."
    Here is the url: http://www.mssqltips.com/sqlservertip/3141/importing-xml-documents-using-sql-server-integration-services/

  • Country-State-City hierarchy is driving me crazy ( duplicate attribute key errors)

    hi guys:
      I've a dimDesitination dimension and inside this dim , I have 4 attributes, dimDest_ID, country, state and city,
    my goal is pretty simple, create a hierarchy country-state-city .
    I've made sure there are no NULLs in each column, also state and city attribute, I've created composite key 
    for example, for state attribute , the key column is (country , state)
    for city attribute, the key column is (country, state , city)
    when the source dim table contains small number of data, every is fine and process full did succeed.
    However, when the raw dim table gets bigger( more data comes in), the process full starts to give me error msg
    says duplicate attribute key errors....   this is painful as I did check the raw table but no duplicate key found ever
    any comments?
    thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Hierarchy Extraction using Open hub Destination

    Hi,
    I need to extract hierarchy data for Application code(YAPPLCD) using OHD. In the Hierarchy there are 4 components(Industry, Market, Application Group and Application Code). i need to get all the 3 details for the Application Code(i.e to which Indusrty does it belong, Market and Application Group).But HIerarchy table is having one record for each apllication code, Market, Application Group, Application code.
    How to get relevant data for the application code?
    My file format should be:
    Appl.Code | Appl.Group | Market | Industry.

    Hi Suma...
    The SAP Open Hub service enables you to distribute data from an SAP BI/BW system into external data marts, analytical applications, and other applications. With this, you can ensure controlled distribution using several systems. The central object for the export of data is the InfoSpoke. Using this, you can define the object from which the data comes and into which target it is transferred, leveraging SQL Server Integration Services (SSIS) as the transfer/transform mechanism. 
    SAP BI objects such as InfoCubes, ODS objects, or InfoObjects can act as open hub data sources. You can select database tables or flat files as open hub destinations, and then use those destinations as actual sources within SSIS.  To automate the extraction using SAPu2019s Open Hub Service, youu2019ll need to setup a process chain. Note that both a full and delta modes are also available as the extraction mode.
    As stated already with direct extraction from SAP R/3, once data is extracted out of SAP NetWeaver® BI (SAP BW), the destination of that data could be any relational database (such as SQL Server), and then reports (from SSRS) and multi-dimensional cubes (from SSAS) can be created from that database data.  The resulting SQL Server reports/cubes could then be used within the Microsoft Business Intelligence delivery mechanisms, such as through Excel, SharePoint, PerformancePoint, etc.
    Hope this below link may helpful
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c08b1f70-6fb1-2b10-97a5-df4c503e03cb
    Regards
    Sudheer

  • Import row based complex csv or excel to DB using SSIS

    What is the best approach to deal with complex row based object hierarchy in CSV or Excel file in importing into DB?
    eg. We have the following CSV or Excel data (Pipe delimited and \r\n separate a new row):
    START|\r\n
    MEMBER|Mr|John|Lee|\r\n
    INSURANCE|2015-1-15|LIFE|\r\n
    END|\r\n
    START|\r\n
    MEMBER|Ms|Mary|Scott|\r\n
    INSURANCE|2015-1-10|LIFE|\r\n
    END|\r\n
    Here each START/END marks one record. The final goal is to transform it into an XML like this:
    <Members>
       <Member>
         <Title>Mr<\Title>
         <FN>John<\FN>
         <LN>Lee<\LN>
         <Insurance>
             <Join_Date>2015-1-10<\Join_Date>
             <Category>Life<\Category>
         <\Insurance>
       <\Member>
       <Member>
       <\Member>
    <\Members>
     Thanks for any input.

    Hi awlinq,
    There is no direct option for converting Excel to XML. There are two common methods to achieve this requirement:
    Create a schema defines the structure of the XML file based on the requirement as XML Source, then use this it to format the excel file to XML file in Microsoft Excel. For more details, please refer to the following blog:
    http://www.excel-easy.com/examples/xml.html
    Store data into a SQL table and then convert it into XML by using bulk copy utility (BCP) and FOR XML syntax with T-SQL query. The following links are for your references:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/bbc70f56-1421-4970-a3c8-c03e990e0054/convert-ms-excel-file-to-xml-using-ssis?forum=sqlintegrationservices
    http://www.codeproject.com/Tips/239156/Export-data-from-SQL-Server-as-XML
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • When drag date hierarchy into excel, it list all years , is there anyway to suppress?

    hi , I've created a cube with fact tables and a few dim tables. One of dim is DimDate and I've created a hierarchy year-month-day,
    pretty simple. When I drag this hierarchy to measure sales Amount, it lists all years from 1900 till 2599...  As a matter of fact,
    this cube only contains data of 2014.. is there anyway to only show those data with data?  
    It must be a property setting inside SSAS which I am not aware of.
    thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    According to your description, Joson's suggestion is exactly right. We can apply custom filters to control the way that rows are displayed. Rows that do not meet the filtering criteria are hidden. You can filter by one or more columns. Please refer to the
    link below.
    Filter Data in a Table
    Besides, we can apply filters when you import data to control the rows that are loaded into a PowerPivot table. For more information on filtering during import, please refer to the link:
    Change the Rows that Are Imported from a Data Source.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Where can I find a tutorial about Show Folders Hierarchy?

    I have Permiere Elements 11 which also has the Elements Organizer as part of the program. And I have Photoshop Elements 10 also. The Elements Organizer with the video editing program is what I'm interested in though. I think my folder hierarchy is not right. I'd like to straighten it out but I don't know how. Can someone direct me to a tutorial on how to work with the Folders Hierarchy.
    This might be a different question, but it might be related to my confusion about the Folder Hierarchy in the Organizer. On June 10 I was copying some photos from my hard drive to the Organizer - probably a dumb thing to do. While I was doing this, the Pictures folder (View and organizes digital pictures) no longer took me to all my photos on the hard drive. The Pictures folder is under Personal Folder, Documents, Music, Control Panel on the Windows 7 desktop to the right of the Start Menus stuff.
    When I click on Pictures now I get two folders: Adobe and Pictures. The Adobe folder has these values - Size: 0 bytes; Contains: 0 Files, 1 Folder; Created: Monday, June 10, 2013; Attributes: Read-only (only applies to files in the folder. I deleted the Abobe folder several times but it keeps coming back.
    What I would really like to do is to restore my Pictures folder to its original state so that I will have access to all my hard drive photos immediately instead of clicking around in those folders. I vaguely think that something I did to the folder hierarchy in the Optimizer has messed up other things on my computer.

    You wrote, "So if you moved the files, what you need to do is move them back..."
    I don't know how to do this. Could you tell  me how. I moved about 50 photos into the Organizer. Now I know I should not have done this. I'd like to correct the mistake.
    When I click on the Show Folder List icon this is what I see:
    My Pictures
         Pictures
              Faces
                   Clowns
         My Videos
         Computer
                   C:
                   Program Data
                   Users
                        Tommy
                              Faces
                                   Dancing
                                   Faces
                                   Lovers
                                   Racing
                                   Tommy
                         Pictures
                  D
                  E
                  F
                  G
    This makes no sense to me. But I could live with it - except perhaps something I did has made my PrE11 impossible to work with. When I put new clips via the memory card into the program, they do not go into the Timeline. All I get is an error message.
    I like the Adobe programs and don't want to give up on them, especially since my problems probably have been self-imposed.

  • How can I load a .xlsx File into a SQL Server Table using a Foreach Loop Container in SSIS?

    I know I've REALLY struggled with this before. I just don't understand why this has to be soooooo difficult.
    I can very easily do a straight Data Pump of a .xlsX File into a SQL Server Table using a normal Excel Connection and a normal Excel Source...simply converting Unicode to DT_STR and then using an OLE DB Destination of the SQL Server Table.
    If I want to make the SSIS Package a little more flexible by allowing multiple .xlsX spreadsheets to be pumped in by using a Foreach Loop Container, the whole SSIS Package seems to go to hell in a hand basket. I simply do the following...
    Put the Data Flow Task within the Foreach Loop Container
    Add the Variable Mapping Variable User::FilePath that I defined as a Variable and a string within the FOreach Loop Container
    I change the Excel Connection and its Expression to be ExcelFilePath ==> @[User::FilePath]
    I then try and change the Excel Source and its Data Access Mode to Table Name or view name variable and provide the Variable Name User::FilePath
    And that's when I run into trouble...
    Exception from HRESULT: 0xC02020E8
    Error at Data Flow Task [Excel Source [56]]:SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occured. Error code: 0x80004005.
    Error at Data Flow Task [Excel Source [56]]: Opening a rowset for "...(the EXACT Path and .xlsx File Name)...". Check that the object exists in the database. (And I know it's there!!!)
    I don't understand by adding a Foreach Loop Container to try and make this as efficient as possible has caused such an error unless I'm overlooking something. I have even tried delaying my validations and that doesn't seem to help.
    I have looked hard in Google and even YouTube to try and find a solution for this but for the life of me I cannot seem to find anything on pumping a .xlsX file into SQL Server using a Foreach Loop Container.
    Can ANYONE please help me out here? I'm at the end of my rope trying to get this to work. I think the last time I was in this quandry, trying to pump a .xlsX File into a SQL Server Table using a Foreach Loop Container in SSIS, I actually wrote a C# Script
    to write the contents of the .xlsX File into a .csv File and then Actually used the .csv File to pump the data into a SQL Server Table.
    Thanks for your review and am hoping and praying for a reply and solution.

    Hi ITBobbyP,
    If I understand correctly, you want to load data from multiple sheets in an .xlsx file into a SQL Server table.
    If in this scenario, please refer to the following tips:
    The Foreach Loop container should be configured as shown below:
    Enumerator: Foreach ADO.NET Schema Rowset Enumerator
    Connection String: The OLE DB Connection String for the excel file.
    Schema: Tables.
    In the Variable Mapping, map the variable to Sheet_Name, and change the Index from 0 to 2.
    The connection string for Excel Connection Manager is the original one, we needn’t make any change.
    Change Table Name or View name to the variable Sheet_Name.
    If you want to load data from multiple sheets in multiple .xlsx files into a SQL Server table, please refer to following thread:
    http://stackoverflow.com/questions/7411741/how-to-loop-through-excel-files-and-load-them-into-a-database-using-ssis-package
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Hiding a hierarchy column in graph view

    Hi All,
    In an compound layout I would like to have pivot view and bar chart view.
    There are two hierarchy columns in criteria. These column should display in pivot view.
    My requirement is to hide the hierarchy columns in Bar chart view and can we apply separate selection steps for each view.
    Kindly help me..
    Thanks,
    Haree

    Hi,
    Edit the pivot table and graph and at the below you can see the selection steps for the individual components. So that you can give separately for each of the components.
    Hope this helped/ answered.
    Regards
    MuRam

  • Error in loading a Hierarchy

    When we are loading a hierarchy in the BW system, we get the following error :
    Error in the hierarchy structure: see error log.
    We tried activation of the hierarchy data source then rerun the load. Still it fails with the same error.
    Please let us knwo if any one has inputs regarding the same.

    Please go through the following SAP Notes.
    [Note 1266877 - BW hierarchy error when loading|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1266877]
    [Note 384945 - BW: Incorrect hierarchy extraction for 0REOBJ|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=384945]
    You will also find plent of threads with the same issue. Just search with the key words from the Error Log.
    Regards,
    Gaurav

  • Error while assigning a foreign hierarchy characteristic

    Hi Guys,
    When trying to insert a characteristic node to a hierarchy, it gives me an error saying 'info object OHIER_NODE not entered for /SI/SS_O356(where the hierarchy is being maintained) as a foreign hierarchy characteristic' .Is there anything else that i need to maintain ?
    Can someone please help me get out of this  message
    award will be provide for correct answer
    Thanks

    Hi,
    Have you got the solution for your problem?  .If so, may i know how did you solved it.
    If not, please do not make thread as answered ,it misguide us that you got solution.
    With rgds,
    Anil Kumar Sharma .P

  • Error While executing a SSIS package which contains a script task through SQL Server Agent job

    Hi,
    I have a SQL Server 2012 SSIS package with a script task along with other tasks [data flow, execute sql tasks ]. When I manually executed the job through BIDS, its completed successfully. 
    Then I have automated the execution of the package through SQL Server Agent Job. But when I executed the package through SQL Agent job, it runs successfully for all the tasks except script task. When it comes to execute the Script Task, it is getting failed
    with the below error message.
    "Error: 2012-08-29 12:45:14.67
       Code: 0x00000001
       Source: Script Task 
       Description: Exception has been thrown by the target of an invocation.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started:  12:45:10 PM
    Finished: 12:45:14 PM
    Elapsed:  4.353 seconds
    I have installed the SSIS on the 64-bit environment and SSIS service is running. Also I tried to run the job through 32 bit [job option] but I am getting the above error in all cases.
    Any help will be greatly appreaciated !
    Thanks,
    Navin
    - naveen.reddy

    Hi Arthur,
    My script task access the excel files in a network share, refresh them all and save them. When I execute the ETL manually or thru DTEXEC, it is executing successfully. I am facing the issue when I am executing thru SQL Agent Job only. Logging also showing
    the same error.
    "Error: 2012-08-23 12:45:14.67
       Code: 0x00000001
       Source: Script Task 
       Description: Exception has been thrown by the target of an invocation.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started:  12:45:10 PM
    Finished: 12:45:14 PM
    Elapsed:  4.353 seconds
    - naveen.reddy

  • Excel Connection Manager suddenly can no longer connect to Excel from SSIS package

    <p>During the last 3 months, I used 32 bit SSIS 2008 (v 10.50.2500.0) on an WinXp machine (v 5.1.2600 SP3 Build 2600) to create a package that writes multiple query results (reports) to an excel spreadsheet. Each report is written to a different
    tabbed sheet in the same spreadsheet. </p><p>The package was&nbsp;working just fine until May 9 2013, when suddenly every single&nbsp;Data Flow task with an Excel Destination&nbsp;displayed error icons and raised the&nbsp;following
    error message when opening the Advanced Editor:</p><p>SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005 Description: "Unspecified error". <br />Error at &lt;DataFlow task name&gt;: SSIS
    error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager &lt;Excel connection Manager&gt; failed with error code 0xC0202009. There may be error messages posted before this with more
    information on why the Acquire Connection method call failed. Exception from HRESULT: 0Xc020801c (Microsoft.SQlServer.DTSPipelineWrap)</p><p>Originally the error message reported that the Error Code was "0x8000FFFF", but I can't seem
    to reproduce that error code since. Now I am only getting the above error message.</p><p>From the time I created the original package (when it worked fine) until now, I have been using the same computer, writing to a (32 bit) 2010 Excel file in
    a local folder. The filename and location have not changed. The ConnectionString has not changed. The Connnection String I am using is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Conversion\Conversion Results_dt01.xlsx;Extended Properties="EXCEL
    12.0 XML;HDR=YES;". </p><p>Now an attempt to create and test a NEW Connection Manager yields me this error. "Test connection failed because of an error in initializing provider. Unspecified error.",&nbsp; whereas before I had
    no problems creating a new connection manager.</p><p>I checked a second SSIS package, which I also built during the past 3 months, which loads multiple sheets from multiple Excel files to a SQL Server 2008 database holding table. It uses the same
    ACE OLE DB 12.0 connection to load the Excel speadsheets and this package continues to work fine on the same workstation.</p><p>In desparation, wondering if the Microsoft ACE OLE DB 12.0 driver had become corrupt (even though the second package
    was raising no errors), I did download and install the Microsoft ACE OLE DB 12.0 driver.&nbsp; That did not solve my problems with the first package.</p><p>I need to get this package running again ASAP as it is targeted for UAT testing in a
    matter of days. Any help with this issue would be greatly appreciated!</p>

    I submitted this issue above and now I am having the same problem again. I am using the same local computer, the same operating system (WinXp v 5.1.2600 SP3 Build 2600) as originally described. I am working with the same SSIS package that
    writes multiple query results (reports) to an excel spreadsheet. This package has been successfully executed multiple times, but now I am suddenly getting the same error as follows:
    Error at 1ConversionContacts [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Access Database Engine"  Hresult: 0x80004005  Description: "Unspecified error".
    Error at DFlow Write soft deleted duplicate claims to Excel sheet [Excel Destination - write duplicate claim nbrs that have been removed to Excel [61]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method
    call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    The package will not run because of these multiple errors (multiple because it occurs on every single excel destination in the package).
    I have Run64BitRuntime set to false on the project. I have triple checked that the excel file name (which I created and can access) exists with the correct name in the correct path, which is local on my machine. The file is the same file in the same
    location as when the package worked.  I am running the SSIS service under my own network login, as I was when the package worked. I have been consistently getting this same error whenever I change my network password without updating the password
    in the SSIS service, but I have triple verified that the service is using my latest password. If I try to open and edit the Excel Destination in any DataFlow task I get the same error. I can successfully create a new Excel Connection Manager pointing
    to the same excel file. However if I try to assign the newly created Excel Connection Manager in the data flow, I cannot activate the drop down to choose the Excel sheet without getting an 'Unspecified error' message. I then swapped out
    the file with its template version, and ensured the name was updated as correct. I still get the same errors.
    Oh, and the SSIS package is extracting data from a SQL Server 2008 database with an ADO.net Connection Manager using Windows authentication. I have no problems with the SQL Server connection, it has always worked and still does.  It is only
    the connection to excel output file which is locally stored on my machine.
    Has anyone got any suggestions for me?

  • Issue with creation of SSIS package - reading from XML

    Good Morning,
    having a slight difficulty here and more than this, am afraid solution is pretty straight forward. I am trying to read an XML-file and save the rows to a CSV file (late ron it should be sent to SQL-database).
    Am having this input XML
    <?xml version="1.0" encoding="utf-16"?>
    <DataSet>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="ROW">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="COLUMN" type="xs:short" minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    <NewDataSet>
    <ROW diffgr:id="ROW1" msdata:rowOrder="0">
    <COLUMN>1</COLUMN>
    </ROW>
    <ROW diffgr:id="ROW2" msdata:rowOrder="1">
    <COLUMN>2</COLUMN>
    </ROW>
    </NewDataSet>
    </diffgr:diffgram>
    </DataSet>
    but when running the SSIS-package, I get this
    no errors are shown, but also no rows are written/processed.
    Why is nothing read here?

    by the way, when I split the schema and the XML data, having those 2 files
    data.xml
    <?xml version="1.0" encoding="utf-8"?>
    <NewDataSet>
    <ROW >
    <COLUMN>1</COLUMN>
    </ROW>
    <ROW >
    <COLUMN>2</COLUMN>
    </ROW>
    </NewDataSet>
    schema.xsd
    <?xml version="1.0"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" name="ROW">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="COLUMN" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    then result is fine

  • Creation of new product hierarchy and products in SAP CRM.

    Dear all,
    please help with resolving of following issue:
    In CRM system base hierarchies were replicated from R/3 system with materials. Current requirement is to create new materials in CRM directly (as standalone scenario). As far as I understand, I have to create new hierarchy with required list of set types in order to allow creation of products in CRM directly (product type = material). Can anybody describe changes in the system step by step, what should be changed and where?
    As a result I need to have a possibility to create products in CRM directly for sales scenario processing.
    Thank you in advance!

    Hi Jorge,
    thank you so much for your reply!
    Here what I tried to do:
    1. I created new category in hierarchy R3PRODSTYP, added 3 set types: COMM_PR_MAT, COMM_PR_SHTEXT, COMM_PR_UNIT as basic set types.
    2. In the SPRO - Cross-Application Components - SAP Product - Settings for Product Type - Number Assignment - Define Number Ranges for the Product Type "Material" I found my new product category is unassigned, so I assigned it to the "CRM Products" group.
    3. Farther I tried to create a new product for created category in CRM Web UI, but was not able to find it in the Base category search field. All categories correctly displayed from R3PRODSTYP, but my new category is absent. What can be the reason of category absence? Btw, it cannot be found even when I try to display whole hierarchy in Web UI, however, in SAP GUI, it can be seen via tcode comm_hierarchy.
    Here is the setup of hierarchies in the system:
    I have no idea how to check #3 "Ensure the hierarchy is assigned to CRM application".
    Can you please suggest, what should be changed in addition? Thank you!

Maybe you are looking for

  • SAX and XML file, how to?

    Hi, I'm going to use JAXP and SAX to read my application XML config file. But I'm lost, I don't know how to read the elements. How does it function, do I have to put in the startElement() method as many "if" as entitys I need to process? And how can

  • Logging the Userid ... what is the best approach?

    Hi guys, I have a hard time to decide on the best approach to audit user information. Consider the the usual information you use for auditing purposes. Normally you have the columns: created_on created_by updated_on updated_by In an Apex application

  • IMessage crashes on launch

    i have ipod touch 4th generation wiht ios 6.1.3 and i went to use iMessage in a group chat, which i had been chatting in for a while, and it crashed upon opening. i got an opening screen, but then it crashed. i have tried restarting ipod, i have trie

  • I don't understand how to sign in to Revel using Google or Facebook

    You told me to sign in with Google or Facebook but my mailing address is different on those app then the one that you got conneted to your company when I sign up on Adobe Revel. The address i sign up with is email1 NOTemail2.  Plus i have already pai

  • Compressor never finishes

    Has anyone else had problems with Compressor never finishing jobs? I took a load of HD video with my Canon 7D at the weekend and I used Compressor to make the resulting files smaller for sharing. However, when I originally submitted all 10 compressio