Video Screencast Help
Scheduled Maintenance: Symantec Connect is scheduled to be down Saturday, April 19 from 10am to 2pm Pacific Standard Time (GMT: 5pm to 9pm) for server migration and upgrades.
Please accept our apologies in advance for any inconvenience this might cause.

notification server errors - inventory agent upgrade

Created: 29 Dec 2011 • Updated: 20 Jan 2012 | 20 comments
This issue has been solved. See solution.

I'm getting an error in log viewer after performing the latest updates to smp.

 

unable to generate policy xml for item:  inventory plug-in upgrade.

I've seen this error in the past for other agents and attachments were provided to import the xml packages.

Is anyone else getting this error and do they have a quick import to fix it?

 

Comments 20 CommentsJump to latest comment

luke.s's picture

Hi  Hi chessdotcom,

Could you please post the console error message and log viewer error message?

Regards,

If the suggestion has helped to solve your problem, please mark the post as a solution.

Fábio Sanches
IT Technical Manager | WTR Services | www.wtrservices.com.br

andykn101's picture

"Inventory policies are missing schedules and may be uneditable."

http://www.symantec.com/docs/TECH165335

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

chessdotcom's picture

there is no package for the Inventory Plug-In upgrade.

 

It is similar to this old ticket

 

http://www.symantec.com/docs/TECH121956

chessdotcom's picture

Thanks all for leading me in the right direction.

 

aexconfig.exe /configure C:\Program Files\Altiris\Inventory\Config\Inventory.config

 

ran that command and it recreated the package and reset the deployment policies.  It is error free at the moment. 

Rick D's picture

I'm also seeing the same error:   "Unable to generate policy XML for item: Inventory Plug-in Install" along with "Unable to generate policy XML for item: Inventory Plug-in Upgrade"

Will submit case.

chessdotcom's picture

there error came back after about 30 minutes.

 

I'm still unable to enable and deploy the inventory plug-in because there is no package and the same error above still exists.

chessdotcom's picture

Log File Name: C:\ProgramData\Symantec\SMP\Logs\a.log
Priority: 1
Help and Support:
Date: 1/10/2012 8:33:40 PM
Tick Count: 1074890038
Host Name: ALTIRIS-HPC
Process: w3wp (12684)
Thread ID: 10
Module: w3wp.exe
Source: Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicy
Description: Unable to generate policy XML for item: Inventory Plug-in Upgrade (32ddda01-6e89-4fdf-b32a-b8e0b61ae38c)

( Exception Details: Altiris.NS.Exceptions.AeXException: Unable to build the client configuration XML for advertisement with guid Inventory Plug-in Upgrade (32ddda01-6e89-4fdf-b32a-b8e0b61ae38c). Reason: Unable to build the client configuration XML for advertisement with guid Inventory Plug-in for Windows Upgrade (45684873-d727-4877-bc0a-e3ce91641939). Reason: Did not get a row for Software Delivery Advertisement "Inventory Plug-in for Windows Upgrade", Guid = Inventory Plug-in for Windows Upgrade (45684873-d727-4877-bc0a-e3ce91641939) from the SWD tables. ---> Altiris.NS.Exceptions.AeXException: Unable to build the client configuration XML for advertisement with guid Inventory Plug-in for Windows Upgrade (45684873-d727-4877-bc0a-e3ce91641939). Reason: Did not get a row for Software Delivery Advertisement "Inventory Plug-in for Windows Upgrade", Guid = Inventory Plug-in for Windows Upgrade (45684873-d727-4877-bc0a-e3ce91641939) from the SWD tables. ---> Altiris.NS.Exceptions.AeXException: Did not get a row for Software Delivery Advertisement "Inventory Plug-in for Windows Upgrade", Guid = Inventory Plug-in for Windows Upgrade (45684873-d727-4877-bc0a-e3ce91641939) 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 )

davidhilling's picture

 Yes I am having the same issue. I have a call in with symantec now. They are seeing it in their lab as well. It just looks like it didnt do something to link the policies correctly. Mine is only affecting x64 though. Not sure why.

chessdotcom's picture

I'm glad they see it too. 

Do you mind linking or posting a fix when you get it?

davidhilling's picture

Yeah I will, Mine is a bit different but almost the same wording. Heres a piece of it.

 

 

Tick Count: 599382080
Process: w3wp (18340)
Thread ID: 9
Module: w3wp.exe
Source: Altiris.NS.AgentManagement.PolicyRequest.LoadItemPolicy
Description: Unable to generate policy XML for item: Software Update Plug-in Upgrade for Windows x64 (8a8de5d2-7428-4a52-bb42-a26ef525c487)
 
 
 
( Exception Details: Altiris.NS.Exceptions.AeXException: Unable to build the client configuration XML for advertisement with guid Software Update Plug-in Upgrade for Windows x64 (8a8de5d2-7428-4a52-bb42-a26ef525c487). Reason: Did not get a row for Software Delivery Advertisement "Software Update Plug-in Upgrade for Windows x64", Guid = Software Update Plug-in Upgrade for Windows x64 (8a8de5d2-7428-4a52-bb42-a26ef525c487) from the SWD tables. ---> Altiris.NS.Exceptions.AeXException: Did not get a row for Software Delivery Advertisement "Software Update Plug-in Upgrade for Windows x64", Guid = Software Update Plug-in Upgrade for Windows x64 (8a8de5d2-7428-4a52-bb42-a26ef525c487) from the SWD tables.
 
 
Im also seeing a different error a lot as well. I havent asked them about this one. Im seeing an database exception because the nse is trying t insert data in the wrong format. Also only started since sp2 so I may have to call them about this one too.
 
Log File Name: C:\ProgramData\Symantec\SMP\Logs\a.log
Priority: 1
Help and Support: 
Date: 1/11/2012 11:22:18 AM
Tick Count: 607990340
Host Name: W0BALT002
Process: AeXSvc (9152)
Thread ID: 389
Module: AeXSVC.exe
Source: Altiris.NS.StandardItems.Messaging.InventoryCaptureItem.OnMessage_Impl
Description: Failed to process NSE : 
 
 
 
( Exception Details: Altiris.NS.Exceptions.AeXException: Failed to load inventory. [Failed to commit fast insert in class : Inventory Results (bbfb84e5-3117-4022-8f6c-550d62ac1331) Inventory Results Please check the data in that class for invalid entries.] ---> Altiris.NS.Exceptions.AeXException: Failed to commit fast insert in class : Inventory Results (bbfb84e5-3117-4022-8f6c-550d62ac1331) Inventory Results Please check the data in that class for invalid entries. ---> System.ArgumentException: String was not recognized as a valid DateTime.Couldn't store <5142> in Collection Time Column.  Expected type is DateTime. ---> System.FormatException: String was not recognized as a valid DateTime.
   at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
   at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
   at System.Data.DataColumn.set_Item(Int32 record, Object value)
   --- End of inner exception stack trace ---
   at System.Data.DataColumn.set_Item(Int32 record, Object value)
   at System.Data.DataRow.set_Item(DataColumn column, Object value)
   at Altiris.NS.ResourceManagement.Database.DataLoaderSqlClientInserter.SetColumn(String Name, String Value)
   at Altiris.NS.ResourceManagement.Database.SetColumnCommand.Execute(IDataLoaderInserter inserter)
   at Altiris.NS.ResourceManagement.Database.SqlClientInserter.CommitAll()
   at Altiris.NS.ResourceManagement.DataClassRowCollection.InternalTableInserterImpl(IDataLoaderConnection connection, Hashtable resourceDLInfoHT, TargetTable targetTable, String strInserterTable, DataClass dataClass, DataClassRows dataClassRows)
   --- End of inner exception stack trace ---
chessdotcom's picture

I think if someone could export the missing packages to xml and post them here to import it would resolve both of our problems.

 

I looked but I don't see a Software Update Plug-in Upgrade for Windows x64 or I would export and attach for you.

 

I'm building a new server now to see if I can export the missing package and impor it to our production server.

andykn101's picture

The importexport util might be able to do it if anyone knows the GUID.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

davidhilling's picture

Seems to be pretty much exactly this issue... 

 

http://www.symantec.com/business/support/index?page=content&id=TECH155562

 

In essence when you upgrade to sp2 your uninstalling pre-sp2 and installing sp2. Support called me back today and they are seemingly leading in the same direction that is almost if not exactly this issue. But they didnt want me running the script for this to fix it without the backend team approving it.

chessdotcom's picture

I created a test server yesterday and exported the Inventory Plug-in for Windows 7.1.7580.0 - English (United States) to xml and imported it to our production server.  The errors have stopped and everything appears to be working normally.

 

Is the "Software Update Plug-in Upgrade for Windows x64" the same as "Patch Management Agent 7.1.7580.0 x64 - English (United States)"?  If so, I can export that package from my server and let you import it.

SOLUTION
davidhilling's picture

Well I was out friday and I tried the same thing from our test server. I havent had a chance to look yet to see if it worked. 

 

 

edit --- Hmm that software package doesnt exist on my test server either. Can you export it for me? I am not seeing an agent for it in nscap either... not sure where it is suppsed to be but since the other one is in NSCAP it may not have been added either. I may have to have you email/attach me that as well...weird. 

 

Thanks

davidhilling's picture

Ok rebuilt my test server and exported and imported software packages again for the ones causing me issue and it looks like its starting to fix the problem....at least my x64 clients are getting the software update agent now... still checking on the other couple packages that were fubar... in one case the package was there but the command line for how to install it was gone....

 

 

cheeky

chessdotcom's picture

ok, good to know.

 

Just got your previous messages.  If you still need the export, let me know.

davidhilling's picture

Now im just having issues where patches are detected as being needed but never install..... good job with this update symantec...works flawlessly angry

chessdotcom's picture

I'm going to mark this problem as resolved since my original problem appears to be fixed.

If you are still having trouble with patch management, you could open another forum discussion.

You might try

aexconfig /configure C:\Program Files\Altiris\Patch Management\Core\Config\PatchManagementCore.config

but do so at your own risk. 

I agree with you.  It seems I spend more time fixing other problems after every update.  I usually have to do an aexconfig /configureall and pray. 

This version is much better than 7.0 though. 

Rick D's picture

I'm still getting this error, been working with support close to 3 weeks with no resolution.  I did see come across this document but it also did not resolve the issue

http://www.symantec.com/docs/TECH180513

I did note that after sp2 that the latest Inventory Plug-in was missing the package although it still had the command line entries.

Service Pack 2 have been very frustrating.