I'm new to SSIS- ForEach Loop with Data Flow Task won't run completely. Data Flow Task runs fine for one file. What am I missing? - ssis

I have created a sql table to hold records; I've created an SSIS query with ForEach Loop to go through flat files and take information from them and load them into a sql table. I have created my variables, made sure "DelayValidation" is set to True.
The package (Data Flow) runs separately fine with no errors. When I move it to the ForEach Loop, it runs fine pulling on the one file (again).
This image is of the variables I have created :
But will not go on to the next file. I have researched on the internet and watched MULTIPLE videos and can't seem to find where the issue lies. I hope I have given enough information. I have tried to debug and that does not show anything.
Progress screen after running the whole package when Started Debugging with ForEach Loop and Data Flow Task :
Screen shot of the data flow task that successfully completed outside of the ForEach Loop:
Screen shot of the sql table to show one record came from the task in ssis :
Screen shot of the txt files to be included in the package and added to the sql table.
I don't enough about the coding to view the code and place a break. I'd be happy to try if someone could direct me.
The last picture is a detail screen shot of the variables - what they were created for and expressions.

Related

Execute Process Task Doesnt Display Text | SSIS

I have a Foreach Container in which I have a Execute Process Task . I have many Console.WriteLine() statements in it.
The 3 images highlighted in the image can be used to get output from .exe .
I declared a variable in package to get error message from Execute Process Task by using StandardErrorVariable .
The problem is the Screen Fades Out, it doesnt display anything on screen , this happens not only when i use StandardErrorVariable but other properties highlighted in figure.
Also even though we get values into variables , the lock on them is not getting released so i am unable to use them anywhere in the package.
Also it will be helpful if you can redirect me to exact usage of all 3 variables highlighted
Does this happen when the package is run from a server catalog as well as visual studios? If you add a breakpoint, all vars will show up under the 'locals' window.

Continue adding input file rows to table after an error using SSIS

I’m a newbie to SSIS, and have an issue with a package that has been puzzling me.
My company has SQL Server Business Intelligence Development Studio 2008 (also, SQL Server 2008 R2). On the Control Flow tab, I have two executables: an Execute SQL Task (Truncate_crm_account_Table) that truncates the SQL Server crm_account table, and a Data Flow Task.
On the Data Flow tab, I have a Flat File Source that opens and reads a pipe-delimited file, and an OLE DB Destination that moves the rows in the input file to the crm_account table.
Data Flow tab
On the Event Handlers tab I have created an OnError Event Handler for the Truncate_crm_account_Table, and an OnError Event Handler for the Data Flow Task. Both OnError Event Handlers are an Execute SQL Task object that writes the error encountered to a SQL Server error table.
This all works fine if there are no issues with the data. When there is an error with the data (for example, on row 10,000), the package writes the records that have passed through its butter to the crm_account table (say, 9,000 or so records). The package also writes the error to the error table, and then stops. What the Project Manager would like the package to do is to continue processing the remainder of the input file after encountering the error.
After reading through a number of forums and posts for SSIS issues that are somewhat related to mine, this is what I have done so far. On the Control Flow tab, for the Data Flow Task, I’ve set MaximumErrorCount = 0 and noted that FailPackageOnFailure = False (also, FailParentOnFailure = False). I’ve seen some posts that mention to set the System variable Propagate = False. Both of these I’ve done, yet the package stops after encountering the error on row 10,000.
System Variables
I don’t know how many records will be in the input file. So, I believe that using a For Loop Container would not be a good object to add to the project. As I’m very new to SSIS, I don’t know whether the ForEach Loop Container or some other object is the way to go. How can this package be minimally modified so that it continues processing the remainder of the input file after encountering an error with the data?
Any help you can provide would be greatly appreciated. Thank you in advance for your time.
Ed
In the data flow tab in the source node, find the error output section on the left side. Click it and change the applicable column in question to 'ignore failure' under the error column.

No Google BigQuery table created after importing data through webclient

I'm currently familiarizing myself with Google BigQuery by working through the examples at https://cloud.google.com/bigquery/web-ui-quickstart. Doing a query over the pubic datasets runs fine.
I run into problems when uploading custom data into a new table through the WebUI. I create a new dataset and table, and upload the csv file provided with the example case. As in the example I input the schema and submit the file. Now the upload window stays on top and turns grey as if it's working. Nothing seems to happen afterwards though. When clicking away the upload window after a long wait, the table seems to be created in the tree on the left. However, when clicking on the table an error is shown:
"Unable to find table: ndwtest-984:csvtest.csvdata"
This seems like a trivial action, however I cannot seems to get it to work. I've tried varies different files, uploaded the file to Google Cloud Storage first and played around with the advanced options the last two days, but keep getting the same error.
Help would be much appreciated.
Some steps to help you:
billing must be enabled
you need to choose to upload one single TXT file from the example eg: yob2013.txt and not the zip file
make sure the schema is entered as text: name:string,gender:string,count:integer
on the last screen of the wizard you don't need to change the default CSV option parameters (for demo purposes works as it is)
I just tried the example, and it does work for me. In case you still have errors, than you can check your Job History menu in the Web UI, direct link would be, warning you need to put your Id in the link.
https://bigquery.cloud.google.com/jobs/YOUR_ANONYMOUS_PROJECT_ID_HERE?pli=1

Why SSIS logging is not working in a script component / script task when inside Foreach container

I have an SSIS package that has a ForEach container (to loop through multiple files).
Outside the loop I also have a script task where I'm using Dts.Log() function to log some information. It works fine.
Inside the loop I have several tasks such as another script task and dataflow task. I'm using Dts.Log() in another script task as well but it logs nothing. I've checked all logging settings and they seems to be right.
Inside the dataflow I also have one script component where I'm trying to use that Log() function with no success. Once again I've checked my setting and they seem to be correctly set (according to this one SSIS: Why is this not logging?).
I'm able to log inside the loop by raising events though (FireInformation http://technet.microsoft.com/en-us/library/microsoft.sqlserver.dts.runtime.idtscomponentevents.fireinformation(v=sql.105).aspx)
I remember reading somewhere that there are some restrictions in debugging when inside the foreach container. So is there some sort of things in Logging as well or is this something else?
I can't provide any code samples (at least not right now) so we have to keep the discussion at the certain level.

SSIS 2005 Saving Problem - SQL Task Editor

I have a relatively big SSIS package which I'm trying to edit. I basically need to update a query on an Execute SQL Task. Problem is the solution is not saving the query when I do the change. I open the SQL Task, change the query and close the task. I verify the change before saving and it's there but as soon as I click on the save button the change on the query disappears.
I verified for opened instances of the package but there are no other sessions on the machine. It does seems to be saving correctly on other packages included in the solution, but for some reason is not saving on my main package.
Make sure you have a backup copy of your package before you try this:
close the package (but keep the solution open)
right click the package and view code
search for your query and replace the query text with your new query text
save it
now double click the package to open it up like you normally do and view the query