A form template’s business logic caused an OutOfMemory exception

Microsoft.Office.Sharepoint.Server.2007.A_form_templates_business_logic_caused_an_OutOfMemory_exception (Rule)

An OutOfMemory exception has been generated from the form template's business logic.

Knowledge Base article:

Summary

An OutOfMemory exception has been generated from the form template's business logic.

Causes

OutOfMemory exceptions can be generated when InfoPath Forms Services is under high load, or if business logic is written in a way that allocates too much memory.

Resolutions

The Windows NT Event log will identify the form template that generated the OutOfMemory exception. However, because multiple requests from different form templates can be processed simultaneously, the identified form template might not be the one that is allocating excessive memory. Inspect the business logic for all active form templates to verify whether they are allocating excessive amounts of memory. If all form templates are behaving as intended, consider reducing server load or upgrading the hardware.

© 2000-2007 Microsoft Corporation, all rights reserved.

Element properties:

TargetMicrosoft.Office.Sharepoint.Server.2007.MOSS.Application
CategoryEventCollection
EnabledFalse
Event_ID5342
Event SourceOffice SharePoint Server
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
A form template’s business logic caused an OutOfMemory exception
Event ID {0} from Source {2} on agent computer {3} has triggered this Alert Description : {1}
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
CollectData WriteAction Microsoft.SystemCenter.CollectEvent Default
DataWarehousePublishData WriteAction Microsoft.SystemCenter.DataWarehouse.PublishEventData Default
MOSS.GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Office.Sharepoint.Server.2007.A_form_templates_business_logic_caused_an_OutOfMemory_exception" Enabled="false" Target="Microsoft.Office.Sharepoint.Server.2007.MOSS.Application" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="MSWL!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="MSWL!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5342</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Office SharePoint Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CollectData" TypeID="SystemCenter!Microsoft.SystemCenter.CollectEvent"/>
<WriteAction ID="DataWarehousePublishData" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishEventData"/>
<WriteAction ID="MOSS.GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Office.Sharepoint.Server.2007.A_form_templates_business_logic_caused_an_OutOfMemory_exception.AlertMessageID"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDisplayNumber$</AlertParameter1>
<AlertParameter2>$Data/EventDescription$</AlertParameter2>
<AlertParameter3>$Data/PublisherName$</AlertParameter3>
<AlertParameter4>$Target/Host/Property[Type="MSWL!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter4>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
<SuppressionValue>$Data/EventDescription$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>