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

BadAttributeIdInvalid when browsing Server #155

Closed
Superwalker34 opened this issue Apr 18, 2024 · 1 comment
Closed

BadAttributeIdInvalid when browsing Server #155

Superwalker34 opened this issue Apr 18, 2024 · 1 comment

Comments

@Superwalker34
Copy link

Hello
Great library! I'm developing an OPC-UA Server as module to an existing Machine control software. I'm quite new in OPC-UA world, please forgive me if my question is dumb.

I'm facing a browsing error within standard Server topic with uaExpert:
image

I think this BadAttributeIdInvalid of ValueRank makes trouble within Kepware Client in browsing phase.

I made a test: In HandleReadRequest I added line 626 .NET:

else if (readValueIds[i].AttributeId == NodeAttribute.ValueRank && !(node is NodeVariable))
{
    res[i] = new DataValue(-1, StatusCode.Good);
}

Now I don't have errors anymore in uaExpert. It means that uaExpert try to get a ValueRank of of a no-NodeVariable. I don't understand why?

@nauful
Copy link
Owner

nauful commented Apr 19, 2024

UaExpert tries to read all possible attributes for every node to show in its attribute table on the right side of the window, even invalid ones. ValueRank is not valid for values which aren't arrays.

@nauful nauful closed this as completed Apr 19, 2024
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

2 participants