Error 7012 with Datasource OPC UA Client: Username

I am using my PFC200 with the Datasource as OPC UA Client, but when I start the program, I get the error 7012: The username that is passed to the userconfiguration at runtime must be the same as the username passed in the Datasource configuration. In the Logs there is a message “diffring username at configuration and run time. vs. OpcUser” (with a empty space before the vs.)
OpcUser is the right user, I can see the login attempt in the OPC Server Logs, but no data is send. Where do I need to add the user?

I have tried different Security Settings (Policies and Modes) but the error is still the same. Certificates are valid and accepted on both ends. Reading the OPC variables from the server via Codesys works great.

Codesys V3.5 SP19 Patch 7
Wago PFC200 750-8212 04.05.10(27)

Hi, were you able to figure this out?

Hello, was this issue solved?

I have a similar issue. I am able to connect to the OPC UA server. However, after some time (maybe a restart of the OPC UA server) the connection is lost and I cannot reconnect again because of the above mentioned fault.

I tried to handle this programmatically by trying to reinitialize the OPC UA client (Datasource), but it keeps comming back with this error. I have to reset the PLC in order to solve it.