Solved

How to handle SSIS Validation error 16253?

Posted on 2010-08-20
2
1,995 Views
Last Modified: 2013-11-10
I'm new to SSIS 2005 (I usually load via T-SQL).  I've added a dimension table to the database that has an identity colulmn that is used to create the Key number rather than use the source's ID column.  

In SSIS, I added a Data Flow task that is used to load the data from a view of the source table (created using a linked server).  I have a Slowly Changing Dimension data flow item so that the process doesn't add another set of records each time.  I just want to add the new ones and update the edited ones and I was told this was the way to do it.  It this is not the way to do it, let me know.  

The issue:
I now have an error on this task that reads:

Error      5      Validation error. dimActivity: Slowly Changing Dimension [16253]: The "input column "ActivityDesc" (16956)" has a long object data type of DT_TEXT, DT_NTEXT, or DT_IMAGE, which is not supported.

ActivityDesc in the source is ntext which, obviously, isn't supported in the Slowly Changing Dimension.  

What is the recommended way to handle this situation?

Thanks!
0
Comment
Question by:safair
2 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 400 total points
ID: 33490334
change ActivityDesc to DT_WSTR datatype
you can do this with :
data conversion transformation
or
with advanced editor of source and changing the output column type in input/output columns tab.
0
 
LVL 1

Assisted Solution

by:da-zero
da-zero earned 100 total points
ID: 33490890
A little bit off-topic: using a SCD technique is the way to go, but using the standard SCD component from SSIS isn't. It is notoriously slow for updates, as it issues a single UPDATE statement for each row. It is better to implement the SCD yourself in SSIS using T-SQL, or to use the Kimball SCD from Codeplex.

Regarding your actual problem: convert it to DT_WSTR, as reza_rad suggested. In the destination database you have to create a (N)VARCHAR(MAX) column.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now