Troubleshooting
Why Data Service metadata topic subscription failed
Short answer
The metadata field in the Data Service needs the metadata topic, not the tag topic: m in the third position, your connector instance name, ending in dp, for example ie/m/j/simatic/v1/opcuac1/dp. The tag string with the r level and the # wildcard is valid MQTT but never carries metadata, so the subscription keeps failing; grant the Databus user subscribe rights on the metadata branch, enter the m-branch string, and activate.

On this page
The Data Service raises the error "Subscribing to the metadata topic of the connector failed" when its subscription to the metadata topic of an activated OPC UA Connector fails, and in nearly every case the string sitting in the metadata field is the tag topic, not the metadata topic. The field must carry ie/m/j/simatic/v1/<instance>/dp: m in the third position, your connector instance name, ending at dp, with no r level and no # wildcard. The tag string ie/d/j/simatic/v1/<instance>/dp/r/# is a valid MQTT subscription for values, so it connects, never receives a metadata document, and the error stays with only its text changed. Enter the m-branch topic, confirm the Databus user's rights cover the metadata branch, save, and activate the connector.
What the error is telling you #
The Data Service consumes two topic families from the same connector. The metadata family carries the description of the data points — names, addresses, data types — and lets the subscribing application build its tag tree. The data family carries the live values. The families differ in exactly one segment of the topic string, the third: d for data, m for metadata. The error fires when the metadata subscription fails, either because the string in the field does not match the documented metadata form or because the broker refuses a subscription the Databus user has no rights for.
The topic string, segment by segment #
Each segment has one meaning at a fixed position:
| Segment | Meaning |
|---|---|
ie |
Industrial Edge |
d or m |
d = data values, m = metadata |
j |
JSON payload |
simatic |
namespace of the connector family |
v1 |
topic format version 1 |
<instance> |
your connector instance name, from the connector configuration |
dp |
datapoint |
r |
read direction from the connector, tag topics only |
# |
MQTT multi-level wildcard over all tags, tag topics only |
Assembled from that table for a connector instance named opcuac1, the metadata topic is ie + m + j + simatic + v1 + opcuac1 + dp, which gives ie/m/j/simatic/v1/opcuac1/dp. Assembled for values on an instance named opcua1 it gives ie/d/j/simatic/v1/opcua1/dp/r/#. The two sample instance names differ because they are illustrations, not constants: take your own instance segment from the connector configuration, case included, and build the string around it.
This is the documented structure for the OPC UA Connector on Industrial Edge; the topic-structure section of the manual matching your installed app version shows the same table.
Why the tag topic fails in the metadata field #
ie/d/j/simatic/v1/opcua1/dp/r/# is a well-formed subscription — for values. d selects the data family, dp/r addresses the data points read from the connector, and # matches every tag below that level. Metadata is published per connector at the dp level: a description has no read direction, so there is no r level, and there are no per-tag metadata streams, so there is nothing for # to match. A subscription to the tag topic therefore connects and stays silent on metadata permanently; the Data Service keeps reporting the failure, and entering that string changed nothing but the error text.
The decision rule: the metadata field gets a string with m in the third position that ends in /dp. Anything ending in /r/# belongs in a data or tag field, never here.
Enter the metadata topic #
- In the Industrial Edge management system, confirm the OPC UA Connector app and the Databus are installed and running on the edge device.
- In the Databus configuration, confirm the user's topic permissions include subscribe rights on the metadata branch
ie/m/#, not only the data branch. - In the Data Service, open the settings of the OPC UA connector and enter the metadata topic, for example
ie/m/j/simatic/v1/opcuac1/dp, with the instance segment replaced by your connector instance name. - Save, activate the configuration, then reopen it.
- Expected result: the subscription error is gone and the connector's data point tree loads.
If metadata still does not arrive #
Subscribe to the topics yourself with an MQTT client authorized on the Databus. Subscribe to the metadata branch first: a JSON metadata document should arrive shortly after the connector starts. Then subscribe to the tag topic and check for value traffic once data points are configured and the PLC connection is up.
| Observation | Likely cause | Action |
|---|---|---|
| Nothing arrives on the metadata branch | Instance name mismatch, or the connector app is not running or not connected to the PLC | Compare the instance segment with the connector configuration; check the app state and the PLC endpoint |
| The broker refuses the subscription | The Databus user lacks rights on the metadata branch | Add subscribe permission for ie/m/# to that user |
| Metadata arrives, values do not | No data points configured, or the tag topic is wrong | Correct the tag-side topic and the data point configuration |
One documented known issue belongs here: if the Databus is stopped for more than 5 minutes, you may receive neither metadata nor data, and the documented recovery is to re-deploy the configuration.
If your own client connects and still receives nothing, the causes reach past this one field; the same symptom on a subscribe function block is covered in why an MQTT subscribe function block connects but receives nothing.
The failure family also appears outside Industrial Edge: a PubSub metadata bootstrap and its MQTT wildcard subscription fix walks through one such case on another metadata handshake.
The same fix on an S7 connector #
An S7 Connector publishes metadata under the same structure with its own instance segment: ie/m/j/simatic/v1/s7c1/dp. The prefix and the trailing dp hold; only the instance segment changes. On a device running both connectors, enter each string in its own connector configuration — pointing the OPC UA string at the S7 connector subscribes to a publisher that never writes, and the S7 tag tree stays empty. When an S7 Connector's Databus topic goes inactive for permission reasons of its own, why S7 Connector status turns bad after one minute follows that fault end to end.
End-to-end check #
- The OPC UA Connector app shows running in the edge device's app list, with no restart loop.
- The metadata field holds
ie/m/j/simatic/v1/<instance>/dpwith the instance segment taken from your configuration — no r, no #. - The Data Service no longer reports "Subscribing to the metadata topic of the connector failed", and the connector lists as active.
- An MQTT client on
ie/m/#receives a JSON metadata document listing the configured data points. - An MQTT client on the tag topic receives value updates that track changes made at the PLC.
Decision: if the metadata document arrives on the metadata branch, the subscription is fixed; if it never comes, the fault sits upstream of the Data Service — instance name, connector state or Databus permissions — and no further edit inside the metadata field will move it.
Questions asked
Why do the sample strings use opcua1 for the tag topic but opcuac1 for the metadata topic?
They are two separate illustrations, not constants. Each sample was built around its own connector instance name, so neither matches an installation that named its instance differently. Take the instance segment from your own connector configuration, character for character and case included, and build the topic around it. A copied sample is valid MQTT that no publisher ever writes to, so the metadata subscription keeps failing even though the string is well formed.
Does the metadata topic change when I add or remove data points?
No. The metadata topic has no per-tag level, so its address does not depend on how many data points the connector publishes. Adding or removing data points changes the content of the metadata document, not the string in the metadata field. Renaming the connector instance is the change that moves the topic, and after a rename the old string receives nothing until you update the field.
Which Databus permissions does the metadata subscription need?
Subscribe rights on the metadata branch ie/m/#, alongside the data branch ie/d/# that the values already flow on. A user granted only the data branch has the metadata subscription refused by the broker, and the Data Service reports that refusal like a wrong topic string, so a permission gap looks identical to a typo. Check the user's topic permissions before editing the field again.
The metadata document arrives but the data point tree stays empty, what now?
The subscription side is then working and the fault has moved to tag configuration. A connector lists only the data points it has browsed from the PLC and that were added to its data source, so check the PLC endpoint settings, run the browse again, and confirm the data points were saved. Value traffic on the data branch resumes once the data points exist and the PLC connection is up.


