cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PCo - Could not dispatch message, an item with the same key has already been added

matheusilva
Discoverer
0 Kudos
750

Dear experts,

We are using PCo to read data from a PI AF (Asset Framework Source System) and send it to a API (Universal Web Service Destination System). There are around 260 Subscription Items and its relative Output Expressions in the notification.

When initiating the Agent Instance, we get the following error in the log:

28-Oct-22 4:09:00 PM 750 Error NPAA8951 15 22308 PCoSvcHost Dispatcher 1138 Could not dispatch Message [id = 36c7c086-39ef-483d-861e-2ab5c0a0d8fd]. ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at SAP.Manufacturing.Connectivity.Destinations.UniWs.Config.NotificationsMapper.RetrieveRequestVariables(DestinationBase destinationBase, NotificationMessage message, Notification notification, Destination notificationDestination)
at SAP.Manufacturing.Connectivity.Destinations.UniWs.Config.NotificationsMapper.ExtractVariables(DestinationBase destinationBase, MessageBundlingTool bundlingTool, NotificationMessage message, Notification notification)
at SAP.Manufacturing.Connectivity.Destinations.UniWs.UniWsDestination.Send(NotificationMessage message)
at SAP.Manufacturing.Connectivity.Dispatcher.ProcessMessage(NotificationMessage message, DestinationBase destination)
at SAP.Manufacturing.Connectivity.Dispatcher.DispatchMessageExecute(DataQueueItem message, Boolean unlockMessage, Boolean parallelThreads, Int32 messageQueueCategory, Boolean& stopDispatcher)

When initiating the Agent Instance, we get the following error in the log:

I checked for duplicate Subscription Items and Output Expressions and could not find any. Where else should I look for duplicates, since the error message is not clear enough to let me know what is happening?

Accepted Solutions (0)

Answers (0)