ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

"Prepare for Image capture" task is failing: An unexpected error occurred while saving this task. See Altiris logs.

book

Article ID: 212540

calendar_today

Updated On:

Products

Deployment Solution

Issue/Introduction

When creating a new image task, the customer gets an error that says "An unexpected error occurred while saving this tasks. See Altiris logs."

 

The NS logs shows the following entries:

Entry 1:

BaseAnswerFile:ToXML filename = 
-----------------------------------------------------------------------------------------------------
Date: 4/12/2021 8:38:36 AM, Tick Count: 846827140 (9.19:13:47.1400000), Size: 278 B
Process: w3wp (5692), Thread ID: 133, Module: Symantec.Deployment.dll
Priority: 4, Source: Altiris.Deployment.BaseAnswerFile.ToXml

Entry 2:

BaseAnswerFile:ReadFile filename =  \\SMPServer\NSCap\bin\Win32\X86\Deployment\unattend.xml
-----------------------------------------------------------------------------------------------------
Date: 4/12/2021 8:38:36 AM, Tick Count: 846827140 (9.19:13:47.1400000), Size: 352 B
Process: w3wp (5692), Thread ID: 133, Module: Symantec.Deployment.dll
Priority: 4, Source: Altiris.Deployment.BaseAnswerFile.ReadFile

Entry 3:

Item save to DB failed: 0df56f75-d569-4ff3-8112-cf1d4980ddbb, (fromClone=False, user=domain\username)

Could not find file '\\SMPserver\NSCap\bin\Win32\X86\Deployment\unattend.xml'.
   [System.IO.FileNotFoundException @ mscorlib]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding)
   at Altiris.Deployment.BaseAnswerFile.ReadFile(String file)
   at Altiris.Deployment.PreImage.OnToVersionXml(XmlTextWriter xmlBuilder)
   at Altiris.Profiling.Support.XmlFormatOps.ToXml(Action`1 fu, String root, Boolean indented)
   at Altiris.TaskManagement.VersionItem.ToVersionXml()
   at Altiris.TaskManagement.VersionItem.OnSave(Boolean bExistingItem)
   at Altiris.TaskManagement.BaseTask.OnSave(Boolean bExistingItem)
   at Altiris.NS.ItemManagement.Item.Save()

Exception logged from: 
   at Altiris.NS.ItemManagement.Item.Save()
   at Altiris.NS.ItemManagement.Item.Create(System.Guid)
   at Altiris.TaskManagement.UI.Controls.CreateNewTaskEditControl.SaveTask()
   at Altiris.TaskManagement.UI.Controls.CreateNewTaskControl.SaveTask()
   at Altiris.TaskManagement.Web.CreateNewTask.ButtonOK_Click(Object, EventArgs)
   at Altiris.WebControls.ButtonState.RaiseClick()
   at Altiris.WebControls.ButtonListControl.RaisePostBackEvent(String)
   at System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

HTTP [POST]: http://10.1.1.24/Altiris/TaskManagement/CreateNewTask.aspx?Caller=UserCreatable&classFilter=a0be8254-8b5f-4c8c-b1b0-55323ec1178a&ExcludeInterfaceGuid=821c3d80-699f-4097-8480-37fb200ebdf5&TreeGuid=f808dad8-5591-4d57-bc50-1e22d4056845&ItemGuid=f7705f43-bf41-487a-afee-f0c0cef64cdf&PageInstance=e2a16f65-0cfe-4cfd-8e18-edd9393c3dcf
 ip: [10.101.4.35]; languages: [en-US,en;q=0.9]; content-length: [97833];
 timings: [[R] 00:00:00.1405680(W: 00:00:00)];
 response: [200 OK]; x-smp-nsversion: [8.6.1119.0];

-----------------------------------------------------------------------------------------------------
Date: 4/12/2021 8:38:36 AM, Tick Count: 846827140 (9.19:13:47.1400000), Size: 4.00 KB
Process: w3wp (5692), Thread ID: 133, Module: Altiris.NS.dll
Priority: 1, Source: Resource.SaveResourceToDatabase

Entry 4:

Unexpected exception saving new task

Item save failed: 'Prepare 705' (0df56f75-d569-4ff3-8112-cf1d4980ddbb)
   [Altiris.NS.Exceptions.AeXException @ Altiris.NS]
   at Altiris.NS.ItemManagement.Item.Save()
   at Altiris.NS.ItemManagement.Item.Create(Guid productGuid)
   at Altiris.TaskManagement.UI.Controls.CreateNewTaskEditControl.SaveTask()
   at Altiris.TaskManagement.UI.Controls.CreateNewTaskControl.SaveTask()
   at Altiris.TaskManagement.Web.CreateNewTask.ButtonOK_Click(Object sender, EventArgs e)

Could not find file '\\SMPserver\NSCap\bin\Win32\X86\Deployment\unattend.xml'.
   [System.IO.FileNotFoundException @ mscorlib]
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding)
   at Altiris.Deployment.BaseAnswerFile.ReadFile(String file)
   at Altiris.Deployment.PreImage.OnToVersionXml(XmlTextWriter xmlBuilder)
   at Altiris.Profiling.Support.XmlFormatOps.ToXml(Action`1 fu, String root, Boolean indented)
   at Altiris.TaskManagement.VersionItem.ToVersionXml()
   at Altiris.TaskManagement.VersionItem.OnSave(Boolean bExistingItem)
   at Altiris.TaskManagement.BaseTask.OnSave(Boolean bExistingItem)
   at Altiris.NS.ItemManagement.Item.Save()

Exception logged from: 
   at Altiris.TaskManagement.Web.CreateNewTask.ButtonOK_Click(Object, EventArgs)
   at Altiris.WebControls.ButtonState.RaiseClick()
   at Altiris.WebControls.ButtonListControl.RaisePostBackEvent(String)
   at System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest(Boolean, Boolean)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.Controls.PageCachePage.ProcessRequest(System.Web.HttpContext)
   at Altiris.NS.UI.AltirisPage.ProcessRequest(System.Web.HttpContext)
   at System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(System.Web.HttpApplication+IExecutionStep)
   at System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication+IExecutionStep, Boolean&)
   at System.Web.HttpApplication+PipelineStepManager.ResumeSteps(Exception)
   at System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, AsyncCallback)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)

HTTP [POST]: http://10.1.1.24/Altiris/TaskManagement/CreateNewTask.aspx?Caller=UserCreatable&classFilter=a0be8254-8b5f-4c8c-b1b0-55323ec1178a&ExcludeInterfaceGuid=821c3d80-699f-4097-8480-37fb200ebdf5&TreeGuid=f808dad8-5591-4d57-bc50-1e22d4056845&ItemGuid=f7705f43-bf41-487a-afee-f0c0cef64cdf&PageInstance=e2a16f65-0cfe-4cfd-8e18-edd9393c3dcf
 ip: [10.101.4.35]; languages: [en-US,en;q=0.9]; content-length: [97833];
 timings: [[R] 00:00:00.1562043(W: 00:00:00)];
 response: [200 OK]; x-smp-nsversion: [8.6.1119.0];

-----------------------------------------------------------------------------------------------------
Date: 4/12/2021 8:38:36 AM, Tick Count: 846827156 (9.19:13:47.1560000), Size: 4.18 KB
Process: w3wp (5692), Thread ID: 133, Module: Altiris.TaskManagement.Web.dll
Priority: 1, Source: Altiris.TaskManagement.Web.CreateNewTask.ButtonOK_Click

Cause

The issue was caused because the expected file, unattend.xml, was not present under '\\SMPserver\NSCap\bin\Win32\X86\Deployment\'

Environment

ITMS 8.5, 8.6

Resolution

The quickest way to solve this issue is to place "unattend.xml" file from another working SMP server. However, it is most likely you you may have more files missing.

Check if the "Deployment" folder looks like this:

If you have more files and folders missing, run a repair on Deployment Solution:

1. Open SIM (Symantec Installation Manager)
2. Click on "Repair installed products". A new page opens.
3. Select "Repair MSI-s". Click Next.
4. On the "Repair" page, select "Altiris Deployment Solution 8.6". Click Next.
5. Click "Repair".

Attachments