Skip to main content

Troubleshooting Missing Data in Lang.ai

Why your data isn't showing up and how to fix it

Updated this week

If you're seeing "No data found for this time period" when using your AI agent, this guide will help you identify and resolve the most common issues.

Quick Checks

Before diving deeper, try these quick solutions:

  1. Try a broader date range - Expand to the last 30 or 90 days to see if any data appears

  2. Verify recent data might be delayed - Data from the last 24-48 hours may not have been processed yet due to your Snowflake configuration

  3. Verify your agent query - Go to the agent settings page to check your SQL query

Common Data Access Issues

1. Table Access Permissions

Issue: Your Snowflake user lacks permission to access the table.

Solution:

  • Contact your data team to verify you have the proper access roles

  • Ensure the GRANT SELECT permission has been applied to your user for the specific table

  • Check if the table name has changed or moved to a different schema

2. Table Recreation or Schema Changes

Issue: When Snowflake tables are recreated or modified, permissions may need to be reapplied.

Solution:

  • Inform your data engineer that the table may have been recreated

  • Request that access permissions be reapplied to the new table

  • Verify the table structure still includes all required fields (id, text, creation_date)

3. Missing Required Fields

Issue: The AI agent requires specific fields to function properly.

Solution:

  • Ensure your SQL query includes the following fields:

    • id (or equivalent unique identifier)

    • text (the content to be analyzed)

    • creation_date (when the interaction occurred)

  • Use aliases if your fields have different names: customer_feedback as text

4. Empty or Invalid Data

Issue: The table exists but contains no rows or invalid data for the selected period.

Solution:

  • Verify data exists in your Snowflake table with a direct query

  • Run this example query adapted to your date range: SELECT COUNT(*) FROM your_table WHERE creation_date BETWEEN '2023-01-01' AND '2023-01-31'

  • Check if date formats match the expected format (YYYY-MM-DD)

5. Table Configuration Issues

Issue: Your connection might be referencing an incorrect table or one that has changed.

Solution:

  • Confirm the table name and schema in your agent query

  • Check if the table has been renamed or moved to a different schema

  • Verify that the table structure includes all required fields

  • Ensure your account has the correct access permissions to the table

Advanced Troubleshooting

If the above solutions don't resolve your issue:

Check Your Agent Query

  1. Go to the agent settings page to review your SQL query

  2. Verify the table name and schema are correct

  3. Ensure the query includes all required fields (id, text, creation_date)

  4. Consider testing the query directly in Snowflake to validate i

Review Recent Changes

  • Has your data pipeline changed recently?

  • Have any Snowflake migrations or upgrades occurred?

  • Have table definitions been modified?

Still Having Issues?

If you've tried these steps and still can't access your data:

  1. Take screenshots of your Lang.ai configuration and the error message

  2. Note the exact table name and date range you're trying to access

  3. Contact our support team with these details for further assistance

Remember that resolving data access issues may require coordination between your team and your data engineering team, as many solutions require Snowflake administrative privileges.

Did this answer your question?