[BUG-13840] Reading a tag's quality for a non-existent tag no longer returns quality 404 / NOT_FOUND

8.0 (b2019040718)

In 7, I would sometimes check if a tag existed by checking the quality of the tag and checking if it returned 404 / NOT_FOUND. In 8 however, my quality checks for these non-existent tags is returning an error instead and no useable value. Using the try(…) function also doesn’t catch this error and return the error result either :frowning:

Expression example:
toStr(tag("folder/tag.quality")) != "Not Found

EDIT: Checking the error being reported on the expression toStr(tag("folder/tag.quality")) I get Error_TypeConversion

In the meantime, I will use runScript to execute the system.tag.exist(…) function.

An internal issue has been created. Thank you for reporting it.

Garth

This issue was fixed in the 8.0.3 nightly build that was uploaded today (5/28).

1 Like