Video Screencast Help

Investigating ItemNotFound Errors

Created: 04 Oct 2007 | 4 comments
Language Translations
SK's picture
0 0 Votes
Login to vote

Stumped by those pesky ItemNotFound errors that NS might be throwing at your enterprise? Here's some helpful info straight from the one of the bright minds on the Altiris support team. Check it out.

The following two types of errors will be recorded when this scenario happens:

Priority: 1
Date: 26/09/2007 02:10:22
Tick Count: -1357223906
Host Name: NS
Process: aexsvc.exe (376)
Thread ID: 44832
Module: AltirisNativeHelper.dll
Source: Altiris.NS.LegacyInterop.ItemMessageDispatcherService.Dispatch
Description: ItemMessageDispatcherService::Dispatch ( Unhandled exception. Type=Altiris.NS.Exceptions.AeXItemNotFoundException Msg=Unable to load the target item for the client message. (Guid: "5538fd56-1a11-4205-b419-80d42c88e66f") Src=Altiris.NS.5xInterop StackTrace=at Altiris.NS.LegacyInterop.ItemMessageDispatcherService.Dispatch(String message, Boolean useFilename) ) 

Priority: 1
Date: 26/09/2007 02:10:34
Tick Count: -1357211828
Host Name: NS
Process: aexsvc.exe (376)
Thread ID: 44832
Module: AltirisNativeHelper.dll
Source: Altiris.NS.ClientMessaging.FileDispatcher.ProcessFileCallback
Description: Unable to process the file "D:\Program Files\Altiris\Notification Server\NSCap\EvtQFast\Process\nse3E04.tmp" Moving to "D:\Program Files\Altiris\Notification Server\NSCap\EvtQFast\Bad\ItemNotFoundException\nse3E37.tmp". Reason: Unable to load the target item for the client message. (Guid: "5538fd56-1a11-4205-b419-80d42c88e66f")

The first error tells you that the NS cannot find a certain item, in this case Guid 5538fd56-1a11-4205-b419-80d42c88e66f, and the second error tells you that the NS has placed this NSE file into the ".\Altiris\Notification Server\NSCap\EvtQFast\Bad\ItemNotFoundException\" directory as it failed to process it.

You now need to look at this NSE file, and then run the following queries on the NS that is having these problems as well as on one that isnt, to find out information about the ResourceGuid, ScenarioGuid, DataClass and any Guids mentioned in "c" sections:

Scenario and "c" Guids:

SELECT [Name],[Description],ProductGuid FROM Item 
WHERE Guid = 'Guid'

DataClass Guid:

SELECT * FROM DataClass WHERE Guid = 'Guid'

ResourceGuid and ProductGuid:

SELECT [Name],[Description] FROM Item 
WHERE Guid = 'Guid'

Once you have the ProductGuid, run the query against it in order to find out which product is associated with these errors. Thesse errors are caused by an item that previously existed on the NS no longer existing. Normally these items are user created items, however, this situation can also happen if a default item has been deleted too.

To resolve this, you either have to bite the bullet and allow the NS to class these status messages as bad, or, you locate the item from a different NS and import it into the one that is having this issue.

Comments 4 CommentsJump to latest comment

cnpalmer75's picture

If you find the product guid from a previously installed product that you no longer have installed, you can run a query based upon item guid and it will find that item across all tables in the NS. You can then run another query to then remove that item guid across those same tables.

I'll post the query under another head's up.

Benjamin Z. Palmer
Architect | Workspace Design | The Hartford | Simsbury, CT 06082

Benjamin Palmer
Specialist | Client Design
Director | Symantec CT User Group

If you find this post helpful please give it a thumbs up!
If you find that this solves your problem please mark it as the solu

0
Login to vote
cnpalmer75's picture

I already posted that here...

http://juice.altiris.com/node/2199

Benjamin Z. Palmer
Architect | Workspace Design | The Hartford | Simsbury, CT 06082

Benjamin Palmer
Specialist | Client Design
Director | Symantec CT User Group

If you find this post helpful please give it a thumbs up!
If you find that this solves your problem please mark it as the solu

0
Login to vote
chaotech's picture

Sorry to bump an old thread, but I thought it might be useful to anyone reading this to add that when you can't import a given task from another NS to enable your server to process these NSEs, another (and in some cases better) option is to remove the orphaned packages/tasks from the clients that are sending them.

Check out the Altiris KB article 3861...

It helped me quite a bit.

0
Login to vote
Alex Held's picture

The ItemNotFound indicates there is no entry in the Item table for that guid.

If the Item was delete, there is an entry in the ItemDeleted table.

-- Shows deleted item with class type.
select id.[ItemName], cl.[Type], id.[DeletedDate]
from ItemDeleted id
join Class cl on cl.[Guid] = id.[ItemClassGuid]
where [ItemGuid] = '%ItemNotFoundGuid%'

0
Login to vote