# OPCUA issue

**URL:** <https://community.cumulocity.com/t/opcua-issue/4794>\
**Category:** Forum\
**Tags:** device-connectivity, cumulocity\
**Created:** [April 12, 2023, 7:20am UTC](https://community.cumulocity.com/t/opcua-issue/4794 "2023-04-12T07:20:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bishan\_T\_Prasad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bishan\_T\_Prasad](https://community.cumulocity.com/u/Bishan_T_Prasad)\
**Post date:** [April 12, 2023, 7:20am UTC](https://community.cumulocity.com/t/opcua-issue/4794/1 "2023-04-12T07:20:22Z")

</div>

Hi,

We have client C8y platform running at 10.6 version. And we are using OPCUA agent of same version and connecting to clients OPCUA server. We are able to connect to the server and scan the address space successfully. But when i create the device protocol and map the namespaces, it is not creating the device except some constants namespaces.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/2/0/20103d3f6fdb2bdcd5bcfebd3def29e3bffb8b7b.png)

As you can see the image, actual device is in port (9) and while creating device protocol using that and namespaces within it, devices are not getting created.  
But when device protocol is created using constant’s namespace devices are getting created.

Has anybody faced this issue? Please Assist! Any pointers or guidance would be of help.

---

<div class="post-metadata">

**Author:** ![Kai\_Sieben](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/kai_sieben/32/5541_2.png) [@Kai\_Sieben](https://community.cumulocity.com/u/Kai_Sieben)\
**Post date:** [April 12, 2023, 7:57am UTC](https://community.cumulocity.com/t/opcua-issue/4794/2 "2023-04-12T07:57:47Z")

</div>

Hi @Bishan_T_Prasad ,

could you share how the device protocol and the created devices looks like?  
Usually you would get one “device” for each protocol.

---

<div class="post-metadata">

**Author:** ![Bishan\_T\_Prasad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bishan\_T\_Prasad](https://community.cumulocity.com/u/Bishan_T_Prasad)\
**Post date:** [April 12, 2023, 10:50am UTC](https://community.cumulocity.com/t/opcua-issue/4794/3 "2023-04-12T10:50:35Z")

</div>

Hi @Kai_Sieben,

sure. The image below is the working one.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/7/6/767c392c4103e47d5b2e834e3b23344152f6c3d8.png)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/8/f/8fa3d59f16e034018b191a1cd7669c522634a464.png)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/e/7/e7c38c12971adef2df15819bba722bdbfa896bf8.png)

And the non-working protocol which has not created any device.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/5/c/5c5c113421afbbde39e99695cd706e0afda4f989.png)

Have I provided what you asked for ? or are you looking for something else?

---

<div class="post-metadata">

**Author:** ![Kai\_Sieben](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/kai_sieben/32/5541_2.png) [@Kai\_Sieben](https://community.cumulocity.com/u/Kai_Sieben)\
**Post date:** [April 12, 2023, 11:53am UTC](https://community.cumulocity.com/t/opcua-issue/4794/4 "2023-04-12T11:53:43Z")

</div>

From “opcua test” it seems that you selected a “Reference server” when creating the protocol is this correct?  
Could the issue be related to this?

---

<div class="post-metadata">

**Author:** ![Bishan\_T\_Prasad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bishan\_T\_Prasad](https://community.cumulocity.com/u/Bishan_T_Prasad)\
**Post date:** [April 12, 2023, 1:14pm UTC](https://community.cumulocity.com/t/opcua-issue/4794/5 "2023-04-12T13:14:23Z")

</div>

@Kai_Sieben I don’t think so as I tried with same client’s OPCUA server and protocol configuration in 10.15 environment and its working perfectly fine there. This is the issue with actual devices only and with constants its fine. So not sure what could be the underlying issue.

---

<div class="post-metadata">

**Author:** ![Bishan\_T\_Prasad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bishan\_T\_Prasad](https://community.cumulocity.com/u/Bishan_T_Prasad)\
**Post date:** [April 12, 2023, 1:35pm UTC](https://community.cumulocity.com/t/opcua-issue/4794/6 "2023-04-12T13:35:31Z")

</div>

Got the issue. Thanks for you inputs and quick response @Kai_Sieben

Issue is with the path of the namespace that i was selecting. By default the path that is appended in the input box is wrong. I corrected it by editing the path.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/b/7/b7c97330597199b90d875f925af36a2ab8da8496.png)

Correct path is like below  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/optimized/2X/e/e57c269e7dfe3546b3cd376538893eb464039c74_2_690x52.png)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [October 9, 2023, 1:36pm UTC](https://community.cumulocity.com/t/opcua-issue/4794/7 "2023-10-09T13:36:16Z")

</div>

Closed on October 9, 2023, 1:36pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
