Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am processing multiple files using forecah loop in SSIS. Could some body will say how the commit will happen? If I wanted to commit after each file process completes successfully, what changes should be done.

Thanks,
Srinivas
Posted
Updated 19-Dec-13 1:05am
v2
Comments
coded007 19-Dec-13 9:42am    
Please explain us clearly what you want to commit ?
cns1710 19-Dec-13 22:13pm    
Assuming there are 3 files to process. 1st file processes and loads the data into table successfully, 2nd file fails data validation and moved to error directory and 3rd file also validates data successfully and loads the data into table. In OLE DB Destination, Maximum Insert Commit Size is 2147483647.
My question is - once the job gets over, will the data loaded by 1st and 3rd file remains in table or will it rollback?
Actually, I ran multiple times with multiple files, most of the times I was seeing valid files data in table. Few times I was not able to see any data in table.


coded007 23-Dec-13 6:49am    
It will not roll back if you are following same process as you explained? check whole package once where it is going to back

1 solution

Truly? I have no idea, because you did not specify what have you done till now.

Have a look here: Foreach Loop Container[^]
 
Share this answer
 
Comments
cns1710 19-Dec-13 22:15pm    
Sorry, I am new to SSIS. I was doing some enhancement in d existing pkg.
Assuming there are 3 files to process. 1st file processes and loads the data into table successfully, 2nd file fails data validation and moved to error directory and 3rd file also validates data successfully and loads the data into table. In OLE DB Destination, Maximum Insert Commit Size is 2147483647.
My question is - once the job gets over, will the data loaded by 1st and 3rd file remains in table or will it rollback?
Actually, I ran multiple times with multiple files, most of the times I was seeing valid files data in table. Few times I was not able to see any data in table.
Maciej Los 20-Dec-13 1:46am    
I have no idea why it happens. There are known issues with files loading. I would suggest to search via Google[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900