Unable to generate policy XML for item, Unable to build the client configuration XML for advertisement with guid.

book

Article ID: 158339

calendar_today

Updated On:

Products

Patch Management Solution for Windows Management Platform (Formerly known as Notification Server)

Issue/Introduction

Errors while building policy XML for Software Management Solution and Software Update plugins.

"Unable to generate policy XML for item: 92b15876-0780-4a94-8385-2bb49fbc653b
( Exception Details: Altiris.NS.Exceptions.AeXException: Unable to build the client configuration XML for advertisement with guid {92b15876-0780-4a94-8385-2bb49fbc653b}. Reason: Unable to build the client configuration XML for advertisement with guid {e4b4f423-321b-4a10-8f34-934e8eb79d07}. Reason: Did not get a row for Software Delivery Advertisement ""Software Management Solution Plug-in for Windows (64-bit) - Install"", Guid = {e4b4f423-321b-4a10-8f34-934e8eb79d07} from the SWD tables. ---> Altiris.NS.Exceptions.AeXException: Unable to build the client configuration XML for advertisement with guid {e4b4f423-321b-4a10-8f34-934e8eb79d07}. Reason: Did not get a row for Software Delivery Advertisement ""Software Management Solution Plug-in for Windows (64-bit) - Install"", Guid = {e4b4f423-321b-4a10-8f34-934e8eb79d07} from the SWD tables. ---> Altiris.NS.Exceptions.AeXException: Did not get a row for Software Delivery Advertisement ""Software Management Solution Plug-in for Windows (64-bit) - Install"", Guid = {e4b4f423-321b-4a10-8f34-934e8eb79d07} from the SWD tables.
   at Altiris.NS.StandardItems.SoftwareDelivery.AdvertisementItem.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
   --- End of inner exception stack trace ---
   at Altiris.NS.StandardItems.SoftwareDelivery.AdvertisementItem.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
   at Altiris.Agent.Unix.Policy.UnixAgentInstall.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
   --- End of inner exception stack trace ---
   at Altiris.Agent.Unix.Policy.UnixAgentInstall.OnBuildClientConfigXml2(Guid workstationGuid, XmlNode requestDocumentElement, XmlTextWriter xmlBuilder)
   at Altiris.NS.StandardItems.Policies.ClientConfigPolicy.GetConfigXml(Guid resourceGuid, String requestXml)
   at Altiris.NS.AgentManagement.PolicyRequest.<>c__DisplayClass4.<LoadItemPolicy>b__0(IDatabaseContext ctx)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetryHelper(Int32 retries, Boolean inTransaction, Getter`1 getContext, Action`1 action, Action`1 retry)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Boolean startNewTransaction, IsolationLevel isolationLevel, Boolean independentContext, Action`1 action, Action`1 retry)
   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetry(Int32 retries, Boolean startNewTransaction, Action`1 action, Action`1 retry)
   at Altiris.NS.ContextManagement.DatabaseContext.PerformWithDeadlockRetry(Int32 retries, Action`1 action, Action`1 retry)
   at Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicy(String request, Guid requestGuid, Guid resourceGuid, Guid hostGuid, Guid policyGuid, String& policy, String& policyHash, Guid& category, Int32& priority, Boolean& canCache, ISet`1& requiredPermissions, ISet`1& filterCollections) )
( Exception logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicy(String request, Guid requestGuid, Guid resourceGuid, Guid hostGuid, Guid policyGuid, String& policy, String& policyHash, Guid& category, Int32& priority, Boolean& canCache, ISet`1& requiredPermissions, ISet`1& filterCollections)
   at Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicies(String request, String configVers, Guid hostGuid, List`1 idents, SortedDictionary`2& policies, SortedDictionary`2& hashes)
   at Altiris.NS.AgentManagement.PolicyRequest.GetPolicies(String request)
   at Altiris.Web.NS.Agent.GetClientPolicies.ProcessRequest(String& request, Byte[]& clientConfigData, String& clientConfigXml, Boolean& compress)
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at Altiris.Common.Threading.LocalThreadPool.InvokeCallback(Object state)
   at Altiris.Common.Threading.LocalThreadPool.ExecuteUserWorkItem(UserWorkItem workItem)
   at Altiris.NS.Threading.NSThreadPool.ExecuteUserWorkItem(UserWorkItem workItem)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at Altiris.Common.Threading.LocalThreadPool.ExecuteUserWorkItemInContext(UserWorkItem workItem)
   at Altiris.Common.Threading.LocalThreadPool.ThreadPoolProc(Object threadStartParameter)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)
 )
( Extra Details:  Type=Altiris.NS.Exceptions.AeXException Src=Altiris.Agent.Unix

  Inner Extra Details:  Type=Altiris.NS.Exceptions.AeXException Src=Altiris.NS.StandardItems

  Inner Extra Details:  Type=Altiris.NS.Exceptions.AeXException Src=Altiris.NS.StandardItems )","Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicy","w3wp.exe","40","Errors"
 

Cause

Errors during product upgrade or install.

Resolution

The following steps and attachments are only for ITMS 7.1.2 MP1 and should not be used on any other version of the product.

Please also perform a full Symantec_CMDB database backup prior to implementation.

1. Download the following tool and attachments to the SMP.
http://www.symantec.com/business/support/index?page=content&id=TECH166711
Download the 2 attached packages.
2. Make sure you are logged on with the Altiris Service account.
3. Edit the package physical path in all XML files to match the environment.
Attached files contain the default C:\Program Files\Altiris path, which must be changed in the XML.
4. In the Software Replicator Tool > switch to the "Import Software Resources" tab.
Uncheck the "Do not import resources which already exist in NS".
5. Run the import and monitor for any errors.
6. Check the logs for the following errors>
"Unable to build the client configuration XML for advertisement"

 

Another approach, and more simple, to resolve this would be to browse to:

Manage > All Resources > Expand All Resources > Expand Software Components and select Software Releases. Delete every item related to the Software Management Solution plugin and then run a repair through Symantec Installation Manager.


Applies To

ITMS 7.1.2 MP1

ITMS 7.5 SP1 HF3

Attachments

SWM Plugin x86 and x64 7.1.2 MP1.zip get_app
Software Update Plug-in XML's (x64 Install & Upgrade).zip get_app
Patch Management Agent x86 and x64 7.1.2 MP1.zip get_app
Inventory Plug-in for Windows 7.1.2 MP1.zip get_app