SSIS 2012 Package not reading entire table
-
Tuesday, November 20, 2012 7:57 PM
I am working on SSIS 2012 and ran into a issue that happened as follows:
Things seemed to be going well until a couple of databases that were a part of SSIS connections managers were set into single user mode by rolling back transactions, since they needed to be renamed.
I am not sure if this could be a direct cause, but after the event, the package seems to be sticking to the row counts for a specific table in the old databases.
For example, the old database DB_old and new DB_new have a table items, which contains 100 and 200 records respectively. After the DB_old has been renamed (to DB_new), the package should be retrieving 200 records, but it only gets the 100 and leaves out the rest. The package executes successfully.
This is happening at the OLEDB data source and not after any lookups.
Can someone please suggest on how can I refresh the package metadata?
Thanks
Mac
All Replies
-
Tuesday, November 20, 2012 9:02 PM
-
Tuesday, November 20, 2012 9:23 PMModerator
Hi Mac,
I think the metadata is the issue; to refresh it you would need to remove it from the catalog and then open it in BIDS the package metadata should be then automatically refreshed, you may need to right-click on any warning to "fix all references" so it does not have to be for every transformation (a neat SSIS 2012 feature).
Then the package can be put back into the catalog.
Arthur My Blog

-
Wednesday, November 21, 2012 8:13 AM
Sorry. I forgot to mention that the package is being worked on in SSDT (BIDS) and has not yet been deployed into a catalog.
Also, I am pretty sure that it is getting the corect references since the database name is passed through a dynamically created connection string which is updating correctly.
I have also tried reverting back to an older version of the package from source control, but that did not work.
Any suggestions?
Thanks for your help!!
-
Wednesday, November 21, 2012 6:45 PMModerator
I suspect, if there is a config file, it is not getting applied, or you are wrong about the correctly working expression for the variable. If I am wrongStart removing parts from this package or building a new one until it works. There should be nothing stopping it from getting all the records read.Arthur My Blog

- Marked As Answer by Eileen ZhaoMicrosoft Contingent Staff, Moderator Thursday, November 29, 2012 7:47 AM

