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

The column delimiter for column 'xxxx' was not found

$
0
0

Hello,

I am facing an issue "The column delimiter for column 'xxxx' was not found" in SSIS. I have imported SSIS package in MSDB of SQL Server 2014. It was working well in SQL Server 2012. 

Please help.

Thanks,




SSIS Script Task Version Compatibility Issue

$
0
0

I have create simple SSIS package(only script task)

and I build and run the SSIS package from visual studio this works without any issues.

In the same package I have deployed in Sql server(SSISDB) and I’m trying to execute the package getting below error.

I have faced issue only script task, don’t have any issues with other SSIS tools.

Please help me how to resolve this issue.

Configuration:

Sql server version : Microsoft SQL Server 2016 (RTM) - 13.0.1601.5 (X64)  Apr 29 2016 23:23:58  

Copyright (c) Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> .

SQL Server Data Tools : 2015

Integration Services : SQL Server Integration Services 13.0

Microsoft .Net framework version : 4.7

Set Target server version : Sql Server 2016

Script Task Template Path :  

               C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\VSTA14_IS_ST_CS_Template.vstax



Thanks,

Krishnan



Version incompatibility for script task called from a Dataflow

$
0
0

I have a SSIS 2016 package I can run fine from Visual Studio 2015 but when I run from the catalogue or a step in a SQL Server Agent job it fails.

There are a number of error message the first of which is "The version of ..... is not compatible with this version of the DataFlow. [[The version or pipeline version or both for the specified component is higher than the current version. This package was probably created on a new version of DTS or the component than is installed on the current PC.]]

The next error says "The component metadata for .... could not be upgraded to the newer version of the component. The PerformUpgrade method failed."

Firstly, what exactly is causing the version problem - the dataflow, the component or some other software on the SSIS server? I'm not entirely sure from these error messages.

Secondly, could this be an issue around the .NET version on my Visual Studio development machine and the server running the package? It is 4.6.2 on the SSIS server (which is Windows Server 2012 R2) and 4.6.1 on my development machine (also 2012 R2)? To me that doesn't seem likely given the small difference in versions.

What other software should I be looking at around this?

Would be wonderful if somebody has the answer to this one as it's driving me nuts. :-)


Nick Ryan MIS Programmer Analyst, ANZ Bank

The component metadata for "Script Component" could not be upgraded the the newer version

$
0
0

Hello,

I have install on my machine SQL Server Data Tools 2015, i create a new "Integration Service Project", Create a new package with a few script and other ETL work.

On my machine everything is working fine, meaning when i hit play all the action of the package are work fine.

Now, i wanted to run it through a SP on the server and when i execute the SP it gave me the error:

"The component metadata for "Script Component" could not be upgraded the the newer version"

I know that on the server installed SSTD version 2014.

What is the problem and how to solve it?

thank's


sub string

$
0
0

Hi,

I have the sub string : select monthly Ship Date changed from  12-30-2030 to 06-07-2019 .  Some time the date after to may be different between 4 digits and 2 digits, but the statement: select monthly Ship Date changed from stays the same.  I would like it to return only the date between from and to  which is 12-30-2030.

Thanks


load/update into table using ssis from xml file(no unique key)

$
0
0

Hi Sir,

I am loading data from xml file having without unique key into sql table with PK.It is inserting same records if it runs second time using ssis.

I need it as insert if new else update.

Cheers,

ER


using ssis from xml file

Unpivot and Parse Columns

$
0
0

Hello , 

I have a data that is set up like this

Group 1          Group 2         Group 3       Group 4        Group 5  ......................... Group 16

a,b,c,d,e,f        a,b,c,d,e,f     a,b,c,d,e,f     a,b,c,d,e,f      a,b,c,d,e,f                         a,b,c,d,e,f

The output I am looking for is 

Group Number    Group Value             column 1       column2  column3    column 4   column 5   column 6

Group 1             a,b,c,d,e,f                  a                    b            c              d              e               f

Group 2             a,b,c,d,e,f                  a                     b            c             d               e               f       

Group 3             a,b,c,d,e,f  

Group 4            a,b,c,d,e,f  

Group 5             a,b,c,d,e,f  

Group 6            a,b,c,d,e,f  

Group 16          a,b,c,d,e,f                 a                       b         c             d                e                f

How can I achieve this output?


Unpivot and Parse Columns

$
0
0

Hello , 

I have a data that is set up like this

Group 1          Group 2         Group 3       Group 4        Group 5  ......................... Group 16

a,b,c,d,e,f        a,b,c,d,e,f     a,b,c,d,e,f     a,b,c,d,e,f      a,b,c,d,e,f                         a,b,c,d,e,f

The output I am looking for is 

Group Number    Group Value             column 1       column2  column3    column 4   column 5   column 6

Group 1             a,b,c,d,e,f                  a                    b            c              d              e               f

Group 2             a,b,c,d,e,f                  a                     b            c             d               e               f       

Group 3             a,b,c,d,e,f  

Group 4            a,b,c,d,e,f  

Group 5             a,b,c,d,e,f  

Group 6            a,b,c,d,e,f  

Group 16          a,b,c,d,e,f                 a                       b         c             d                e                f

How can I achieve this output?

How to call SFTP using ssis script task

$
0
0

Hi Team,

Have stored sftp data into sql table as shown in bellow.


AccountNumberSFTPUserSFTPPasswordSFTPURLEmailIsActive
ACN1UserNamePasswordACN1.commail@google.com1
ACN2UserNamePasswordACN2.commail@google.com1
ACN3UserNamePasswordACN3.commail@google.com1
ACN4UserNamePasswordACN4.commail@google.com1
ACN5UserNamePasswordACN5.commail@google.com1
ACN6UserNamePasswordACN6.commail@google.com1
ACN7UserNamePasswordACN7.commail@google.com1
ACN8UserNamePasswordACN8.commail@google.com1
ACN9UserNamePasswordACN9.commail@google.com1
ACN10UserNamePasswordACN10.commail@google.com1

How to call the these many sftp server one by one using script task. Please help on this issue.


Thanks Bala Narasimha

Previously am using bellow script for calling sftp server

//scriptContent.AppendLine("# Connect to SFTP server using a password");
            scriptContent.AppendLine(string.Format("open sftp://UserName:Password@sftp.acn1.com/"));
            scriptContent.AppendLine(string.Empty);

            //scriptContent.AppendLine("# Upload file");
            scriptContent.AppendLine(string.Format("put {0}", "F:\\NewFolder\\@AccountNumber_" + theDate.ToString("yyyyMMdd") + ".csv"));
            scriptContent.AppendLine(string.Empty);

            scriptContent.AppendLine("# Disconnect");
            scriptContent.AppendLine("close");

But now have more than 20 sftp server to fetching data.

Character Limit - Export Data from SQL Server to Excel 12.0

$
0
0

Hello,

first of all, i'm sorry for my english and I'll appreciate any suggestion about this thread. I'm trying to export some data from SQL server database using OPENROWSET. Data source contains some fields filled with more than 255 characters. When i try to export these fields to excel I get "String or Binary data would be trucated" error. Here the code:

DECLARE @Folder VARCHAR(MAX) = '\\fileserver\test\''
DECLARE @DocumentLong VARCHAR(MAX) = 'Filename'

INSERT temp_table --ad hoc table for this query, created to simplify code
SELECT
	Field1,
	Field2,
	Field3 --this one contains more than 255 char; in temp table this field is declared as varchar(1000)
FROM database_table
WHERE filtered_field = 'value'
		
DECLARE @CMD1 NVARCHAR(4000)
SET @CMD1 = 'insert into OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 12.0;Database=' + @Folder + @DocumentLong + '.xlsx;'',''SELECT * FROM [Sheet1$]'')SELECT * FROM temp_table'

exec sp_executesql @CMD1

You can see that i'm using Excel 12.0 (where cells characters limit is 32,767) so i can't guess which is the problem.

Thank you.

The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found

$
0
0

I've got a package which reads a text file into a table and updates another.  I set up configurations so that I could import it into the SSIS store on both my dev and live servers.  Now, I'm getting this error.  I tried removing the configs and am still getting it.

I've been through each step and everything looks okay.  Does anyone have any idea (a) what's wrong, (b) how to localise the error or (c) get any additional information?  Or do I just have to recreate the package from scratch?

 

TITLE: Package Validation Error
------------------------------

Package Validation Error

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

Error at PartnerLinkFlatFileImporter: The connection "" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at PartnerLinkFlatFileImporter [Log provider "SSIS log provider for SQL Server"]: The connection manager "" is not found. A component failed to find the connection manager in the Connections collection.

 (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
BUTTONS:

OK
------------------------------

Unzip selective files over network shared drive using SSIS - I need a faster way to do it.

$
0
0

Hi,

I developed a package that uses execute process task for unzipping selective files based on their names. The SSIS package runs 6 different ForEach Loop Containers for each Type of Name and they run simultaneously. Each foreach loop has its own execute process task that will do the unzipping. The Executable is 7z.exe. The filetype is gzip or .gz file. My process sometimes takes 20 minutes to unzip 24 files around 8:30 AM or it took 50 minutes this morning around 4:45 AM. The file size is not too big, some of them are 24 mb, some are 33 mb, some are very small. Is there a faster way to unzip? Another thing when unzip the same files over on my local drive. It unzipped in few seconds. So please help me unzip faster. I am open to multiple solutions.

Thanks

DBTYPE_I4

$
0
0

I am getting the below error when I try to insert the system variable values ErrorCode and ErrorDescription into Audit table in Event handling part of SSIS

[Execute SQL Task] Error: Executing the query "INSERT INTO Audit_Backuplog(DatabaseId, Databas..." failed with the following error: "An error occurred while extracting the result into a variable of type (DBTYPE_I4)". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

The table has these columns defined as below  

ErrorCode  NVARCHAR(1000),
ErrorDesc NVARCHAR(2000)

I have the below expression in the exe sql task editor on Onerror event in Event handler 

"INSERT INTO Audit_Backuplog
(DatabaseId,
DatabaseName,
DatabaseBackUpPath, 
BkUpSuccessfull, 
BkUpDtTime, 
BkUpBy, 
PkgComponent,
ErrorCode,
ErrorDesc
)
VALUES
('"+(DT_WSTR,3)(@[User::DatabaseId])+"','"+
@[User::DatabaseName]+"','"+
@[User::DbBkUpPath]+"','No','"+(DT_WSTR,50)@[System::CreationDate]+"','"+
@[System::UserName]+"','"+
@[System::TaskName]+"','"+(DT_WSTR,50)@[System::ErrorCode]+"',RTRIM(LEFT('"+@[System::ErrorDescription]+"',1000)))"




Neil



DatabaseBackup

$
0
0

On SQL Server 2012 Version

I was trying to create a package to perform regular backup and archive of databases on my server.  I have created a table to store selected list of databases to be backed up, however I see that the backup database task is providing the drop down list to select the db.  Is there anyway to parameterized the db list?

Because I want to have control in table to decide which db to backup etc.  I have created object variable to hold the list of dbs using esql task, and defined couple of variables to catch these values in for each loop

I want to run backup of only those dbs which I list in the table (or flag with yes or no from db table)

 


Neil




SSIS Loop for SQL instances problem

$
0
0

I have several SSIS packages that loop to find instance permissions.  The problem I am having is some of the instances that are being processed in the loop are offline so I when I run the package in a job it fails or is incomplete because of the task failure.  When I run the package interactively through BIDS it is successful because I am masking errors.  I was thinking about doing a pre loop to find out which instances are online so there would be no failures in the package. 

Would it be best to run a pre-loop?  Or have a "on failure" flow that inserts the failed instance to a table? 

receiving streaming data in ssis

$
0
0
Hi I run developer 2017.  short of finding a way (if its even possible) to plumb power bi to a new streaming data source, what are my options in ssis for targeting a local or azure sql db to receive streamed data directly?  or alternatively how can a pkg receive streamed data at least into the buffer?  my understanding from Arthur z thus far is that we are in a program to program communication when we talk about streaming, outside the realm of normal packet (td?) transmissions.

SSIS - Flat File Connector Not Recognizing CRLF in Header

$
0
0

Good afternoon.  I could use another brain on the below issue:

I need to import a file with 4 different data types in it. I'm working just on the second data type as I was able to get the first one to work.  
The second data type is missing the first record after importing.

I found that in the transition from the first data type, the header record is not being read correctly.  I use a conditional split to determine which records to import.  It checks the value in the 2nd and 3rd column.  If a record matches a the required condition, they are included.

This doesn't work for the first record because the Header's line ending is not caught (CRLF). It is missed and the values in the 2nd and 3rd columns that should come from the record are from the header, as it overflowed into the first record.  
The CRLF is caught for the second record.  But the data is kicked over for the first record.  I've tried several settings and combinations of settings,

All of the other headers seem to be recognized. And they all seem to be there (in Notepad++), even the one header in question. I suspect the file, I've taken the CRLF out and added it back (in Notepad ++) in a new file, no change.  I don't see any other special characters in the file.

The Set Up:
SSIS on VS Enterprise 2017
Flat File Connector:
 - Ragged-Right
 - Header row delimiter: CRLF
 - Header rows to skip: 1 ,but I've tried 0
 - Column names in the first data row: not checked 'cause there aren't
 - Code page: ANSI 1252
 - Unicode: not checked
 - Advanced tab:
   o All columns are spelled out according the the required file layout

   o Added the last column with a Column delimiter of CRLF
     I find that there is data in this column even though the Input/Output width is 0.

  o Header delimiter: CRLF


Any ideas on what the issue might be?  

Thanks,
Rich 

 

Lost lineageID mapping after upgrading SSIS 2008 to 2016 in data conversion task

$
0
0

After upgrading seems like lineageId gets incorecctly mapped (or not changed for output) in "data conversion" task. Error is "cannot find input column with lineage id ...which is needed by.... Check SourceInputColumnLineageID custom property of the output column. Looks like input column gets "new" lineageId but property is not refreshed on output column in data conversion. Any ideas for fixing it besides manually?

If i take value from property from input column and set manually to output column it all works. I would expect to work without manual itervention.


Transferring geometry data using SSIS

$
0
0

Hello!

We need to refresh (i.e. re-copy) a table in a database in one instance of sql with a copy of the same table in another instance, using SSIS.

The only issue is that one column is of type GEOMETRY.

I have created the package - and it appears to transfer the value in the GEOMETRY column all ok.

I can see that the data type of the column in the SSIS package is DT_IMAGE.

Will the geometry value be transferred correctly without data loss ?

Thanks

Viewing all 24688 articles
Browse latest View live


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