Solved

help changing Excel input cell for SSIS package

Posted on 2014-11-03
5
119 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
select over clause 1 40
SSRS Highlight Specific Column 3 52
MS SQL Inner Join - Multiple Join Parameters 2 17
Where to download and how to install sqldmo.dll 5 24
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
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 …

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

23 Experts available now in Live!

Get 1:1 Help Now