Audience compilation failed

Audience_compilation_failed (Rule)

Knowledge Base article:

Summary

The attempt to compile audiences failed.

Resolutions

To resolve this issue execute the following steps:

Ensure that the search service has valid run-as identity. To do this use the Services snap-in which can be found in the Computer Management console. The following task will start the Computer Management console:

Start Computer Management Console

Once the Services snap-in is loaded, perform the following steps:

1. In the details pane, select and then right-click Microsoft SharePointPS Search, and then click Properties.

2. On the Log On tab, click This account.

3. In the This account box, type the user name in the format DOMAIN\user_name.

4. Type the new password in the Password and Confirm password boxes.

5. Click OK.

6. In the message box that appears, click OK.

7. Right-click Microsoft SharePointPS Search, and then click Stop.

8. Right-click Microsoft SharePointPS Search, and then click Start.

Ensure that the configuration database administration account has the Adjust memory quotas for a process and Replace a process level token rights. To do this:

1. On the taskbar, click Start, point to Administrative Tools, and then click Local Security Policy.

2. In the Local Security Settings console, in the console tree under Security Settings, expand the Local Policies node.

3. Click User Rights Assignment.

4. Verify that the Adjust memory quotas for a process and Replace a process level token rights appear in the details pane.

Check the audience compilation log on the operating system drive under \Program Files\SharePoint Portal Server\Logs. Look for SPS_xxxxxxxx_AUDIENCEJOB.LOG where xxxxxxxx is a dynamic value. The log file provides details about the problem, such as database timeout, etc.

Element properties:

TargetMicrosoft.SharePointPortalServer.2003.AdministrationService
CategoryEventCollection
EnabledTrue
Event SourceSharePoint Portal Server
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
Audience compilation failed
{0}
Event LogApplication
CommentMom2005ID='{1F29FFB6-A252-4A6F-ABF0-B02E69795F96}'

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Audience_compilation_failed" Enabled="onStandardMonitoring" Target="Microsoft.SharePointPortalServer.2003.AdministrationService" Remotable="true" Comment="Mom2005ID='{1F29FFB6-A252-4A6F-ABF0-B02E69795F96}'">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>SharePoint Portal Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDescription</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>Audiences cannot be compiled</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertOwner>$Data/PublisherName$</AlertOwner>
<AlertMessageId>$MPElement[Name="Audience_compilation_failed.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>