Solved

SSIS integration package - Data Flow

Posted on 2011-03-03
3
470 Views
Last Modified: 2012-05-11
I am trying to upload an excel spreadsheet source to one table in sql 2008 standard databse.
i have truncated the table first in control flow, gone for data flow to update spreadsheet.

i received the error on one datatype, not able insert. please steps i have taken and spreadsheet source.

I am new at this and trying to do some of the tutorials as well, any suggestions greatly appreciated.


Error at Data Flow Task [pinvrep08 [57]]: The column "account_type" can't be inserted because the conversion between types DT_R8 and DT_I4 is not supported.

Error at Data Flow Task [SSIS.Pipeline]: "component "pinvrep08" (57)" failed validation and returned validation status "VS_ISBROKEN".

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

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

 (Microsoft.DataTransformationServices.VsIntegration)
 AccountHierachy.xls Upload-to-SQL-Destintation.docx
0
Comment
Question by:Amanda Walshaw
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
tigin44 earned 250 total points
ID: 35034062
account_type column values read as real number by your process. to correct this right click on the excel source and choose show advanced editor. There navigate to the Input Output Columns tab the one most right. Expand the output columns and locate the account_type column then change its data type four byte integer (DT_I4)
then run your script.
0
 
LVL 16

Assisted Solution

by:vdr1620
vdr1620 earned 250 total points
ID: 35036931
Add a Data conversion task or Derived Column and change the data type of the column. use this column in the destination mapping. add it as a New Column in Derived Column and  you use the below expression. The column Names are Case sensitive so, check the column Name

(DT_I4)(account_type)
0
 
LVL 16

Expert Comment

by:vdr1620
ID: 35037034
If you are trying to learn, I would suggest you use Import/Export Wizard in Sql server and do all the changes required and then at the end check the box and save it as SSIS package.. You can later, open it using visual studio and see the Design

Hope this helps !!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
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.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 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

19 Experts available now in Live!

Get 1:1 Help Now