Email Sync Troubleshooting
Having trouble with email integration or sync? This guide covers the most common issues and their solutions.Common Issues
No vendors discovered after connecting email
No vendors discovered after connecting email
Possible causes:
- Initial sync still in progress
- No vendor emails in the scanned period
- Email integration not properly connected
- Vendor emails in spam/junk folder
- Wait 5-10 minutes - Initial sync can take time for large inboxes
- Check email history - Porcia scans last 6 months; ensure you have vendor emails in this period
- Verify connection - Go to Settings → Integrations → Email and check status
- Check spam folder - Vendor emails in spam won’t be processed
- Manual test - Forward a vendor email to your Porcia address to test processing
Email sync stopped working
Email sync stopped working
Possible causes:
- OAuth token expired
- Email provider revoked permissions
- Account password changed
- Email provider API issues
- Reconnect integration - Go to Settings → Integrations → Email → Reconnect
- Check permissions - Verify Porcia still has access in your email provider
- Re-authenticate - Complete OAuth flow again
- Check account status - Ensure your email account is active and accessible
- Contact support - If issue persists after reconnection
Gmail connection failed
Gmail connection failed
Possible causes:
- Browser blocking pop-ups
- Google Workspace admin restrictions
- Incorrect Google account
- “This app isn’t verified” warning
- Enable pop-ups - Allow pop-ups for app.porcia.org
- Try incognito mode - Disable browser extensions that might interfere
- Use correct account - Sign in with the Google account you want to connect
- Handle verification warning - Click “Advanced → Go to Porcia (unsafe)”
- Check admin settings - Ask IT admin to whitelist Porcia in Google Workspace
Outlook connection failed
Outlook connection failed
Possible causes:
- Microsoft 365 admin restrictions
- Incorrect Microsoft account
- Browser compatibility issues
- Two-factor authentication issues
- Use correct account - Sign in with your Outlook/Microsoft 365 account
- Check admin restrictions - Verify third-party apps are allowed
- Try different browser - Use Chrome or Edge for best compatibility
- Complete 2FA - Ensure two-factor authentication is completed
- Clear cookies - Clear cookies for login.microsoftonline.com
Email forwarding not working
Email forwarding not working
Possible causes:
- Forwarding rules not set up correctly
- Wrong Porcia forwarding address
- Email provider blocking forwarding
- Forwarding rules disabled
- Verify forwarding address - Check your unique address in Settings → Integrations → Email
- Test forwarding rules - Send a test email to verify rules are working
- Check rule status - Ensure forwarding rules are active in your email provider
- Manual forward test - Manually forward a vendor email to test processing
- Review rule criteria - Ensure forwarding rules match vendor emails
Gmail-Specific Issues
OAuth Connection Problems
Error: “This app isn’t verified”Gmail Sync Issues
Emails not being processed:- Check if emails are from known vendor domains
- Verify emails aren’t in spam folder
- Ensure emails contain vendor-related content (invoices, renewals)
- Check if Gmail labels are interfering with processing
- Gmail API rate limits may cause delays
- Large inboxes take longer to process
- Wait 24 hours for complete sync
- Check sync status in Settings → Integrations → Email
Gmail Admin Configuration
Whitelist Porcia in Google Workspace
Whitelist Porcia in Google Workspace
For Google Workspace administrators:
- Go to Google Admin Console → Security → API Controls
- Click Manage Third-Party App Access
- Click Add app → OAuth App Name or Client ID
- Search for “Porcia” and click Select
- Select Trusted and click Configure
- Choose organizational units that can access Porcia
- Click Finish
- Go to Security → Less secure app access
- Enable Allow users to manage their access to less secure apps
- Users can then grant access to Porcia
Outlook-Specific Issues
OAuth Connection Problems
Error: “AADSTS50020: User account does not exist”Outlook Sync Issues
Microsoft Graph API limits:- Outlook has stricter API rate limits than Gmail
- Sync may take longer for large mailboxes
- Retry automatically after rate limit resets
- Consider connecting during off-peak hours
- Both are supported but have different capabilities
- Exchange Online (Microsoft 365) provides richer data
- Outlook.com has more limited API access
- Some features may not be available on Outlook.com
Microsoft 365 Admin Configuration
Pre-approve Porcia in Azure AD
Pre-approve Porcia in Azure AD
For Microsoft 365 administrators:
- Go to Azure Portal → Azure Active Directory → Enterprise applications
- Click New application → Create your own application
- Enter “Porcia” as the application name
- Select Integrate any other application you don’t find in the gallery
- Click Create
- Go to Properties and configure as needed
- Go to Users and groups to assign users
- Go to Permissions and grant admin consent for required permissions
- Mail.Read (Read user mail)
- User.Read (Sign in and read user profile)
- offline_access (Maintain access to data)
Email Forwarding Issues
Forwarding Rules Not Working
Gmail forwarding issues:- Check filter criteria - Ensure filters match vendor emails
- Verify forwarding address - Must be exact Porcia address
- Test with manual forward - Forward an email manually to test
- Check forwarding verification - Gmail may require verification
- Check rule conditions - Verify rule criteria are correct
- Rule order matters - Ensure Porcia rule has correct priority
- Test rule - Use Outlook’s rule testing feature
- Check rule status - Ensure rule is enabled and active
Common Forwarding Mistakes
Wrong forwarding address:- Rules created but not activated
- Rules disabled due to errors
- Rules overridden by other rules
- Rules not applied to existing emails
Sync Status Monitoring
Check Sync Status
- Go to Settings → Integrations → Email
- View connection status for each integration
- Check last sync time and status
- Look for error messages or warnings
Sync Status Indicators
Connected ✅- Integration is working properly
- Recent sync completed successfully
- New emails being processed
- Sync currently in progress
- Normal for initial setup or large inboxes
- Wait for completion
- Sync failed due to an issue
- Click for error details
- May need to reconnect
- Integration was disconnected
- OAuth token may have expired
- Need to reconnect
Manual Sync
Force a manual sync if needed:- Go to Settings → Integrations → Email
- Click Sync Now next to your integration
- Wait for sync to complete
- Check for any error messages
Performance Optimization
Large Mailbox Optimization
For mailboxes with 100,000+ emails:- Initial sync may take 2-4 hours
- Consider connecting during off-peak hours
- Ensure stable internet connection
- Don’t interrupt the initial sync process
- Archive old emails before connecting
- Clean up spam folder
- Organize emails with labels/folders
- Consider using email forwarding for new emails only
API Rate Limits
Gmail rate limits:- 1 billion quota units per day
- 250 quota units per user per 100 seconds
- Porcia automatically handles rate limiting
- 10,000 requests per 10 minutes per app per mailbox
- Porcia implements exponential backoff
- Sync may slow down during peak usage
Data Quality Issues
Vendor Not Recognized
If a vendor isn’t automatically recognized:- Check if email is from a known vendor domain
- Manually add vendor in Porcia dashboard
- Update vendor aliases for future recognition
- Report unknown vendors to support for database updates
Incorrect Data Extraction
If pricing or dates are extracted incorrectly:- Manually correct the information in vendor profile
- Upload the original invoice/contract for reference
- Report extraction errors to support for AI improvement
- Consider using structured email templates with vendors
Duplicate Vendors
If the same vendor appears multiple times:- Use vendor merge feature in dashboard
- Check for different email domains from same vendor
- Update vendor aliases to prevent future duplicates
- Consolidate historical data during merge
Getting Help
Self-Service Options
- Check sync status - Settings → Integrations → Email
- Review error messages - Click on error indicators for details
- Try reconnection - Disconnect and reconnect integration
- Manual sync - Force a sync to test connectivity
Contact Support
When to contact support:- Error persists after reconnection
- Sync has been stuck for over 24 hours
- Data extraction is consistently incorrect
- Integration worked before but suddenly stopped
- Email provider (Gmail, Outlook, etc.)
- Error messages or screenshots
- When the issue started
- Steps you’ve already tried
- Your Porcia workspace ID
Contact Support
Email: support@porcia.org
Live Chat
Use the chat widget in bottom-right corner
Prevention Tips
Best Practices
- Regular monitoring - Check sync status weekly
- Keep credentials updated - Update passwords in Porcia when changed
- Monitor vendor emails - Ensure important emails aren’t going to spam
- Backup important data - Export vendor data periodically
- Stay informed - Subscribe to Porcia status updates
Maintenance Schedule
Monthly:- Review sync status for all integrations
- Check for new vendor discoveries
- Verify data accuracy for key vendors
- Audit email forwarding rules
- Review and update vendor aliases
- Clean up duplicate or incorrect vendor entries
- Review and renew OAuth connections
- Audit email integration permissions
- Update forwarding rules for new vendor domains