[BUG] Inherited UDT parameter does not change when parameter has changed on parent UDT

Hi,

On 8.1.13.
I have 2 UDT’s, 1 Parent UDT with 1 parameter and a Child UDT with no parameters.
image

I would expect all child udt’s to inherit the parameter of the parent udt. When the parameter on the parent udt changes, I think it should be normal behavior for same thing to happen on the child UDT’s.

So to reproduces we have the following steps:

  1. Add parent udt as parent.
    Both parameters are the same
    image image

  2. Change parameter on parent udt

  3. Observe: child udt’s still have the same parameter as before.

image
image

Should these parameters not change automatically if the parameter is not overwritten?

This is the exported json:

{
  "tags": [
    {
      "name": "udtPARENT",
      "parameters": {
        "OPCServer": {
          "dataType": "String",
          "value": "Server_new"
        }
      },
      "tagType": "UdtType"
    },
    {
      "name": "udtCHILD",
      "typeId": "udtPARENT",
      "parameters": {
        "OPCServer": {
          "dataType": "String",
          "value": "Server_old"
        }
      },
      "tagType": "UdtType"
    }
  ]
}

Jasper

I tested out your replication steps on version 8.1.14 and I do not see the behavior you described. The child UDT updated as expected:

Child UDT has the new parameter after only updating the Parent definition:
image

The JSON export does not show the parameter for the Child UDT (because it is default):

{
  "tags": [
    {
      "name": "udtPARENT",
      "parameters": {
        "OPCServer": {
          "dataType": "String",
          "value": "Server_new"
        }
      },
      "tagType": "UdtType"
    },
    {
      "name": "udtCHILD",
      "typeId": "udtPARENT",
      "tagType": "UdtType"
    }
  ]
}

Based on the JSON export it seems like your child instance may be identifying its Parameter as non-default/overwritten. This may be behavior that has been changed in 8.1.14, so upgrading to test may be useful. If you can replicate the issue easily on your system you could also reach out to our support department and they can help confirm this.

1 Like

Thanks kvane,

The issue is not easy to replicate, 80% of the times it does go well. I have created a support ticket with our actual data, where the issue always happens.
We will upgrade to 8.1.14 and see if all issues are resolved, it does look like it has set the parameter to overwritten, but without showing the green circle for overwritten. Thanks.

Jasper