AnsweredAssumed Answered

PI Connector OPC UA Error

Question asked by RoyRobinJr on Feb 22, 2019
Latest reply on Feb 23, 2019 by RoyRobinJr

Hi community,

 

Asking for help regarding PI connector OPC UA,

Currently having buffer issues:

 

Severity: Information

Severity: Error

Timestamp: 02/22/2019 19:25:11.712

Message: System.ArgumentException: Can not add property OPC UA.IB.2.Channel1.TSRA.TSRA_SS_Running to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.

at Newtonsoft.Json.Linq.JObject.ValidateToken(JToken o, JToken existing)

at Newtonsoft.Json.Linq.JContainer.InsertItem(Int32 index, JToken item, Boolean skipParentCheck)

at Newtonsoft.Json.Linq.JContainer.AddInternal(Int32 index, Object content, Boolean skipParentCheck)

at Newtonsoft.Json.Linq.JTokenWriter.AddParent(JContainer container)

at Newtonsoft.Json.Linq.JTokenWriter.WritePropertyName(String name)

at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Int32 initialDepth, Boolean writeChildren, Boolean writeDateConstructorAsDate)

at Newtonsoft.Json.JsonWriter.WriteToken(JsonReader reader, Boolean writeChildren, Boolean writeDateConstructorAsDate)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateJObject(JsonReader reader)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)

at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)

at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)

at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)

at OSIsoft.Tau.RuntimeConfiguration.JsonConfigurationProvider.GetOrCreatePartition(String partition)

at OSIsoft.Tau.RuntimeConfiguration.JsonConfigurationProvider.GetConfiguration[T](String configPartition, String configUid)

at OSIsoft.Tau.RuntimeConfiguration.JsonConfigurationProvider.GetConfiguration[T](String configPartition)

at OSIsoft.Tau.Formatting.StreamNameMapper.InitializeMaps()

at OSIsoft.Tau.Formatting.StreamNameMapper.Initialize()

at OSIsoft.Tau.Formatting.StreamNameMapper.GetStreamName(TauSchema schema, String prefixKey, String partition, String id, String attributeName)

at OSIsoft.Tau.PI.TauEventToPIEventObserverMapper.GetPiNetStreamName(String attributeName)

at OSIsoft.Tau.PI.TauEventToPIEventObserverMapper.BuildDirectMapping(TauMemberSchemaAttribute schemaAttribute, Int32 timeStampIndex, Int32 schemaAttributeIndex)

at OSIsoft.Tau.PI.TauEventToPIEventObserverMapper.BuildMapping()

at OSIsoft.Tau.PI.TauEventToPIEventObserverMapper.Initialize()

at OSIsoft.Tau.PI.PI.Mapping.TauEventToPIMapperService.GetOrCreateValueMapper(String streamId, TauSchema schema)

at OSIsoft.Tau.ObserverBuffer.PI.PIEventQueueBatch.AddDataToValueQueue(String streamId, TauEvent data)

at OSIsoft.Tau.Framework.Common.TauEventQueue.BatchedTauEventQueue`1.ReRoute(Byte[] bytes)

at OSIsoft.Tau.IO.TauMessageBody`1.Execute(Delegate action)

 

 

 

Severity: Information

Timestamp: 02/22/2019 19:25:11.665

Message: File C:\ProgramData\OSIsoft\Tau\OpcUa.ConnectorHost\OPC UA\Buffer\pi_PI-DATAARCHV1\636864290278419159\state\eydxoojw.dat present on disk with a size of 20971520 bytes.

 

 

Currently I exported again new set of tags from OPC Server. Then reload it from PI Connector. So we have a script to be able to inherit the OPC UA tags to the old tags. from that script i replace the old OPC Ua tags to the new set tags of OPC Server. Then now im currently encountering this error on bold.

 

My troubleshooting is:

 

I modify the old buffer folder then re-run the PI connector but after all are connected error still encountering.

 

See screenshot for buffered events this doest not continue to the PI Data archive

 

TIA for you help!

 

Thanks!

Outcomes