Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Integration Services
»
How to restrict to stop the package if one of...
How to restrict to stop the package if one of the excel tab gives error
Rate Topic
Display Mode
Topic Options
Author
Message
sqlstud
sqlstud
Posted Thursday, December 20, 2012 4:12 AM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 3:57 AM
Points: 93,
Visits: 237
Hi,
I have developed a SSIS package.
Source : XLSX File
Destination : SQL Server Table
The XLSX files contains 4 tabs. I am loading 4 tabs into 4 different tables by creating 4 data flows.
Steps:
inside For each loop container
1. Used Script Component
i have checked whether the given file is valid or not. if valid, it executes the step 2. if not valid, it send out an email
2. Used 4 Dataflows one for each tab. All are independent data flows
please find the strucure attached:
Ques:
If any one of the tabs get failed, it should not load the other three tabs.
Please advise how to proceed.
Regards
SqlStud
Post Attachments
error_Tabs.jpg
(
4 views,
33.25 KB
)
Post #1398898
Koen Verbeeck
Koen Verbeeck
Posted Thursday, December 20, 2012 5:13 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 9:06 AM
Points: 9,367,
Visits: 6,465
Enable transactions in your SSIS package. You can either use the built-in transaction mechanism which uses MSDTC, or you can create your own transaction by putting a SQL Task with "BEGIN TRANSACTION" at the start of your package and a SQL Task with "COMMIT" at the end of the package. Make sure you set RetainSameConnection to true for the connection manager.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1398917
sqlstud
sqlstud
Posted Thursday, December 20, 2012 5:20 AM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 3:57 AM
Points: 93,
Visits: 237
Koen Verbeeck (12/20/2012)
Enable transactions in your SSIS package. You can either use the built-in transaction mechanism which uses MSDTC, or you can create your own transaction by putting a SQL Task with "BEGIN TRANSACTION" at the start of your package and a SQL Task with "COMMIT" at the end of the package. Make sure you set RetainSameConnection to true for the connection manager.
Thanks MCSA.
Can you please let me know how to do it?
Regards
SqlStud
Post #1398918
rhythm.varshney
rhythm.varshney
Posted Thursday, December 20, 2012 5:30 AM
SSC Journeyman
Group: General Forum Members
Last Login: Thursday, March 21, 2013 2:14 AM
Points: 77,
Visits: 184
sqlstud (12/20/2012)
Koen Verbeeck (12/20/2012)
Enable transactions in your SSIS package. You can either use the built-in transaction mechanism which uses MSDTC, or you can create your own transaction by putting a SQL Task with "BEGIN TRANSACTION" at the start of your package and a SQL Task with "COMMIT" at the end of the package. Make sure you set RetainSameConnection to true for the connection manager.
Thanks MCSA.
Can you please let me know how to do it?
Regards
SqlStud
One way of mainitaining explicit transaction Koen has already mentioned by putting Exec SQL Task.
For the first one please refer below URL
http://technet.microsoft.com/en-us/library/cc304421.aspx
Post #1398922
sqlstud
sqlstud
Posted Thursday, December 20, 2012 8:34 AM
SSC Journeyman
Group: General Forum Members
Last Login: Tuesday, March 12, 2013 3:57 AM
Points: 93,
Visits: 237
rhythm.varshney (12/20/2012)
sqlstud (12/20/2012)
Koen Verbeeck (12/20/2012)
Enable transactions in your SSIS package. You can either use the built-in transaction mechanism which uses MSDTC, or you can create your own transaction by putting a SQL Task with "BEGIN TRANSACTION" at the start of your package and a SQL Task with "COMMIT" at the end of the package. Make sure you set RetainSameConnection to true for the connection manager.
Thanks MCSA.
Can you please let me know how to do it?
Regards
SqlStud
One way of mainitaining explicit transaction Koen has already mentioned by putting Exec SQL Task.
For the first one please refer below URL
http://technet.microsoft.com/en-us/library/cc304421.aspx
Thanks....
But it didnt solved the problem.
it given the error as "
[Connection manager "src"] Error: The connection does not support enlisting in distributed transaction. "
Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Src" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Regards
SqlStud
Post #1399010
Koen Verbeeck
Koen Verbeeck
Posted Thursday, December 20, 2012 11:07 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 9:06 AM
Points: 9,367,
Visits: 6,465
My guess is MSDTC isn't running.
You can always try with the Execute SQL Tasks as I mentioned earlier.
How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1399201
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.