Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dataplex - BigQuery Labels not updating even after changes in lake

Hi, I have been trying to implement dataplex and noticing weird UI errors. For instance, if a BQ dataset was added as an asset in a zone > lake and later that lake is deleted, if we search for that particular BQ dataset & tables in dataplex it still shows deleted lake labels.

We cannot update or attach this asset to any new lake, it still gives error:

Provided resource project.bi_dw already has dataplex labels goog-dataplex-lake-id:ds-bi-lake, the resource might be attached to another asset.

Even though no such Dataplex lake exists. Can somebody please guide on this, if its a bug?

0 1 185
1 REPLY 1

Hi @harshgupta01,

Welcome to Google Cloud Community!

Regarding your issue with updating a zone or lake, it could be related to Identity and Access Management (IAM) roles. 

Here are the possible workaround:

  •  Managing zones 
    • gcloud lake commands require a location, you can specify location by using - -location flag
    • you must be granted IAM roles containing dataplex.lakes.create and dataplex.lakes.update IAM permission respectively
    • you can grant update or delete permissions to users or groups by assigning them the roles/owner or roles/editor roles
    • through this you can update or delete a zone
  •  Managing lakes 
    • you must be granted IAM roles containing dataplex.lakes.create and dataplex.lakes.delete IAM permission respectively
    • you can grant update or delete permissions to users or groups by assigning them the roles/owner or roles/editor roles
    • through this you can view and update a lake 
  •  Manage data assets in a lake
    • To remove assets, grant IAM permission with dataplex.lakes.delete , dataplex.zones.delete or dataplex.assests.delete
    • roles/dataplex.delete and roles/dataplex.editor can be use to grant permissions
    • To add assets, grant IAM permission with dataplex.lakes.create , dataplex.zones.create or dataplex.assests.delete
    • roles/dataplex.admin and roles/dataplex.editor can be use to grant permissions
  • Managing assets allows you to do the following:
    • Add an asset
    • Downgrade a Cloud Storage bucket asset
    • Upgrade a Cloud Storage bucket asset
    • Remove an asset

I hope the above information is helpful.