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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot