Skip to content

Creating a a recommender for Use Case "Because you watched X" fails with status "Create failed"

0

Creating a "Because you watched X" recommender always fails after some time with status "Create failed" (InternalServerError: We encountered an internal error. Please try again) Creating the "Top Picks For You", "More like X" and also a "aws-personalized-ranking-v2" recommender from the same dataset works fine.

We are using the AWS console to create these recommenders. Is there any way to get more information on why creation of this specific recommender fails?

asked a year ago89 views
1 Answer
0

Hi Eric,

Clarifying the Issue

The issue you're encountering with creating a “Because you watched X” recommender in Amazon Personalize seems frustrating, especially since other recommenders (Top Picks For You, More Like X, and aws-personalized-ranking-v2) are working fine using the same dataset. Here's a step-by-step approach to help diagnose and address the issue:


1. Verify Input Data and Schema Configuration

Amazon Personalize’s “Because you watched X” recommender relies heavily on interaction data being correctly structured. Since other recommenders work fine, your schema is likely valid, but here are a few critical checks:

  • Interaction Dataset Fields: Ensure your dataset includes required fields:
    • USER_ID (unique user identifier)
    • ITEM_ID (unique item identifier)
    • TIMESTAMP (optional, but recommended for temporal-based recommendations)
    • Event Type (ensure relevant events are tracked for “watching” items).
  • Field Completeness: Check for missing or null values in the USER_ID, ITEM_ID, or interaction events that may prevent proper data ingestion.

A quick validation of your CSV or JSON input file using AWS Glue or a simple Python script can help confirm the data integrity.


2. Ensure Sufficient Data Volume

Amazon Personalize requires a minimum amount of interaction data to create recommenders effectively. For the “Because you watched X” use case, the dataset should have:

  • At least 1000 unique items and 1000 unique user-item interactions.
  • The dataset should also reflect user behavior trends (e.g., actual “watch” events).

If the dataset is small or lacks diversity, the service may fail during training or creation. You could compare the interaction count of this recommender’s dataset with the other successful recommenders.


3. Monitor CloudWatch Logs for Error Details

InternalServerError indicates an issue within the AWS service, but CloudWatch can often provide additional clues:

  1. Go to Amazon CloudWatch > Logs.
  2. Look for logs under AWS/Personalize.
  3. Check for messages or warnings related to failed recommender creation attempts.

While the error might not be explicit, logs often highlight data ingestion issues, unexpected null values, or configuration conflicts.


4. Check Resource Quotas

You might be hitting Amazon Personalize quotas, particularly:

  • Active Recommenders Limit: Confirm you haven’t exceeded your account’s limit for active recommenders.
  • Dataset Group Quotas: Each dataset group can only support a certain number of recommenders concurrently.

You can view and manage these quotas via AWS Service Quotas.


5. Reattempt with a Minimal Configuration

To isolate the problem, try recreating the “Because you watched X” recommender using:

  • A smaller subset of data (e.g., 10,000 rows).
  • Simplified event types (filter only “watch” events to avoid noise).
  • A clean, newly-created dataset group.

If the recommender succeeds, you can gradually scale up the dataset size and complexity to identify potential triggers for the error.


6. Contact AWS Support

If none of the above steps resolve the issue, this may be an AWS internal error. I recommend opening a support case with AWS. Include the following details to expedite the resolution:

  • The specific dataset group ARN and recommender configuration.
  • Timestamps of failed creation attempts.
  • Any relevant error messages or CloudWatch log snippets.

By methodically verifying the schema, monitoring logs, and isolating the dataset, you’ll likely pinpoint why this specific recommender is failing. AWS Support can further assist if it’s an internal issue.

Let me know if you need help with any of the steps, such as validating input data or querying CloudWatch logs!

Cheers, Aaron 😊

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.