Michael Herman - Toronto on Fri, 01 Apr 2016 18:57:51

In the product group supplied Getting started creating a Data Catalog app, I;m trying to make a tiny modification to the search string to find 4 SQL Server objects I've previously tagged with the keyword "Demo":

            //Search a name
            string searchTerm = "name:=OrdersSample";
            searchTerm = "tags:Demo";

            string searchJson = SearchDataAsset(searchTerm);

But the search fails with the error message:

    The remote server found an error: (400) Bad request    

    FieldNotSupported message Property 'tags' is not supported by query

What could possibly be wrong with the search string?

Michael Herman (Toronto)

Xpert Search Agents for Microsoft web sites:



Alan Shi [MSFT] on Mon, 04 Apr 2016 19:41:13

Hi Michael, this should work. In the question you sent to the team, I've looped in some experts to help figure out the source of the problem, and will reply back on this thread for others once we have this understood.

Vladimir Eremin on Mon, 04 Apr 2016 20:03:05

Hi Michael,
Thank you for your feedback. It seems that the MSDN documentation hasn't been updated yet and references search syntax from the previous (preview) version. The "Tags" annotation type has been changed in GA version ("2016-03-30"). In your case the correct syntax would be "tag:Demo" or a fully qualified form "". We recommend using fully qualified properties from tools, and support the shorthand syntax mostly for ad-hoc filtering by users.  Shorthand syntax allows several properties to share the same name (which is usually fine for users and much shorter to write).  As we add customizability to the metadata in the system, this overlap becomes unpredictable for developers and so we recommend always using the fully qualified syntax.  Sorry for the inconvenience from the stale documentation, we’ll get it updated shortly.

Thank you,