Error Types & Recovery
X21 provides clear error messages to help you understand and resolve issues. This guide covers common error types and recovery steps.API Errors
Rate Limit Error
Message:- Wait the indicated time (usually 30-60 seconds)
- Retry your request
- If persistent, spread out requests
Request Too Large
Message:- Remove or compress attachments
- Start a new conversation
- Break into smaller requests
- Check token usage
Service Overloaded
Message:- Wait 1-2 minutes
- Retry request
- If persistent, check Anthropic status
Invalid Request Error
Message:- Review your prompt for special characters
- Check file attachments are supported types
- Simplify your request
- Try a different approach
Tool Execution Errors
Range Error
Message:- Check range is within Excel limits (1,048,576 rows × 16,384 columns)
- Verify sheet name spelling
- Use correct range notation (A1:B10)
Sheet Not Found
Message:- Check sheet name spelling (case-sensitive)
- Verify sheet hasn’t been deleted
- Use
@sheetautocomplete for accuracy
Permission Denied
Message:- Review pending tool approvals
- Approve the required tool
- Retry operation
VBA Error
Message:- Review the generated VBA code
- Manually fix syntax issues
- Request AI to regenerate with corrections
- Test in VBA editor first
Connection Errors
Cannot Connect to Server
Message:- Check if Deno process is running
- Restart X21 add-in
- Verify port 8000 is not blocked
- Check firewall settings
WebSocket Disconnected
Message:- Click Reconnect button
- If fails, restart Excel
- Check network connectivity
- Verify Deno server is running
Timeout Error
Message:- Retry with smaller data set
- Check network speed
- Simplify operation
- Break into smaller requests
Data Errors
Cancelled Request
Message:- No action needed
- Start new request if desired
- Previous state preserved
Data Validation Error
Message:- Review data format requirements
- Clean data first
- Use
/clean_up_datacommand - Convert data types as needed
Recovery Strategies
General Approach
- Read the error message carefully
- Check obvious causes (connectivity, permissions, data)
- Try the suggested recovery steps
- Simplify and retry if unsuccessful
- Contact support if persistent
When to Retry
Safe to retry immediately:- Connection errors
- Timeout errors
- Cancelled requests
- Rate limit errors (wait indicated time)
- Service overloaded (wait 1-2 minutes)
- Invalid data errors (fix first)
- Permission errors (approve first)
- VBA errors (review code first)
Escalation Path
- Self-service: Use this documentation
- Restart: Restart Excel/X21
- Logs: Check log files for details
- Support: Contact support with error details
Error Logging
All errors are logged to:- Local log files (see Log Files)
- Analytics (Langfuse, if enabled)
- Excel error console (dev mode)
- Exact error message
- Steps to reproduce
- Relevant log excerpts
- Conversation ID (if available)
Related Topics
- Connection Status - Connection troubleshooting
- Performance Issues - Speed problems
- Common Issues - Frequent problems
- Log Files - Reading logs

