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

Errors importing cvs file

$
0
0

Hi,

I have a .csv file(1GB) that need to be imported. I have search a lot but i cant solve. Here is the report:

 

- Executing (Error)
	Messages
	* Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Facility Name" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
	 (SQL Server Import and Export Wizard)
	* Error 0xc020902a: Data Flow Task 1: The "output column "Facility Name" (18)" failed because truncation occurred, and the truncation row disposition on "output column "Facility Name" (18)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:\Users\Zafer\Desktop\imp\file.csv" on data row 4.
	 (SQL Server Import and Export Wizard)
	* Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - file_csv" (1) returned error code 0xC0202092.  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.
	 (SQL Server Import and Export Wizard)


Error between string data types

$
0
0

I reinstalled SQL Server, setup new connetions in my existing project and then pointed the existing controls in my SSIS packege to my new OLE DB Connection manager.

When I run my package, now I get:

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

Package Validation Error

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

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "TransactionDate" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "TransactionTime" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "AccountNumber" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "TransactionCode" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "FieldCode" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "NewValue" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "InternalExternalFlag" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "RecovererCode" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "AS_400_UserID" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "ProductLoanTypeCode" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [OLE DB Source 1 [73]]: Column "NotUsed" cannot convert between unicode and non-unicode string data types.

Error at Data Flow Task 1 [DTS.Pipeline]: "component "OLE DB Source 1" (73)" failed validation and returned validation status "VS_ISBROKEN".

Error at Data Flow Task 1 [DTS.Pipeline]: One or more component failed validation.

Error at Data Flow Task 1: There were errors during task validation.

 (Microsoft.DataTransformationServices.VsIntegration)

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

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

 

and this error.  I did create a new connection but also made sure all my components were using it so not sure why I still get this:

 

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

Package Validation Error

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

Error at Package: The connection "{35FE7FF5-A1F5-4016-8C11-0B88A90AE3F7}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at Package: The connection "{35FE7FF5-A1F5-4016-8C11-0B88A90AE3F7}" is not found. This error is thrown by Connections collection when the specific connection element is not found.

Error at Execute SQL Task [Execute SQL Task]: Connection manager "{35FE7FF5-A1F5-4016-8C11-0B88A90AE3F7}" does not exist.

Error at Execute SQL Task: There were errors during task validation.

 (Microsoft.DataTransformationServices.VsIntegration)

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

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

How to import SAS .xpt file using SSIS

$
0
0
Is it possible to read the .xpt file using ssis? What source driver I need to install?

SSIS_User

Connecting to Sybase through SSIS

$
0
0

Hi,

Can some one tell me the process how I can connect to a Sybase RDMS using SSIS.

Thanks,

Nagesh.

--------This links are not any useful to me--------------

http://social.technet.microsoft.com/wiki/contents/articles/ssis-with-sybase-connectors.aspx

There is further few article which gives you more information.

http://www.fixbug.in/article-zone/item/11-creating-ssis-project-with-sybase-iq-152-using-oledb-connection

http://forums.databasejournal.com/showthread.php?48244-Sybase-Connection-in-SQL-2005-SSIS-Project


Set static variable to ssis variable - error

$
0
0

I have a static variable -

staticreadonlyString tableName;

I tried to set it like this

staticreadonlyString tableName =Dts.Variables["ssisString"].Value.ToString();

I get an error:

Anobject reference is required for the non-static field, method, or property.

But, it works like this:

staticString tableName ="";

main(){
     tableName =Dts.Variables["ssisString"].Value.ToString();}

Why ?

SSIS FTP Task mistake

$
0
0

Hi

I would like to transfer a txt file from a local machine (seven 64) to a linux server

the connection uses a passive mode and the task is set up with istransferascii = false

if i used variables or not for the path destination i v meet the same issue

The task runs correctly and i receive the file into the remotepath but when i open the file is incomplete

How to solve this pb and check if the file is full ?

many Thx

SQL task fails calling procedure but only change was adding an insert

$
0
0

Have a SQL task that calls a procedure.  Works fine until I added a block of code that does an insert.  Then I get an error such as this

ssis procedure Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly

What the heck?  The parameters havent changed and it works fine when called directly in SSMS.  Its not a permissions issue either, checked that already.

The statement I added is doing an INSERT INTO SELECT FROM

Works fine in SSMS.  Is this another one of those issues where there are too many select statements and SSIS is getting confused?  

Column cannot convert between unicode and non-unicode string data types

$
0
0

I am converting SSIS jobs from SQL Server 2005 running on a Windows 2003 server to 2008R2 running on a Windows 2008 server.  I have a dataflow with an OLE DB Source which is selecting from an Oracle view.  This of course worked fine in 2005.   This OLE DB Source will not even read the data from Oracle without the error "Column "UWI" cannot convert between unicode and non-unicode.  The select is:

SELECT SOME_VIEW.UWI AS UWI,

             CAST(SOME_VIEW.OIL_NET AS NUMERIC(9,8)) AS OIL_NET

FROM SOME_SCHEMA.SOME_VIEW

WHERE OIL_NET IS NOT NULL AND UWI IS NOT NULL

ORDER BY UWI

When I do "Show Advanced Editor" on this component, in the Input and Output Properties, I show the OLE DB External Column as DT_STR length 40 for the UWI column and for the Output Columns I see the UWI as the same DT_STR.

How can I get past this?  I have tried doing a cast...cast(SOME_VIEW.UWI AS VARCHAR(40)) AS UWI and this gives the same error.  The column in Oracle is a varchar2(40).

Any help is greatly appreciated.  Thanks.








Defining a Variable in Data Flow

$
0
0

Hello, all.

I'm in the process of relearning SSIS after a year-long hiatus and I was in the process of learning back then.

I'm trying to streamline a SQL stored procedure and I need to define a variable for use in a Derived Column task. Unfortunately, I haven't a clue how to do it. I've searched online, but I've yet to find anything that gels into something clear in my head.

Anyway, the variable definition is;

DECLARE @PreviousInputDate DATETIME
   SELECT
      @PreviousInputDate = Max([Input Date])
   FROM
      Staging2

I need to create the variable so that its scope includes all tasks in the data flow.

I'll keep digging around, but thanx in advance for any help!

Multiple data flow and sql tasks in a container - are records available in other tasks before transaction commits?

$
0
0

If I have 3 data flow tasks A > B > C

Then a SQL task that executes a procedure.

Can the procedure refer to records that have been added in one of the previous data flow tasks?

All the tasks are in a container that will commit when its finished, but if its not finished yet, will the SQL task and the procedure be able to refer to any of the records that were loaded?

Set SSIS variable = database connection manager name

$
0
0

Is it possible to set a SSIS string to only the name of a database connection manager or even the connection string it uses ? I don't see an option for that in Evaluate as expression property of ssis variable.

This is what I mean - 

SSIS Connection manager name = SQL_DBASE
SSIS String str_managerName = SSIS Connection manager name: Can you do this dynamically in SSIS ?

Sequence container throwing error when 4 task accessing same temp table

$
0
0

Hi,

I am getting an error when running 4 SQL Task inside a sequence container.  Here is the scenario.

I have created a global temp table outside the sequence container, and as a next step i have a sequence container insider which i have a 4 SQL Tasks.  All 4 SQL Tasks are calling the same stored procedure with different set of parameters, and this stored is accessing the global temp table that i have created from step 1.  I have added the isolation level to read uncommitted and select from temp table WITH (READUNCOMMITTED).  But i am getting error "[Execute SQL Task] Error: Executing the query "EXEC [ABC_SP] <param1>,<param2>,<param3>" failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."  

Of the 4 task that i have in the Sequence, it randomly fail's on one or two SQL task's withe the above error.

can someone let me know where i am going wrong in this process.

Regards

Chandra Sekar Reddy


Import SAS 9.1 dataset with SSIS

$
0
0
Hi TechNet!

I am in a pinch and need to find an answer to report to my CEO within the hour.  So forgive me if I could've found the answer with more digging.  Does anyone know if there is a known provider to import SAS (as in "SAS Institute") datasets into SQL Server with SSIS?  I know I can export from SAS to a more standard format (e.g. CSV or other delimited flat file type) but I don't want to waste a potential opportunity to tout SQL Server features.

Thanks in advance for any help you can provide.


What is the theory behind lookups ? why not just join to the table ?

$
0
0

What is the logic behind using lookups vs just having a join to that table ? I am new to SSIS (and haven't mastered lookups), but why not just join to the table for the lookup ?

so I have an insurance application, and when loading claims, I look up the member enrollment information to pull back a couple of things. So another guy did the lookup, and now I need to modify it.

His lookup is a straight lookup - take member id from claim, go to enrollment file based on member id and pull back field_abc.

My lookup is slightly different, I only pull back field_xyz from enrollment file if it's not present in the claim file. How would I do that ?

my initial reaction (since I don't know SSIS that well) is to do this

select c.clm_nm, c.ssn, c.dt_of_service, c.dr_id, m.field_abc
          case
              when c.member_hicn is null then m.member_hicn
              else c.member_hicn
from claims_staging c
         inner join member_enrollment_current m on m.member_id o c.member_id 

as an oracle person and learning SSIS, it seems like I can just skip the lookup altogether. member_enrollment_current has unique key of member_id, so there's no issue.

So in thinking about other areas where I might do lookups, I'm thinking, "why not just include it in the main query?"

how to do a lookup only when input column is null

$
0
0

Help me with my first lookup :-).

I see another lookup which is straightforward.

I need to do a lookup only when the input column is null, so how do I do that ?

The lookup is simple:

select member_hicn from member_enrollment

columns: input column cardholder_id

lookup column to join: member_id

return member_enrollment.hicn - but only if input value hicn is null.


Are unique GUIDs required in the data flow task in SSIS?

$
0
0

Hi,

I have previously used SQL server 2008R2 to develop packages.  I was told not to copy and paste packages, or create templates with tasks on the data flow because this leads to multiple packages with the same GUID, the consequence of this might be calamitous problems at runtime when the engine can't distinguish between tasks in different packages.

My process was to create templates with Control flow tasks only, manually create the dataflow tasks and then use bids helper from codeplex to regenerate GUIDs (this regenerated the GUIDs at the control flow level only).

I am now using SQL 2012. I have looked and seen that if I copy and paste a package the GUIDs at the data flow level are also copied.  So my questions are:

1) Does having the same ID in different dataflows cause problems as I was led to believe?

2) If it does has this been addressed in some way in SSIS 2012? and what is the best way of working around this given I have many similar packages to develop?

Thanks,

Dan

Fast Load with Oracle as destination

$
0
0

I'm trying to use oracle as destination and i'm not getting fast load option. Im getting error when i use fast load

Experts help


Regards,

Learn Powershell for SSIS?

$
0
0

Hi,

Is there a real benefit for learning Powershell when developing/deploying SSIS packages? Are there some must-see examples/blogposts? Or is most of it also possible(/easier) with tsql or perhaps even .Net?

Whatare yourthoughts?

Table not found error

$
0
0
I am working on SSAS i developed an datacube and deployed succesfully but when i call that SSAS through my SSIS it says that some table is not found but the table exist in my SSAS module.
All things are working fine previous days suddenly this hapened kindly help me in this issue.

Run Multiple SSIS Packages in parallel using SQL job

$
0
0

Hi ,

We have a File Watcher process to determine the load of some files in a particular location. If files are arrived then another package has to be kick-started.

There are around 10 such File Watcher Processes to look for 10 different categories of files. All 10 File Watcher have to be started at the same time.

Now these can be automated by creating 10 different SQL jobs which is a safer option. But if a different category file arrives then another job has to be created. Somehow I feel this is not the right approach.

Another option is to create one more package and execute all the 10 file watcher packages as 10 different execute packages in parallel.

But incase if they don’t execute in parallel, i.e., if any of the package waits for some resources, then it does not satisfy our functional requirement . I have to be 100% sure that all 10 are getting executed in parallel.

NOTE: There are 8 logical processors in this server.

(SELECT cpu_count FROM sys.dm_os_sys_info )

i.e., 10 tasks can run in parallel, but somehow I got a doubt that only 2 are running exactly in parallel and other tasks are waiting. So I just don’t want to try this  option.

Can someone please help me in giving the better way to automate these 10 file watcher process in a single job.

Thanks in advance,

Raksha


Raksha

Viewing all 24688 articles
Browse latest View live


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