UtcTime DataType as Method InputArgument

Questions regarding the use of the UaExpert.

Moderator: uaexpert

Post Reply
Maarten_BE
Sr. Member
Sr. Member
Posts: 18
Joined: 25 Feb 2015, 15:58

UtcTime DataType as Method InputArgument

Post by Maarten_BE »

Hello support team,

I have created a method which accepts an InputArgument which has a UtcTime DataType. However I cannot find any format to input into the text box of UaExpert to call the method successfully. When I convert the DataType to DateTime the InputArgument works as expected.

The error message from UaExpert states: "could not convert argument 6 to variant type UtcTime".

I would expect this format to work:

2015-01-01T00:00:00.000Z

It appears that the InputArgument is put into a UaVariant when calling the method and UtcTime is not implicitly converted to DateTime, thus resulting in an UaVariantException.

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: UtcTime DataType as Method InputArgument

Post by Support Team »

Hello,

UaExpert currently only supports the UA base data types, enumerations and structures for methods arguments. Derived types like UtcTime or Duration are currently not supported.

Best regards
Support Team

Post Reply