OPC UA PubSub Configuration Error (PLCN0034): '...': The target variable '...' was not found in the current configuration or it does not have a supported type.
In the configuration of the OPC UA PubSub communication, a subscribed data item is mapped to variable which is not available in your configuration.
Possible reasons:- The target port/variable has been deleted or renamed afterwards.
- The data type of the target port/variable has been modified afterwards. As a consequence, the data type of the mapped variable (contained in a data set) and the data type of the target port/variable do no longer match.
- The 'Usage' of the target port/variable has been changed. The PubSub communication supports IN ports (but no OUT ports) as target ports and resource-globals (no locals or In/Out variables) as target variables.
Remedy
Make sure that the ports/variables included in a data set actually exist with a correct name, usage and data type in the project. Either- refactor the affected target port/variable accordingly,
- or assign the modified target port/variable in the variables list of the reader,
- or remove the assignment the variables list of the reader.