Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SSIS integration package - Data Flow

Posted on 2011-03-03
3
Medium Priority
?
478 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 1000 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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

     When we have to pass multiple rows of data to SQL Server, the developers either have to send one row at a time or come up with other workarounds to meet requirements like using XML to pass data, which is complex and tedious to use. There is a …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

971 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