Solved

help changing Excel input cell for SSIS package

Posted on 2014-11-03
5
123 Views
Last Modified: 2016-02-11
Hi I have an SSIS package EmpImport19.dtsx developed in Visual Studio 2008 and running on SQL Server 2008.

It works and has been working for 4-5 years.

It reads in an Excel file, validates it, and populates some database tables with some extracted content.

When it runs in Microsoft SQL Server Management Studio, by right clicking on EmpImport19.dtsx and then selecting "Run Package", it does it's stuff and then at the end of it shows in dialog box

Information: Cell D70 (Employee19T) has expected type Double and SSIS type DT48.
Information: Cell D71 (Employee21T) has expected type Double and SSIS type DT48.
Information: Cell D72 (Employee29T) has expected type Double and SSIS type DT48.
Information: Cell D73 (Employee34T) has expected type Double and SSIS type DT48.
Information: Cell D75 (DT12EmpDOBT) has expected type Double and SSIS type DT_DBTIMESTAMP.

This is correct.

A new version of the spreadsheet has Employee29T information in a different Excel cell, cell K59

When I open EmpImport19.dtsx in Notepad I see loads of stuff that looks like this

        excelCellList.Add(new CellDatum("D70", "Employee19T", typeof(Double), "DT_R8"));
        //Double Block1WT85Correlate (double-precision float [DT_R8])
        excelCellList.Add(new CellDatum("D71", "Employee21T", typeof(Double), "DT_R8"));
        //Double Block2WT85Correlate (double-precision float [DT_R8])
        excelCellList.Add(new CellDatum("D72", Employee29T", typeof(Double), "DT_R8"));
        //Double TotalChargeableWeight (double-precision float [DT_R8])
        excelCellList.Add(new CellDatum("D73", "TotalChargeableWeight", typeof(Double), "DT_R8"));  


If I change the line that reads

        excelCellList.Add(new CellDatum("D72", Employee29T", typeof(Double), "DT_R8"));

to

        excelCellList.Add(new CellDatum("K59", Employee29T", typeof(Double), "DT_R8"));

save the file, close Microsoft SQL Server Management Studio, open it again, and then rerun the package EmpImport19.dtsx

it doesn't pick up the new location of K59 for my data.

When the modified package completes it still shows

Information: Cell D70 (Employee19T) has expected type Double and SSIS type DT48.
Information: Cell D71 (Employee21T) has expected type Double and SSIS type DT48.
Information: Cell D72 (Employee29T) has expected type Double and SSIS type DT48.
Information: Cell D73 (Employee34T) has expected type Double and SSIS type DT48.
Information: Cell D75 (DT12EmpDOBT) has expected type Double and SSIS type DT_DBTIMESTAMP.

See it says D72 still and not K59

My question is where else is Microsoft SQL Server Management Studio getting the D72 from? Where else do I need to change to get it to import the new Excel cell.

Thank you

John
0
Comment
Question by:John Bolter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 40419898
>My question is where else is Microsoft SQL Server Management Studio getting the D72 from?
<Wild guess>  Open the SSIS package in Visual Studio/SSDT, and in the Connection Manager there is an Excel connection that references this specific cell.  Open it and change the cell reference, and close.  

Then Click on every data flow task that uses this connection, and re-map.

Manually opening the SSIS package and editing the xml will not auto-magically re-map.
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 40419936
>My question is where else is Microsoft SQL Server Management Studio getting the D72 from?
It is also possible that whatever process calls the SSIS package has a variable that it is feeding 'D72', and then the package via a script task consumes that and changes the connection.
0
 

Author Comment

by:John Bolter
ID: 40420030
Thanks for your reply but no, I am just running the file EmpImport19.dtsx from  Microsoft SQL Server Management Studio and the cell location doesn't appear to be coming from anywhere else.
I'm stumped!
0
 

Accepted Solution

by:
John Bolter earned 0 total points
ID: 40428175
And the answer is ... "build" the EmpImport19.dtsx in Visual Studio afterwards so the "binary" part in the XML file is updated with what I've changed in the text.
0
 

Author Closing Comment

by:John Bolter
ID: 40436968
I'm answering this myself ... obviously I didn't understand how to use SSIS
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Suggested Solutions

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

710 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