OPC write interface to the DeltaV Continuous Historian

Return codes for C# methods

A status summary message of any errors generated by a call to the CreateTags or WriteJournalArrays method appears in the Windows Event Viewer under Windows LogsApplication.

Table: TagError and PointResult return codes

Value
Name

Type Method Description

0x00000000
S_OK

TagError CreateTags All history tag creations succeeded.

0x80004005
XiFaultCodes.E_FAIL(1)

PointResult WriteJournalArrays An unknown error occurred while attempting to write history samples into existing history tags.

0x80004005
E_FAIL

TagError CreateTags An unexpected error occurred during history tag creation.

0x80040305
HDA_MSG_TAG_LIMIT_EXCEEDED

TagError CreateTags History tag creation failed because it would result in more than 2,000 tags in the current and active data sets.

0x80040307
DVCH_HDE_NOT_ENABLED

TagError CreateTags The Enable historical data entry option on the Advanced tab of the Continuous Historian Properties dialog is not enabled on the workstation where the DeltaV Continuous Historian is running.

0x80070057
E_INVALIDARG

TagError WriteJournalArrays
  • The time stamp of the history sample is outside the range of the current or active data set.
  • The handle of the history sample is not associated with a valid .HDE tag.

0x87770004
XiFaultCodes.E_ALIASNOTFOUND(1)

PointResult WriteJournalArrays Unable to locate the tag name for the specified history sample.

0xC0040006
OPC_E_BADRIGHTS

TagError CreateTags Invalid user security prevented history tag creation.

0xC0040007
OPC_E_UNKNOWNITEMID

PointResult WriteJournalArrays The item does not exist.

0xC0040008
OPC_E_INVALIDITEMID

PointResult WriteJournalArrays The OPC item ID was specified incorrectly.

0xC004100B
OPC_E_DATAEXISTS

PointResult WriteJournalArrays A history sample with the same time stamp has already been inserted.

0xE23E0017
HDA_MSG_NO_LICENSE_OR_OVER_MAX_CLIENTS

TagError CreateTags No licenses available or too many clients are currently connected.

0xE23E0453
HDA_MSG_TAG_ALREADY_EXISTS

TagError CreateTags History tag creation failed because the history tag already exists.

0xE23E0454
HDA_MSG_ILLEGAL_TAG

TagError CreateTags History tag creation failed because the history tag contains an illegal character, is missing the .HDE suffix, or is greater than 160 characters (excluding the .HDE suffix).

0xE23E0455
HDA_MSG_ILLEGAL_TAG_TYPE

TagError CreateTags History tag creation failed because the history tag type passed was something other than a DvCHFloat32 or DVCHUNCString.
(1) For a complete list of potential return codes for the CommitAddedElementsToServerList method, see the XiFaultCodes class of the SampleDataWriterClient_CS sample client project.
Note

TagError return codes are identical to ppError return codes returned by the C++ CreateTags method used to create new history tags.