Troubleshooting Guide
Solutions for common issues with the e-Boekhouden connection module.
Connection Issues
Connection Test Fails
Symptoms:
- "Invalid credentials" error
- "Authentication failed" message
- Connection test button shows error
Solutions:
-
Verify credentials:
- Log into e-Boekhouden.nl
- Go to Beheer → Instellingen → Koppelingen tab → API/SOAP
- Copy credentials exactly (including any special characters)
- Note: Security codes are case-sensitive
-
Check scope:
- Ensure you're configuring the correct store view
- Credentials may differ per store view
-
Clear encrypted values:
- Delete Security Code 1 and 2 fields completely
- Save config
- Re-enter the codes fresh
- Save and test again
-
Check API status:
- Verify e-Boekhouden API is operational
- Contact e-Boekhouden support if issues persist
Timeout Errors
Symptoms:
- "Connection timed out" errors
- Sync takes very long then fails
Solutions:
-
Check server connectivity:
- Verify outbound HTTPS connections are allowed
- Check firewall rules for e-Boekhouden API endpoints
-
Reduce batch size:
- Process fewer invoices per cron run
- Consider more frequent, smaller syncs
Sync Issues
Invoices Not Syncing
Symptoms:
- Invoices appear in grid but don't sync
- No entries in Invoice Log
- Success stays empty
Solutions:
-
Check module status:
- Verify Module Status is "Yes"
- Verify Connection is "Enabled"
-
Check cron:
bin/magento cron:run- Verify Magento cron is running
- Check cron_schedule table for accounting jobs
-
Check automation:
- Go to Accounting → General
- Ensure "Auto add invoices and creditmemos" is Yes
-
Check start date:
- Invoice date must be after configured Start Date
- Adjust Start Date if needed
-
Manual push:
- Go to Accounting → Data → Invoices
- Click Actions → Push to e-Boekhouden
Invoice Syncs but Shows Error
Symptoms:
- Invoice Log shows Success = No
- Error message in Message column
Common errors and solutions:
"Invalid tax code"
- Go to Accounting → Configuration → Tax Rate Mapping
- Map the missing tax rule to an e-Boekhouden code
- Tax codes are case-sensitive (use HOOG_VERK not hoog_verk)
"Customer email required"
- Order has missing or invalid billing email
- Update customer record with valid email
- Resync the invoice
"Ledger account not found"
- Click "Sync Ledger & Costs from e-Boekhouden" in settings
- Reconfigure ledger mappings
- Verify ledger exists in e-Boekhouden
"Invoice number already exists"
- Invoice was previously synced to e-Boekhouden
- Check e-Boekhouden directly for the invoice
- This is not necessarily an error
"Factuursjabloon not found"
- The configured template doesn't exist in e-Boekhouden
- Go to e-Boekhouden: Beheer → Sjablonen → Factuursjablonen
- Use the exact template name in configuration
Credit Memos Not Syncing
Symptoms:
- Credit memos stuck in queue
- Error: "Invoice not found"
Solutions:
-
Sync original invoice first:
- Credit memos require the related invoice to be synced
- Find and sync the original invoice
- Then resync the credit memo
-
Check credit memo date:
- Must be after configured Start Date
Tax Issues
Wrong Tax Rate in e-Boekhouden
Symptoms:
- Invoice in e-Boekhouden shows wrong VAT percentage
- Tax amounts don't match Magento
Solutions:
-
Check Tax Rate Mapping:
- Go to Accounting → Configuration → Tax Rate Mapping
- Find the tax rule used on the invoice
- Verify correct e-Boekhouden code is mapped
-
Check fallback tax codes:
- Go to e-Boekhouden.nl → Advanced Settings
- Verify Default Tax Classes are set correctly
-
Resync after fixing:
- After correcting mapping, invoice may need manual update in e-Boekhouden
- Or create a corrective entry
Tax Code Not in Dropdown
Solutions:
-
Import tax codes:
- Go to Ledger Accounts & Cost Centers
- Click "Sync Ledger & Costs from e-Boekhouden"
- Tax codes are imported along with ledgers
-
Check e-Boekhouden account:
- Verify the tax code exists in your e-Boekhouden account
- Different account types may have different codes available
Customer Issues
Duplicate Customers in e-Boekhouden
Symptoms:
- Same customer appears multiple times as debtor
- Each order creates new customer
Explanation: This can happen intentionally when:
- Customer changes country
- Customer changes VAT number
- Using "Address" sync logic
Solutions:
-
Check sync logic:
- Go to Accounting → General → Advanced
- Review Customer Sync Logic setting
- "Customer" creates fewer duplicates than "Address"
-
Expected behavior:
- Changes to country_id or vat_number create new debtor
- This is intentional as these affect tax rates
Customer Not Syncing
Solutions:
-
Check automation:
- Ensure "Auto add customers" is Yes
-
Check required fields:
- Customer must have valid email
- For B2B: Company name and VAT number recommended
-
Manual sync:
- Go to Accounting → Data → Customers
- Click Actions → Push to e-Boekhouden
Performance Issues
Sync Is Very Slow
Solutions:
-
Optimize cron frequency:
- More frequent = smaller batches = faster per run
- Less frequent = larger batches = longer per run
-
Check for errors:
- Failed syncs retry repeatedly
- Fix underlying errors first
-
Enable Force Recalculate only when needed:
- This setting increases processing time
- Only enable temporarily for migrations
Many Items in Queue
Solutions:
-
Let cron catch up:
- Initial sync of historical data takes time
- Consider setting Start Date to recent date
-
Run cron manually:
bin/magento cron:run --group=accounting
Debug Mode
Enabling Debug Logging
- Go to e-Boekhouden.nl → Debug & Logging
- Set Debug Mode to Yes
- Save Config
- Reproduce the issue
- Check logs:
var/log/eboekhouden/debug.logvar/log/eboekhouden/error.log
Self Test
- Go to e-Boekhouden.nl → Debug & Logging
- Click "Run Self Test"
- Review results for configuration issues
Log File Locations
| Log | Path | Contents |
|---|---|---|
| Debug | var/log/eboekhouden/debug.log |
Detailed API calls and responses |
| Error | var/log/eboekhouden/error.log |
All errors (always logged) |
Common Error Messages
| Error | Cause | Solution |
|---|---|---|
| Invalid credentials | Wrong API credentials | Re-enter credentials from e-Boekhouden |
| Authentication failed | Expired or invalid codes | Generate new codes in e-Boekhouden |
| Invalid tax code | Unmapped or wrong tax code | Check Tax Rate Mapping |
| Ledger not found | Missing ledger account | Sync ledgers from e-Boekhouden |
| Customer email required | Missing billing email | Add email to order/customer |
| Invoice already exists | Duplicate sync | Check e-Boekhouden, no action needed |
| Connection timeout | Network/server issue | Check connectivity, retry later |
Getting Help
Before Contacting Support
- Enable Debug Mode and reproduce the issue
- Download debug.log and error.log
- Note the specific invoice/customer/credit memo IDs
- Run Self Test and capture results
Support Resources
Documentation:
Support:
When contacting support, provide:
- Magento version
- Module version (from Version button)
- Error messages from logs
- Steps to reproduce
- Store view/scope where issue occurs