Dataplex tag templates:cannot make tag "required"

Hi,

I am editing tag templates in Dataplex but I am unable to tick the option to make the field required.

Beginner_0-1702376265996.png

I am able to select this when creating a template from scratch, but when editing a previously created template, no tick appears and only this blue circle appears.

Anyone else have the same problem?

Also, is there a way to change the order of the fields (by dragging and dropping?)

Thanks

Solved Solved
0 2 289
1 ACCEPTED SOLUTION

Unfortunately, currently in Google Cloud Dataplex you cannot change an existing field in a Tag Template to be required. The ability to mark fields as required when editing a template is not yet available. This is a known limitation and is being tracked in the Google Cloud Dataplex issue tracker.

The blue circle you see around the checkbox indicates that the field is currently not required. You can only select the checkbox when creating a new template.

Similarly, changing the order of fields by dragging and dropping is not currently supported in Dataplex's UI. However, you can achieve this by exporting the template as JSON, modifying the order of fields in the JSON file, and then re-importing the updated template.

Workarounds:

  • Recreate the template: As a workaround, you can create a new template with the desired fields marked as required and migrate your existing tags to the new template. This might be tedious, but it's temporary until the feature is implemented.
  • Use the API: If you're comfortable with coding, you can use the Dataplex API to update the template schema and set the required fields programmatically. This is a more advanced solution, but it gives you more control over the template structure.

View solution in original post

2 REPLIES 2

Unfortunately, currently in Google Cloud Dataplex you cannot change an existing field in a Tag Template to be required. The ability to mark fields as required when editing a template is not yet available. This is a known limitation and is being tracked in the Google Cloud Dataplex issue tracker.

The blue circle you see around the checkbox indicates that the field is currently not required. You can only select the checkbox when creating a new template.

Similarly, changing the order of fields by dragging and dropping is not currently supported in Dataplex's UI. However, you can achieve this by exporting the template as JSON, modifying the order of fields in the JSON file, and then re-importing the updated template.

Workarounds:

  • Recreate the template: As a workaround, you can create a new template with the desired fields marked as required and migrate your existing tags to the new template. This might be tedious, but it's temporary until the feature is implemented.
  • Use the API: If you're comfortable with coding, you can use the Dataplex API to update the template schema and set the required fields programmatically. This is a more advanced solution, but it gives you more control over the template structure.

Thanks for the quick and concise reply, much appreciated!