Skip to Content
0
Former Member
Feb 16, 2011 at 11:07 PM

MII 11.5 and PCo 2.1 and Tag Query Error

65 Views

Hi,

I have KEPWare OPC server configured with a single tag, and with the OPC Client open. I have PCo 2.1 configured with a single agent, and 'legacy' ticked with port 9001. I have a UDS connector pointing to port 9001, and a tag query in 'currentwrite' mode, and can successfully write a value from the query editor (within MII 11.5) to KEPWare, when tested directly within the MII query editor.

However, when I call the same tag query from within an MII transaction, and set 'TagName.1' and 'TagValue.1' to the values I want, I get the following error:

"An item with the same key has already been added. at SAP.Manufacturing.Connectivity.Protocol.Custom.PCoQueryRequestHandler.ProcessRequest(Object handler)"

I see this error in the PCo log.

Interesting thing is, that within the transaction editor, when I select the underlying tag query, and the editor asks to generate the XML, and I say Yes, the underlying tag query runs fine (I can see the value getting updated within KEPWare).

I've also tried with/without subscription items in PCo, plus different settings for 'Cache Mode' in PCo, plus using fully qualified tag name (ie: channel.device.tag as KEPWare sees it), etc, but in all cases I get the above error.

Any ideas?