dbTalk Databases Forums  

SSIS package fails but job step succeeds?!

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss SSIS package fails but job step succeeds?! in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jordan
 
Posts: n/a

Default SSIS package fails but job step succeeds?! - 10-19-2010 , 10:18 AM






Hi,

I've created a job in SQL Server 2005 with one step - call a SSIS
package. The step on failure is set to quit the job reporting failure.
The SSIS package has a maximum error count of 1. Through logging
built into the error handling, I can tell the package has failed, but
the history of the job shows the step ( and the whole package) as
succeeded. The package failure isn't being communicated to the job
step. I don't have any special step options or command line
parameters. Am I missing something?

Thanks,

J

Reply With Quote
  #2  
Old   
jlacefie
 
Posts: n/a

Default Re: SSIS package fails but job step succeeds?! - 10-20-2010 , 08:04 AM






On Oct 19, 11:18*am, jordan <jordan.sabou... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

I've created a job in SQL Server 2005 with one step - call a SSIS
package. The step on failure is set to quit the job reporting failure.
The SSIS package has a maximum error count of 1. *Through logging
built into the error handling, I can tell the package has failed, but
the history of the job shows the step ( and the whole package) as
succeeded. The package failure isn't being communicated to the job
step. I don't have any special step options or command line
parameters. Am I missing something?

Thanks,

J
This is a bug in 2005. Create another step below your cube process
step and put the following code in it, which will display the actual
results of the cube process step.

DECLARE @MESS NVARCHAR(1024)
SELECT Top 1 @MESS=jh.message
FROM
[msdb].[dbo].[sysjobhistory] JH
INNER JOIN [msdb].[dbo].[sysjobsteps] JS on JS.job_id=JH.job_id AND
JS.step_id=JH.step_id
Where JS.subsystem='ANALYSISCOMMAND'
ORDER BY JH.instance_id desc
IF CHARINDEX('ErrorCode',ISNULL(@MESS,''))>1 RAISERROR(@MESS,16,1)

Reply With Quote
  #3  
Old   
jordan
 
Posts: n/a

Default Re: SSIS package fails but job step succeeds?! - 10-22-2010 , 09:21 AM



On Oct 20, 9:04*am, jlacefie <jlace... (AT) gmail (DOT) com> wrote:
Quote:
On Oct 19, 11:18*am, jordan <jordan.sabou... (AT) gmail (DOT) com> wrote:

Hi,

I've created a job in SQL Server 2005 with one step - call a SSIS
package. The step on failure is set to quit the job reporting failure.
The SSIS package has a maximum error count of 1. *Through logging
built into the error handling, I can tell the package has failed, but
the history of the job shows the step ( and the whole package) as
succeeded. The package failure isn't being communicated to the job
step. I don't have any special step options or command line
parameters. Am I missing something?

Thanks,

J

This is a bug in 2005. *Create another step below your cube process
step and put the following code in it, which will display the actual
results of the cube process step.

DECLARE @MESS NVARCHAR(1024)
SELECT Top 1 @MESS=jh.message
FROM
[msdb].[dbo].[sysjobhistory] JH
INNER JOIN [msdb].[dbo].[sysjobsteps] JS on JS.job_id=JH.job_id AND
JS.step_id=JH.step_id
Where JS.subsystem='ANALYSISCOMMAND'
ORDER BY JH.instance_id desc
IF CHARINDEX('ErrorCode',ISNULL(@MESS,''))>1 RAISERROR(@MESS,16,1)
Thanks, this was very helpful.

J

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.