Core Alert: CRITICAL ERROR - A stored procedure failed

Microsoft.BizTalk.Server.2013R2.StoredProcedureFailed (Rule)

Core Alert: CRITICAL ERROR - A stored procedure failed.

Knowledge Base article:

Summary

A stored procedure call failed. The name of the stored procedure and the SQL error code are displayed.

Causes

This is usually due to BizTalk runtime encountering problems on stored procedure calls during processing. SQL server instance associated with the call may not be available or there may be timeouts due to network connectivity issues.

Resolutions

Verify that the SQL Server is functioning properly - this can be done by viewing the SQL error code and correcting that condition. Additionally, you may need to open the BizTalk Administration console and resume the messages that have been suspended.

Configuration

Not Available

Additional

Not Available

External

Not Available

Element properties:

TargetMicrosoft.BizTalk.Server.2013R2.BizTalkRuntimeRole
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
CRITICAL ERROR: A stored procedure failed
{0}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
Microsoft.BizTalk.Server.2013R2.StoredProcedureFailed.DataSource DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectEvent Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishEventData Default

Source Code:

<Rule ID="Microsoft.BizTalk.Server.2013R2.StoredProcedureFailed" Enabled="true" Target="BTSLib!Microsoft.BizTalk.Server.2013R2.BizTalkRuntimeRole" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="Microsoft.BizTalk.Server.2013R2.StoredProcedureFailed.DataSource" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Property[Type="BTSLib!Microsoft.BizTalk.Server.2013R2.ServerRole"]/ComputerName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">BizTalk Server 2006</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">BizTalk Server 2009</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">BizTalk Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6912</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventLevel</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.BizTalk.Server.2013R2.StoredProcedureFailed.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Target/Property[Type="BTSLib!Microsoft.BizTalk.Server.2013R2.ServerRole"]/ComputerName$</SuppressionValue>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
</Suppression>
<Custom1>Core Alerts</Custom1>
</WriteAction>
</WriteActions>
</Rule>