Help Center/ DataArts Lake Formation/ FAQs/ Permissions Management/ What Should I Do If Tables Cannot Be Created After Switching Roles?
Updated on 2025-07-25 GMT+08:00

What Should I Do If Tables Cannot Be Created After Switching Roles?

Symptom

Why am I seeing the error "field 'owner' needs to match the regular expression '[a-zA-Z0-9_]+'" when creating metadata (e.g., tables) in the LakeFormation management console after switching to a delegating account?

Procedure

When you switch to a delegating account, your username changes to include the domain and agency names (e.g., 'domain_name/agency_name'). This new username does not conform to LakeFormation's requirements for a metadata owner name, which must follow the pattern '[a-zA-Z0-9_]+'. To resolve this issue, we recommend using our APIs to create metadata and explicitly specifying a different user as the owner after switching to a delegating account.