- Newest
- Most votes
- Most comments
I downgraded the visual job from 5.0 to 4.0
Glue Version: Ensure you're using a Glue version that fully supports custom regex patterns for sensitive data detection.
The error you're encountering suggests there might be an issue with the custom regex pattern you're trying to use in AWS Glue Studio for sensitive data detection. Here are a few things to check and consider:
-
Regex String Format: Ensure that your regular expression string is properly formatted and follows the constraints specified by AWS Glue. The regex string should be between 1 and 255 characters long and match the single-line string pattern.
-
Validation: Before using the custom pattern in your Glue job, it's a good practice to validate the regex. AWS Glue Studio provides a validation feature when creating a new detection entity pattern. Use this to confirm your regex is valid.
-
Context Words: If you've added context words to your custom pattern, make sure they are relevant and don't conflict with the regex. Context words are optional but can help increase the accuracy of detection.
-
Unique Name: Ensure that the name you've given to your custom pattern is unique within your AWS account and doesn't exceed 255 characters.
-
API Usage: If you're creating the custom pattern programmatically outside of Glue Studio, make sure you're using the CreateCustomEntityType API correctly, providing all required parameters.
-
Serialization: The error message mentions a serialization issue. This could indicate a problem with how the custom pattern is being passed to or processed by the Glue job. You might need to review how you're incorporating the custom pattern into your Glue script.
-
Glue Version: Ensure you're using a Glue version that fully supports custom regex patterns for sensitive data detection.
If you've checked all these points and are still encountering the error, you may need to reach out to AWS support for further assistance. They can provide more specific guidance based on your exact configuration and use case.
Sources
Detect and process sensitive data - AWS Glue
Sensitive data detection API - AWS Glue
CustomEntityType - AWS Glue
CreateCustomEntityType - AWS Glue
Relevant content
- AWS OFFICIALUpdated 7 months ago

Glue 4.0 works for me. Thank you!