Deepali Ahirrao
Member
Members
Forum Posts: 25
Member Since:
08/16/2019
08/16/2019
Offline
Hi,
I am trying to call the ConditionRefresh method wherein I am passing UInt32 value for SubscriptionId whereas expected datatype is IntegerId. Is this allowed – passing parent type where a child datatype is expected?
I am getting Bad_SubscriptionIdInvalid error, so was wondering whether it was because of incorrect datatype being passed.
Thanks,
Deepali
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
05/30/2017
Offline
You can only pass values of built-in types in a method call.
If the information model datatype is not a built-in type then you need pass in a supertype.
In the case of IntegerId the basetype is UInt32 which means a UInt32 must be passed to the method call.
If the problem you are see was caused by a datatype mismatch you should get the BadTypeMismatch error code.
Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 32
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889