Failure while creating resource item when using Receive Items From Purchase Order
search cancel

Failure while creating resource item when using Receive Items From Purchase Order

book

Article ID: 396683

calendar_today

Updated On:

Products

IT Management Suite Asset Management Solution

Issue/Introduction

You recently upgraded to ITMS 8.7.3 and since then, the following error started to occur when using "Receive All > Receive" under the "Receive Items From Purchase Order" option for "Home>Service and Asset Management>Procurement>Purchase Order"

"A resource with a duplicate field 'Serial Number' within the 'Serial Number' data class already exists in the system."

The NS logs shows the following entries:

Entry 1:

Failed when creating resource item Samsun A55: "A resource with a duplicate field 'Serial Number' within the 'Serial Number' data class already exists in the system."
-----------------------------------------------------------------------------------------------------
Date: 4/29/2025 8:05:30 AM, Tick Count: 312459187 (3.14:47:39.1870000), Size: 407 B
Process: w3wp (4516), Thread ID: 273, Module: Altiris.AssetContractCommon.dll
Priority: 1, Source: ResourceItemCreateHelper

 

Entry 2:

Error in ReceiveItems.aspx: unable to receive item - Samsun A55, "A resource with a duplicate field 'Serial Number' within the 'Serial Number' data class already exists in the system."
-----------------------------------------------------------------------------------------------------
Date: 4/29/2025 8:05:30 AM, Tick Count: 312459187 (3.14:47:39.1870000), HSize: 423 B
Process: w3wp (4516), Thread ID: 273, Module: Altiris.AssetControl.Web.dll
Priority: 1, Source: ReceiveItems.ReceiveAsync

 

Entry 3:

ResourcesAssociations with type[9ca42ac0-1fb7-4ed8-8d44-d51668d4436a] is not available for resource[3b6d5c4e-2fc8-477d-8b4c-f494ecb9fb74]

Message logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(int, string, string, Exception, string)
   at Altiris.Resource.ResourceAssociationsCollection.get_Item(Guid)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.GetAssociatedStockRoom(ResourceItem)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.GenerateItems(Guid)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.OnItemActionCallback(GuidCollection, string)
   at Altiris.AssetControl.Web.Receiving.Wizards.ReceiveItems.ReceiveAsync(object)
   at Altiris.AssetControl.Web.Receiving.Wizards.PageAsync.Action(object)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, object, bool)
   at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, object, bool)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

User [EXAMPLE\USER], AppDomain [/LM/W3SVC/1/ROOT/Altiris/AssetControl-5-133904087191117315]
-----------------------------------------------------------------------------------------------------
Date: 4/29/2025 8:05:30 AM, Tick Count: 312459203 (3.14:47:39.2030000), Size: 1.45 KB
Process: w3wp (4516), Thread ID: 273, Module: Altiris.NS.dll
Priority: 2, Source: ResourceAssociationsCollection.get_Item

 

Entry 4:

ResourcesAssociations with type[fd0a2540-c373-45c9-95c8-4e8177bf295b] is not available for resource[3b6d5c4e-2fc8-477d-8b4c-f494ecb9fb74]

Message logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(int, string, string, Exception, string)
   at Altiris.Resource.ResourceAssociationsCollection.get_Item(Guid)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.GetRequestorGuid(ResourceItem)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.GenerateItems(Guid)
   at Altiris.Receiving.ItemActions.GenerateReceivingItemAction.OnItemActionCallback(GuidCollection, string)
   at Altiris.AssetControl.Web.Receiving.Wizards.ReceiveItems.ReceiveAsync(object)
   at Altiris.AssetControl.Web.Receiving.Wizards.PageAsync.Action(object)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, object, bool)
   at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, object, bool)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

User [EXAMPLE\USER], AppDomain [/LM/W3SVC/1/ROOT/Altiris/AssetControl-5-133904087191117315]
-----------------------------------------------------------------------------------------------------
Date: 4/29/2025 8:05:30 AM, Tick Count: 312459218 (3.14:47:39.2180000), Size: 1.44 KB
Process: w3wp (4516), Thread ID: 273, Module: Altiris.NS.dll
Priority: 2, Source: ResourceAssociationsCollection.get_Item

Environment

ITMS 8.7.3

Cause

Known issue. the items received as new items from approved Purchase Order cannot be created because the Barcode or Serial Number already exists. It seems as if the SMP Server is interpreting the barcode or serial number empty field as having information, despite de fact that no barcode or serial number data was provided.

Resolution

This issue has been fixed in our ITMS 8.8 Release.

A pointfix is available for those with Asset Solution 8.7.3 version. See "Asset (Asset Management Solution) Fixes" section under CUMULATIVE POST ITMS 8.7.3 POINT FIXES