Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

*Got error when trying to EDIT a SSIS package in Visual Studio 2008

$
0
0

Hi,

 We tried to Edit a existing SSIS package in Visual Studio 2008(w SP1), but getting below error.
The SQL BIDS (business intelligence develpment studio) component is added on SQL server side.
Our SQL server is version 2008 where veriosn # is (10.0.5500.0).
and when we install VS2008, sql express is excluded.

error ------->      "Microsoft Visual Studio is unable to load this document"

thanks for your input in advance,


GWANG


How to import data from Microsoft Access 2010 to SQL 2008 through SQL Server Business Intelligence Development Studio

$
0
0

Hello team,

I am new to SSIS package and I am trying to learn

I am going to export data from Microsoft Access 2010 to Microsoft SQL Server 2008 R2.

I am getting this message:

Unrecognized database format 'C:\Users\Gina\Documents\House \ForImport.mdb'. (Microsoft JET Database Engine)

How can I fix this problem?

What are the steps?

Regards,

GGGGGNNNNN


GGGGGNNNNN

Error importing SharePoint 2010 list into SQL Server 2008 R2 database through SSIS

$
0
0

Hi,

I want to import SharePoint 2010 list data into a different SQL Server 2008 R2 database. The table structure for each list was created through exporting lists to excel and then using Import and Export wizard. I created an SSIS package usingSharePoint SSIS Adapter. When I execute the package to test from BIDS, I get following error through SendMail task:

Error code: -1073450910
Error description: System.Runtime.InteropServices.COMException (0xC0047020): Exception from HRESULT: 0xC0047020
   at Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSBuffer100.AddRow(IntPtr ppRowStart)
   at Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer.AddRow()
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)


Error code: -1073450952
Error description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "SharePoint List Source - SP Sample" (2806) returned error code 0xC0047020.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.



Error code: -1073450910
Error description: Microsoft.Samples.SqlServer.SSIS.SharePointUtility.SharePointUnhandledException: Unspecified SharePoint Error.  A possible reason might be you are trying to retrieve too many items at a time (Batch size) ---> System.ServiceModel.FaultException: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoap.GetListItems(GetListItemsRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.ListsService_ListsSoap_GetListItems(GetListItemsRequest request)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListsService.ListsSoapClient.GetListItems(String listName, String viewName, XElement query, XElement viewFields, String rowLimit, XElement queryOptions, String webID)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointListItems(String listName, String viewId, XElement queryXml, XElement viewXml, Int16 pagingSize, XElement queryOptionsXml)
   --- End of inner exception stack trace ---
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointListItems(String listName, String viewId, XElement queryXml, XElement viewXml, Int16 pagingSize, XElement queryOptionsXml)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.Adapter.ListsAdapter.GetSharePointListItemData(String listName, String viewId, IEnumerable`1 fieldNames, XElement query, Boolean isRecursive, Int16 pagingSize)
   at Microsoft.Samples.SqlServer.SSIS.SharePointUtility.ListServiceUtility.GetListItemData(Uri sharepointUri, NetworkCredential credentials, String listName, String viewName, IEnumerable`1 fieldNames, XElement query, Boolean isRecursive, Int16 pagingSize)
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)

BatchSize 1000 (some of the lists had 5000 records)

DelayValidation = True

Run64BitRuntime = False

Please point out what wrong am I doing.

Thanks in advance,

Puja


Puja

Dynamically construct URL for HTTP Connection Manager in SSIS Foreach Loop

$
0
0

Hi guys!

I have a problem with MS SQL 2012 SSIS.

I've created package that downloads time_line tweets from Twitter. I have a table with list of ScreenNames for twitter. In a table I have a computed column ConnectionString that holds the whole connection string for HTTP connections.

For example: sname=@JohnDoe&until=2013-06-23&since=2008-01-01&count=100&pages=100 

I use ScriptTask for downloading tweets.

I have a table with ConnectionStrings, I do Execute SQL task, execute Query, read ConnectionStrings into Object Variable Twitter_ScreenNames. I do For Each Loop container, I map variable ConnectionString to For each Loop Collection. Inside For Each loop I do Execute Sql task to see if my ConnectionString variable gets the right values. It does.

ConnectinString and Twitter_ScreenNames variables are package scope variables. I've set DelayValidation True for package and HTTP connection.

Inside HTTP connection I've created Expression task with property Server URL set to ConnectionString variable.

When I debbug the Script task the Connection String inside Script Task is empty though ConnectionString variable has a proper value.

I cannot get this thing working. If I mannualy encode Server Url property in HTTP task, everything works ok.

Do you have any idea what is wrong? I know I'm not the first person with this trouble, but I couldn't found the answer.

Take care.


Slowly Changing Dimension - MERGE

$
0
0

My source table looks like below: The records Code can change more than once is indicated within one day

BusinessKey Code CreatedDate

100              ABC  2012-02-25 08:36:38

100              DEF  2012-02-25 08:40:21

100              GIJ  2012-02-25 08:43:21

We need to keep a track of the Code as it changes and our final table should look like:

SurrogateKey BusinessKey Code StartDate                          EndDate

1                   100              ABC  2012-02-25 08:36:38      2012-02-25 08:40:21

2                   100              DEF  2012-02-25 08:40:21      2012-02-25 08:43:21

3                   100              GIJ  2012-02-25 08:43:21       2100-12-31 00:00:00

I need to load this in SQL Server 2008 R2 using a merge statement

Loading the text file with different type of Data

$
0
0

Hello All,

I have to load the below format textfile using SSIS in 3 different tables, each for M1,M2 and M4.

But while populating the M2 and M4, i have to copy the MemberID from the M1 record.

Can some one help please

M1,CHG IND,MEMBER ID,LAST NAME,FIRST NAME,MID INIT,GENDER,BIRTH DATE,PRIM MBR ID,SPAUSE/DEPEND IND,PARTA END DT,PARTB END DT,RECORD PERIOD
M2,CHG IND,ELIG DATE,ENROLL CD,BEN PLN RID ID,BEN SET SEQ NO,LINE OF BUSINESS,RIDER OPT
M4,CHG IND,MED CENTER ID,PC PCP ID,PC DATE,PC LAST NAME,PC FIRST NAME,PC MID INIT
M1,N,ABCD00001,John         Smith, ,F,09/07/1964,ABCD00001,P,00/00/0000,00/00/0000,04/25/2013
M2,N,20120401,10,P1CHP1,073,MD,CB
M2,N,20120401,10,P1CHP1,073,MD,CB
M2,N,20120101,10,P1CHP1,073,MD,CB
M2,N,20111001,10,P1CHP1,049,MD,CB
M4,N,0835           ,123456         ,09/02/2009,rajeev                       ,klmnop         ,
M1,N,ABCD00002,John         ,ACEVEDO        ,LUCIA          ,,F,02/26/1955,ABCD00002,P,00/00/0000,00/00/0000,04/25/2013
M2,N,20120801,14,P1CHP1,073,MD,CB
M2,N,20120801,61,P1CHP1,073,MD,CB
M2,N,20120401,10,P1CHP1,073,MD,CB
M2,N,20120401,10,P1CHP1,073,MD,CB
M2,N,20120101,10,P1CHP1,073,MD,CB
M2,N,20111001,10,P1CHP1,049,MD,CB
M4,N,0834           ,123456        ,03/05/2012,ABCDEF                         ,GHIJK        ,K
M4,N,0834           ,1234567         ,08/26/2011,RAM                      ,gggggg       ,



How to load data from Google analytics to SQL SERVER 2005

$
0
0

Hi All,

Is there any solution to  load data from google analytics (API) to SQL Server 2005.

Many Thanks

Anil


Laky

SSIS error importing date column from flat file

$
0
0

Hi,

I have a tab delimited flat file as below (only extracted the header and first row):

BusinessEntityID PersonType Title FirstName MiddleName LastName Suffix TerritoryName CountryRegionCode TerritoryGroup EnglishEducation EnglishOccupation BirthDate Gender MaritalStatus EmailAddress FullName ValidFrom
1 EM  Ken J Sánchez  Northwest US North America N/A N/A  N/A N/A  Ken Sánchez 22/06/2013

The flat file connects to a OLE DB Destination. When I executed the package, I got errors below:

When executed the package, I import the file into the database,

[OLE DB Destination [92]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".

[OLE DB Destination [92]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[BirthDate] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed the specified type.".

I have tried several scenarios to identify the root cause:

1. when the Birthdate contains a date value, the package executed successfully

2. When there is no value for Birthdate, the package fail with the above errors.

I have tried using Derived Column to get around the error, but in in vain.

Did anyone had similar experience importing Flat file with Date columns to database table?

Cheers,

PeiWai


Strange issue with SSIS 2005 designer - sequence container moves all but one task

$
0
0

I have a number of data flow tasks in a sequence container.  A few minutes ago, I moved it in the designer, and all but one of the data flow tasks moved along with the others.  Anyone ever run into this?  the dataflow tasks are connected to each other. 

I ended up just deleting that task, and re-adding it, but something didnt seem right about the way it "suddenly" wasn't part of the container any longer.

I suspect that if I had looked in the code for the DTSX file, and compared it to the other tasks, it probably would have shown it was not in the same container.

SSIS on Export convert data to HTML

$
0
0

HI,

I have a data in a column that contains HTML data. I need to convert them into String.

For Example:

I need to convert Qualitätspolitik  -->  qualitätspolitik

I need to convert Alzheimer’s  --> alzheimer’s

I need to convert reducirán -->reducirán

Can i do this with SSIS on export to .txt or .csv converting the data. The above are just examples . I got more of such data.

Any help would be great.

Regards,

PS


Regards, PS

SSIS error Failed to start project...

$
0
0

Hi all,

I created a simple package in SSDT(SSIS) 2012 and configuring it with xml configuration.

i am getting the following error

TITLE: Microsoft Visual Studio
------------------------------

Failed to start project

------------------------------
ADDITIONAL INFORMATION:

The package has been modified since the last build. Build the project and try again.
 (Microsoft.DataTransformationServices.VsIntegration)

With out xml configuration,it is working fine.Do any 1 has idea about this ??

Regards

Shoeb

SSIS Package Fails to create a folder on a share drive

$
0
0

Hi,

I have a ssis package which runs ok on my bids   and creates some folders on shared drive of another server,I have imported the package  to  my test  ssis server  to msdb folder ad tried to run there manually  by remote loging on to the test server  , the package fails to create the folder with access denied message,I,m guessing its a  permission  issue ,what permission do i need on the test server ,also if i   schedule this package  from sql agent what permission do i need to ask  from the network team to create the folders on the shared drive of the third server.

Many Thanks

Unable to see global temp table in OLE DB Destination

$
0
0

I'm unable to see/view global temp table in OLE DB Destination.

I'm first creating SQL Task to create temp table. Then in DFT ,Im using OLE DB destination which should point out to that global temp table which I created in SQL Task.

Also, I have set the destination connection property " RetainSameConnection" property to TRUE.

Here is the script for sql task:

IF OBJECT_ID('tempdb..##tmpTeams') IS NOT NULL DROP TABLE ##tmpTeams

CREATE TABLE ##tmpTeams ( Team VARCHAR(255), Mascot VARCHAR(255), State VARCHAR (2) )

Please let me know , if Im making mistake somewhere. Your help is appreciated.


ZK

SSIS 2012 - System::ServerExecutionID always 0

$
0
0

Hello,

I am writing a SQL Server 2012 data warehousing solution. I need to use the ServerExecutionID to return some information from the Catalog. I have a T-SQL which simply asks this:

SELECT Environment_Folder_Name, Environment_Name FROM [Catalog].[Executions] WHERE Execution_Id = ?

The parameter is fed by System::ServerExecutionID. However, the task always fails to return anything, because the ServerExecutionID is never set. When I debug, breaking at the SQL Task OnPreExecute phase, I see ServerExecutionID = 0 in my Watch window. (I'd post a picture, but can't do that yet :-( )

Can anybody tell me what I am missing? I see some links on SSIS-Junkie which call this variable out, but with better results.

Thanks,

-Mikah

column has identity but package throws error can not insert value NULL in column?

$
0
0

I have Identity on the primay key column ABC, checked in table design under column properties also. in destination no mapping for that column. using correct connection. dont know why SSIS package keep throwing error,

Cannot insert the value NULL into column 'ABC', table 'Dbname.dbo.TableName'; column does not allow nulls. INSERT fails.



Split one column into multiple columns - Script Task (SSIS)

$
0
0

Hi, I have one column coming from a source. This column (columnX) has 5 comma separated values (all together). I want to split this column into 5 columns using Script Task.

Has anyone done this before? I reviewed the code posted in this thread (http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2eb394d0-2cd8-4402-9bb4-14a03ccc4460/split-flat-file-column-data-into-multiple-columns-using-ssis) but not quiet getting it. Anyone know how to do this in C#?

Thank you

edit, this is what I am trying.

How to run a configuration with environment variable (indirect XML configuration file)?

$
0
0

How can I run a configuration with environment variable (indirect XML configuration file)?  Normally, if I have a configuration file created on the computer, I can double click on the package file and add configuration file(s) in the Execute Package Utility and execute it.  But when I have a configuration with environment variable, no physical (or viewable) file is available, so how can I execute this particular configuration?


BI Analyst

SSIS and the FOREACH LOOP and no Connection String Property

$
0
0

Hello!

I am tryng to set up a Foreach Loop. I have everything configured properly but the Expression Property does not have Connection String in it as is shown in several examples. Anyone have any suggestions?

Thanks
Mike


Mike Kiser

DT_TEXT in Script/C# - SSIS

$
0
0

Hi,

I would like to read data from DT_TEXT/NTEXT and write data to DT_TEXT/NTEXT using script task/component. Is this possible to do? I know for str/wstr, we have to use ToString() but what about TEXT/NText?

Thank you

Edit: I have multiple rows coming into the script component/task with DT_Text/NText data type and I am trying to use them to perform some operation and write to DT_Text/NText data type columns.

FireInformation doesn't

$
0
0

I am calling FireInformation in the PostExecute event of a Script Transformation configured as a destination (SSIS 2012, C#).

The output will only appear (in the output window) if I place a break point somewhere in the code, otherwise nothing appears besides the standard SSIS output. Multiple calls are all ignored, also.

Is there a project property that controls this output? Any ideas?


Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>