SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Dataflow-Task doesn't work in foreach-loop-Contain
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Horn300
Starting Member

Germany
8 Posts

Posted - 01/31/2013 :  07:31:13  Show Profile  Reply with Quote
Hi,

want to import csv-files and rename+move them to a subfolder "processed".

Renaming and moving works fine, the data-flow-task does not.
I contains a script-task to split columns and works fine and is proven outside the foreach-loop-container.

I doesn't occure an error in the container and values displayed in data-viewer on incoming and outcoming side are o.k.
But the target-table is not filled.
Strange, isn't it?

Thanks in advance for any help.

Horn

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 01/31/2013 :  08:57:05  Show Profile  Reply with Quote
whats the target connection type? is it changed at runtime?

Anyways see below on how to implement similar logic using for each loop
give us details of what exactly data flow is doing

http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Horn300
Starting Member

Germany
8 Posts

Posted - 01/31/2013 :  11:11:25  Show Profile  Reply with Quote
Thanks for reply.

Target connection type is OLE DB and static.
Before data-flow there is a SQL-Task wich creates target-table in every loop new again (after drop).

Data-flow has a script-task for transformation from 1 column in source to several columns in target.
In debug-mode everything everything looks fine, transformation works properly.

Here is a link to package
http://www.evernote.com/shard/s180/sh/6db7b87f-18c6-4cf1-b112-9184fda91e69/8e466aff5e3f85fbb7748f55df261d15

With regards
Horn
Go to Top of Page

Horn300
Starting Member

Germany
8 Posts

Posted - 01/31/2013 :  11:25:55  Show Profile  Reply with Quote
Sorry, found the mistake by myself.
Transformation is o.k., there was wrong delete-statement in the following SQL-Task.

Best regards
Horn
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000