June 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Search

 
Catagories
Archives
Recent Entries
Links
RSS
DTS returns success even when step fails
Catagory: sql server · This Entry · Comment(1) · eMail entry · Google
January 11, 2005 03:23 PM

sql server

I have a DTS package that calls another DTS package. For the first time, I noticed behavior where the subordinate package fails, but the calling package did not error and stop processing (all using the 'continue on success' workflow properties).

unlike other packages that do this properly without issue, i went ahead checked the "fail package on first error" property under error handling on the subordinate package - then the calling package stopped on that step as desired.

my theory is that the type of error causing the subordinate package to stop was not reported as an error in the same manner to the calling package - that's a feature or bug i'm not sure ?!



here is some background on the "Fail package on first" property :

The Fail Package on first error option (FailOnError property, Package object) will force a package to terminate if any step raises an error. This option is set in the Error Handling section on the Logging tab of the Package Properties dialog. Whilst not strictly a workflow related property, it can have an effect on the behaviour of your workflow. When this option is on any On Completion or On Failure constraints are redundant as they will never be followed in the case of the related task failing.

Similar behaviour to Fail Package on first error can be set on an individual step basis using the Fail package on step failure option (FailPackageOnError property, Step2 object). This causes the same behaviour described above, but only where the task that fails is controlled by a step with this option set.


here's a completely different reason the package may return success even when a step fails.

BUG: DTS May Return a Success Even When it Fails to Transfer Data

http://support.microsoft.com/?kbid=301383





Comments

reminder : you have to set the 'fail on first error' option on the subordinate DTS package.

curious asdie : the option is actually in error handling section, but the tab for the property sheet is labelled "logging".

Posted by 7hz at October 14, 2005 01:55 PM


Post a comment
Name:


Email Address:


URL:


Comments: