Troubleshooting Sync Problems
Last Updated: January 7, 2026 Estimated Reading Time: 8 minutes
Overview
This guide helps you diagnose and fix data synchronization issues between ServiceNow and cmdbx. Sync problems typically manifest as missing data, stale data, sync failures, or slow sync performance.
Quick Diagnosis
Check Sync Status
-
Navigate to Settings > Sync Config → Status
-
Review:
- Last Sync: When it completed
- Status: Success, Failed, In Progress, or Pending
- CIs Synced: Number of CIs imported
- Errors: Error count and types
- Duration: How long sync took
-
If sync failed, click View Logs for detailed error messages
Check sync logs first. They contain specific error messages that indicate the root cause 90% of the time.
Sync Failures
Error: "Sync failed - Authentication error"
Symptom: Sync starts but immediately fails with authentication error
Cause: ServiceNow credentials expired or changed
Solution:
- Navigate to Settings > Connection
- Click Test Connection
- If connection fails:
- Verify credentials in ServiceNow
- Update credentials in cmdbx
- Re-test connection
- If connection succeeds but sync fails:
- Check if service account password was recently changed
- Verify roles are still assigned
- Test API access in ServiceNow REST API Explorer
See Connection Issues for detailed authentication troubleshooting.
Error: "Sync timeout"
Symptom: Sync runs for hours then times out
Common Causes:
1. Too Many CIs to Sync
Solution:
- Navigate to Settings > Sync Config → Data Scope
- Reduce scope:
- Uncheck unnecessary CI classes
- Add environment filter (production only)
- Exclude decommissioned CIs:
operational_status!=6
- Run Test Sync with smaller scope
- If succeeds, gradually expand scope
2. ServiceNow Performance Issues
Solution:
- Check ServiceNow instance performance
- Schedule sync during off-peak hours
- Increase sync timeout:
- Settings > Sync Config → Advanced
- Set Sync Timeout: 4 hours (default: 2 hours)
- Contact ServiceNow admin to optimize CMDB table indexes
3. Network Issues
Solution:
- Check for network connectivity problems
- Review connection logs for intermittent failures
- Enable retry on failure:
- Settings > Sync Config → Advanced
- Enable Retry Failed Batches
- Set Max Retries: 3
Error: "Insufficient API quota"
Symptom: Sync fails with "429 Too Many Requests" or "API rate limit exceeded"
Solution:
1. Reduce API Call Rate:
- Navigate to Settings > Sync Config → Advanced
- Reduce Max Requests/Second: From 10 to 5
- Reduce Parallel Threads: From 5 to 3
- Increase Batch Size: From 1000 to 2000 (fewer API calls)
- Save and retry sync
2. Schedule Sync During Off-Peak:
- Avoid syncing when other integrations are active
- Schedule for early morning hours
- Coordinate with ServiceNow admin
3. Request Higher Quota:
- Contact ServiceNow admin
- Request increased API rate limit
- Verify no other integrations exhausting quota
- Consider upgrading ServiceNow edition
4. Use Incremental Sync:
- Switch from full sync to incremental
- Incremental sync uses 90% fewer API calls
- Schedule full sync weekly instead of daily
Incremental syncs are much faster and use fewer API calls. Use full syncs only weekly or monthly for data integrity checks.
Error: "Relationship sync failed"
Symptom: CIs sync successfully but relationships missing
Common Causes:
1. Missing Related CIs
Solution:
- Relationship can't be created if either end doesn't exist
- Ensure both CIs are included in sync scope
- Check sync logs for "Skipped relationship: CI not found" messages
- Expand sync scope to include missing CI classes
2. Invalid Relationship Data
Solution:
- Review sync logs for specific relationship errors
- Common issues:
- Self-referencing relationships (CI relates to itself)
- Circular dependencies
- Deleted CIs still referenced
- Fix in ServiceNow:
- Remove invalid relationships
- Update or delete stale relationships
- Resync
3. Relationship Type Not Synced
Solution:
- Navigate to Settings > Sync Config → Data Scope → Relationships
- Verify relationship types are checked:
Runs on::Runs onDepends on::Used byContains::Contained by
- Add missing relationship types
- Resync
Missing Data
CIs Not Syncing
Symptom: Specific CIs exist in ServiceNow but not in cmdbx
Troubleshooting Steps:
1. Check CI Class Filter:
- Navigate to Settings > Sync Config → Data Scope → CI Classes
- Verify CI class is checked
- If not, check it and resync
2. Check Environment Filter:
- Navigate to Settings > Sync Config → Data Scope → Filters
- Review custom filters (e.g.,
operational_status=1) - Test if missing CIs match filter:
- In ServiceNow, query CIs with your filter
- Verify missing CIs are included in results
- If filter excludes them, adjust filter
3. Check CI Permissions:
- Verify service account has read access to CI class
- In ServiceNow REST API Explorer:
- Query the specific CI class
- If 403 error, permission issue
- Assign appropriate role to service account
4. Check Sync Logs:
- Settings > Sync Config → Logs
- Search for CI sys_id or name
- Look for "Skipped" or "Error" entries
- Address specific error message
Data Not Updating
Symptom: Data exists but is stale (not reflecting ServiceNow changes)
Common Causes:
1. Incremental Sync Not Detecting Changes
Solution:
- Run manual full sync to force refresh:
- Settings > Sync Config
- Click Run Full Sync Now
- If data updates after full sync:
- Issue with incremental sync change detection
- Contact [email protected]
2. Sync Not Running
Solution:
- Verify sync schedule is enabled:
- Settings > Sync Config → Schedule
- Check Enabled is checked
- Check last sync time:
- If no recent sync, schedule may be misconfigured
- Check sync logs for failures
3. ServiceNow Not Updating
Solution:
- Verify data is actually updated in ServiceNow
- Check CI's Updated timestamp in ServiceNow
- If ServiceNow data is also stale:
- Issue is in ServiceNow, not cmdbx
- Check ServiceNow discovery and integrations
Slow Sync Performance
Sync Taking Too Long
Symptom: Sync completes but takes hours
Optimization Steps:
1. Reduce Data Scope:
- Sync only production environment
- Exclude inactive/decommissioned CIs
- Focus on critical CI classes first
- Target: 10,000-30,000 CIs for best performance
2. Optimize Batch Size:
- Navigate to Settings > Sync Config → Advanced
- Test different batch sizes:
- Small (500): Better for slow ServiceNow instances
- Medium (1000): Default, good balance
- Large (2000): Better for fast instances
- Monitor sync duration and adjust
3. Increase Parallelization:
- Increase Parallel Threads: From 5 to 10
- Monitor ServiceNow instance CPU usage
- If ServiceNow slows down, reduce threads
- Find optimal balance
4. Schedule During Off-Peak:
- Move sync to 1-5 AM when ServiceNow is idle
- Avoid business hours
- Coordinate with ServiceNow maintenance windows
5. Optimize Health Calculation:
- Disable health recalculation during sync:
- Settings > Sync Config → Advanced
- Uncheck Recalculate Health Scores After Sync
- Schedule separate health calculation job
- Reduces sync time by 30-50%
Performance Monitoring
Track These Metrics:
- Navigate to Settings > Sync Config → Performance
- Review:
- Sync Duration Trend: Should be stable or improving
- CIs Synced Per Minute: Target 500+ CIs/min
- API Calls Per Sync: Should decrease with optimization
- Error Rate: Target < 1%
- Retry Rate: Target < 5%
Expected Performance:
| CMDB Size | Full Sync Duration | Incremental Sync | |-----------|-------------------|------------------| | 1,000 CIs | 2-5 minutes | 1-2 minutes | | 10,000 CIs | 20-30 minutes | 3-5 minutes | | 50,000 CIs | 1-2 hours | 10-15 minutes | | 100,000+ CIs | 3-4 hours | 20-30 minutes |
If your sync is significantly slower, optimization needed.
Health Score Issues
Health Scores Not Updating
Symptom: Sync succeeds but health scores remain unchanged
Solution:
1. Enable Health Recalculation:
- Navigate to Settings > Sync Config → Advanced
- Check Recalculate Health Scores After Sync
- Save and resync
2. Manual Health Recalculation:
- Navigate to CI Health Workspace
- Click Recalculate All Health Scores
- Monitor progress
- Verify scores update
3. Check Health Calculation Logs:
- Settings > Sync Status → Health Calculation
- Look for errors during calculation
- Address specific errors
Incorrect Health Scores
Symptom: Health scores seem wrong after sync
Solution:
-
Verify Data Accuracy:
- Check if CI data in cmdbx matches ServiceNow
- Incorrect data = incorrect health scores
- Investigate sync data quality issues
-
Review Health Rules:
- CI Health Workspace → Rules
- Verify health calculation rules are appropriate
- Check for custom rule misconfigurations
-
Recalculate Health:
- Force full health recalculation
- CI Health Workspace → Recalculate All
See Health Score Questions for detailed health score troubleshooting.
CSDM Compliance Issues
CSDM Validation Failing
Symptom: Sync succeeds but CSDM compliance check fails
Solution:
-
Run CSDM Validation Manually:
- Navigate to CSDM Workbench
- Click Run Compliance Check
- Review specific violations
-
Check Relationship Sync:
- CSDM validation requires all relationships
- Verify relationships synced correctly
- Check sync logs for relationship errors
-
Validate in ServiceNow:
- Ensure ServiceNow data is CSDM compliant
- cmdbx reflects ServiceNow data accurately
- Fix violations in ServiceNow, then resync
See CSDM Compliance for guidance on achieving compliance.
Advanced Troubleshooting
Enable Debug Logging
For persistent issues:
- Navigate to Settings > Sync Config → Advanced
- Enable Debug Logging
- Set Log Level: Verbose
- Run sync
- Review detailed logs: Settings > Sync Status → Sync Logs
- Share with support if needed
Compare Sync Results
Verify cmdbx matches ServiceNow:
-
Count CIs in ServiceNow:
- Navigate to CMDB → CI Class Manager
- Count CIs by class
- Note totals
-
Count CIs in cmdbx:
- Navigate to CI Health Workspace
- Filter by CI class
- Note totals
-
Compare:
- Should match within 1-2%
- If significant difference:
- Check sync filters
- Review sync logs for skipped CIs
- Verify permissions
Test Sync Scope
Test with minimal scope:
- Create test sync configuration:
- Only 1 CI class (e.g., servers)
- Only 1 environment (production)
- Limit 100 CIs:
sysparm_limit=100
- Run test sync
- If succeeds: Gradually expand scope
- If fails: Issue with ServiceNow or connection
Getting Help
Before Contacting Support
Gather this information:
- Sync Logs: Last 24 hours from Settings > Sync Status → Sync Logs
- Error Messages: Exact error text
- Sync Configuration: Screenshot of sync settings
- Data Scope: CI classes and filters configured
- ServiceNow Version: Help → About ServiceNow
- CMDB Size: Approximate number of CIs
- When Did It Stop Working: Date/time of last successful sync
Contact Support
Email: [email protected]
Include:
- Tenant ID
- Environment name
- Error details above
- Urgency level
Response Time:
- Professional: 48 hours
- Business: 24 hours
- Enterprise: 4 hours
- MSP: Custom
Prevention
Monitoring Sync Health
Set Up Alerts:
- Navigate to Settings > Sync Config → Notifications
- Enable alerts for:
- Sync Failures: Email immediately
- Slow Syncs: Email if duration > 2x average
- High Error Rate: Email if errors > 10%
- Set recipients: CMDB Admins
Weekly Review:
- Review sync logs weekly
- Check for patterns in errors
- Address issues before they escalate
- Optimize performance proactively
Best Practices
- Start Small: Begin with narrow scope, expand gradually
- Test Changes: Test sync configuration in dev before production
- Monitor Performance: Track sync duration trends
- Schedule Wisely: Run syncs during off-peak hours
- Incremental by Default: Use full sync only weekly/monthly
- Keep ServiceNow Healthy: Optimize ServiceNow CMDB for best sync performance
- Document Issues: Keep log of issues and resolutions
- Regular Audits: Compare cmdbx vs ServiceNow data quarterly
Related Articles
- Sync Configuration - Configure sync settings
- Connection Issues - Fix connection problems
- Common Errors - Error reference
- ServiceNow Setup - Initial setup
Need Help?
Contact [email protected] with sync logs and error details for assistance.