Citect Connector Not Transferring Data for Historicized Discrete Tags

All the historicized discrete tags being read from CitectSCADA to the Historian are not being updated in the historian. Stopped working about 6 days ago , no windows updates or system changes.

The logs for the connector have the exception below , and think this is the issue, but have tried pretty much everything standard and no solution .

The analog trends are fine though.

Anyone experience this issue?

/!Error - Exception: Error While reading Variable Data
System.AggregateException: One or more errors occurred. ---> SchneiderElectric.Data.CitectClient.CitectException: Exception of type 'SchneiderElectric.Data.CitectClient.CitectException' was thrown.
   at SchneiderElectric.Data.CitectClient.CitectConnection.ReadListItem(IntPtr itemHandle, ListItemProperty itemProperty, PropertyFormatModes format, StringBuilder value)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.<>c__DisplayClass42.<ReadListItem>b__41(ICitectConnection c)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.<>c__DisplayClass4c.<PerformActionOnPreferredConnection>b__4b(ICitectConnection c)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.PerformFunctionOnPreferredConnection[T](Func`2 function)
   --- End of inner exception stack trace ---
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.PerformFunctionOnPreferredConnection[T](Func`2 function)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.PerformActionOnPreferredConnection(Action`1 action)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.ReadListItem(IntPtr itemHandle, ListItemProperty itemProperty, PropertyFormatModes format, StringBuilder value)
   at SchneiderElectric.Data.CitectClient.CitectList.UpdateItemValues(CitectListItem item, IntPtr eventHandle, StringBuilder fieldValue, IEnumerable`1 propertiesToRead)
   at SchneiderElectric.Data.CitectClient.CitectList.ReadLightweight(ListItemProperty[] properties, Boolean logPartialErrors, IReadOnlyDictionary`2& partialErrors)
   at SchneiderElectric.Data.CitectClient.CitectList.ReadAll(ListItemProperty[] properties, Boolean logPartialErrors, IReadOnlyDictionary`2& partialErrors)
   at SchneiderElectric.Data.CitectClient.CitectList.ReadAll(IReadOnlyDictionary`2& partialErrors)
   at SchneiderElectric.HistorianConnector.Citect.CitectVariableTagReader.ReadData()
   at SchneiderElectric.HistorianConnector.RuntimeTagTransferEngine.TransferVariableData()
---> (Inner Exception #0) SchneiderElectric.Data.CitectClient.CitectException: Exception of type 'SchneiderElectric.Data.CitectClient.CitectException' was thrown.
   at SchneiderElectric.Data.CitectClient.CitectConnection.ReadListItem(IntPtr itemHandle, ListItemProperty itemProperty, PropertyFormatModes format, StringBuilder value)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.<>c__DisplayClass42.<ReadListItem>b__41(ICitectConnection c)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.<>c__DisplayClass4c.<PerformActionOnPreferredConnection>b__4b(ICitectConnection c)
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.PerformFunctionOnPreferredConnection[T](Func`2 function)<---

---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): No process is on the other end of the pipe
   at SchneiderElectric.Data.CitectClient.CitectConnection.Open()
   at SchneiderElectric.Data.CitectClient.CitectRedundantConnection.PerformFunctionOnPreferredConnection[T](Func`2 function)<---

  • Hi  ,

    I assume you are using the latest version of the Citect SCADA Connector (v3.0 + HF for SE.HistorianConnector.dll backfill issue)?

    I also assume you have configured redundancy (Standby CTAPI Server) in the "Citect SCADA" settings? This is a known issue and reported in bug 66642. It was raised a long time ago and hasn't been resolved yet. I recommend contacting AVEVA Support and requesting a fix for this problem.

    A work around would be to configure 2-byte Trends that point to the same Variable Tag. Switch off the Historize True flag on the digital variable tags. And enable the Historize flag on the the 2-byte digital trends.

    Kind regards

    Olivier 

  • Thanks   
    Yes the connector is the latest and has the HF for SE.HistorianConnector.dll.

    We did remove the standby server configuration from the connector settings and no longer got the exception. We started getting a new warnings instead in the SMC and the connector logs 

    ReadData failed. There is one or more failed attempt of tag value update. Error code:12

    and 

    2022-09-02 11:35:01.3663|FATAL|RuntimeTagTransfer|Error While reading Variable Data
       at SchneiderElectric.HistorianConnector.Citect.CitectVariableTagReader.ReadData()
       at SchneiderElectric.HistorianConnector.RuntimeTagTransferEngine.TransferVariableData()

    Any info on what Error Code:12 is?

    Having raised with AVEVA Support

  • It appears that error code 12 is likely just being passed through from the IO Device level, to the CTAPI ctTagRead command. It basically means the IO Device is offline. It might be worth checking in SCADA runtime, on the IO Server that hosts the IO Device, to see in the kernel (or syslog) what error it is reporting.

    gcsresource.aveva.com/.../Generic_Errors.html

  • Thanks  
    Removing the Standby Connection resolved the issue the other one was an IO device offline.
    Would be lovely if they fixed these issues with the connector it's almost always a pain. Hopefully the move to AVEVA comes up with a better solution like the setup for System Platform