search cancel

Error "Failed to save import item" on saving AD import rule

book

Article ID: 163330

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

When attempting to save an AD import rule with long name ( this can grow long when adding multiple OUs), an error will be returned:

An error occured while saving the import rules to the database. Web service error: Error occurred ---> Failed to save import rule: 5aaec75f-ee6b-478b-9ddb-9b08bfcf3a1d

Failed to save import rule: 5aaec75f-ee6b-478b-9ddb-9b08bfcf3a1d

Unable to update the scheduling information associated with the item: 5b8fea39-332e-452f-bddd-aae45bab69d1

   [Altiris.NS.Exceptions.AeXException @ Altiris.NS]

   at Altiris.NS.ItemManagement.Item.NotifyItemScheduler(ItemNotificationType notificationType, String oldItemName)

   at Altiris.NS.ItemManagement.Item.SaveItemSchedule(Item me, Boolean bExistingItem)

   at Altiris.NS.ItemManagement.ManagementItem.OnSave(Boolean bExistingItem)

   at Altiris.NS.ItemManagement.Item.Save()

   at Altiris.DirectoryServices.NSDirectoryItems.DirectoryImportItem.EnsureScheduleItem(CodeProfiler cp, DirectoryImportItem rule, Guid guid, Boolean full, Action`1 adjust)

   at Altiris.DirectoryServices.NSDirectoryItems.DirectoryImportItem.SaveSchedule(DirectoryImportItem rule, XmlNode xmlDoc, Boolean full, IRuleLocalizationData loc)

   at Altiris.DirectoryServices.NSDirectoryItems.DirectoryImportItem.<>c__DisplayClass3.<SaveImportRule>b__0(IDatabaseContext ctx)

   at Altiris.Database.DatabaseContext`1.RetryAction(Int32 retries, Boolean transacted, Getter`1 getContext, Action`1 action, Action`1 retry, DeadlockRetryArgs& re, Exception& exception, Boolean inTransaction)

   at Altiris.Database.DatabaseContext`1.PerformWithDeadlockRetryHelper(Int32 retries, Boolean inTransaction, Getter`1 getContext, Action`1 action, Action`1 retry, Boolean transacted)

   at Altiris.Database.DatabaseContext`1.PerformTransactedDeadlockRetry(Int32 retries, Getter`1 getContext, Action`1 action, Action`1 retry)

   at Altiris.DirectoryServices.NSDirectoryItems.DirectoryImportItem.SaveImportRule(Guid itemGuid, XmlDocument doc, IRuleLocalizationData loc)

 

Unable to update the scheduling data associated with the item: 5b8fea39-332e-452f-bddd-aae45bab69d1

   [Altiris.NS.Exceptions.AeXException @ Altiris.NS]

   at Altiris.NS.ItemManagement.ItemScheduleMonitor.Notify(ItemNotificationType type, IItem item, String oldItemName)

   at Altiris.NS.ItemManagement.Item.NotifyItemScheduler(ItemNotificationType notificationType, String oldItemName)

 

The system cannot find the path specified. (Exception from HRESULT: 0x80070003)

   [System.IO.DirectoryNotFoundException @ Altiris.Interop]

   at Altiris.Interop.ITaskScheduler.NewWorkItem(String taskName, Guid& rclsid, Guid& riid, Object& unk)

   at Altiris.NS.Scheduling.ScheduleManagerInterop1.SetTask(String taskName, String taskData)

   at Altiris.NS.Scheduling.ScheduleManagerInteropContext.SetTask(String name, String task)

   at Altiris.NS.ItemManagement.ItemScheduleMonitor.CreateCustomSchedule(CodeProfiler cp, ScheduleManagerInteropContext tasks, String xml, IItemScheduling ische, ECreateOrUpdateResult re, String name)

   at Altiris.NS.ItemManagement.ItemScheduleMonitor.CreateOrUpdate(ScheduleManagerInteropContext tasks, IItem item, String oldItemName, Boolean forceOldRemove)

   at Altiris.NS.ItemManagement.ItemScheduleMonitor.CreateOrUpdate(IItem item, String oldItemName, Boolean forceOldRemove)

   at Altiris.NS.ItemManagement.ItemScheduleMonitor.Notify(ItemNotificationType type, IItem item, String oldItemName)

 

Cause

Product defect.

Resolution

This issue has been reported to the Symantec Development team. A Fix has been included under ITMS 8.0 HF2 release (DOC9343)

As a workaround use shorter custom rule names - double click on rule name and there will be a dialog to enter custom name.