Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The extension object cannot be (de)serialized because the data type id is not recognized. StatusBadDataTypeIdUnknown (0x80110000) #739

Open
hassanrwarraich opened this issue Jul 24, 2024 · 0 comments

Comments

@hassanrwarraich
Copy link

I am new to OPC and was trying to read from an OPC UA server, but I encountered the following error:
StatusBadDataTypeIdUnknown (0x80110000) error.

I’m reading the data as follows

        nodeID, err := ua.ParseNodeID(nodeIDStr)
	if err != nil {
		return domain.NodeValue{}, err
	}

	var resp *ua.ReadResponse

	resp, err = o.client.Read(ctx, &ua.ReadRequest{
		MaxAge:             2000,
		NodesToRead:        []*ua.ReadValueID{{NodeID: nodeID}},
		TimestampsToReturn: ua.TimestampsToReturnBoth,
	})

The type of data on the WinCC is displayed as Binary Tag

binaryTag

However when I try to read it gives me the error

The extension object cannot be (de)serialized because the data type id is not recognized. StatusBadDataTypeIdUnknown (0x80110000)
I wonder if there is a way in OPC UA to discover or get data types from the server? If there isn’t, how can I identify the data type and register it with the client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant