Troubleshooting

Export Fails Immediately

Check:

  • Mapping JSON is valid (use Validate Mapping in config)
  • Required mappings exist (invoice/credit memo mappings must not be empty)
  • Invoice/credit memo state filters include the documents you expect

“No invoices found” / “No credit memos found”

The exporter filters by:

  • created_at date range (inclusive, end date is treated as 23:59:59)
  • optional store_id
  • configured export states

Try:

  • expanding the date range
  • temporarily enabling more states (e.g. Paid and Pending)

XML Validation Errors

If “Validate XML against XSD” is enabled, validation is executed for:

  • archive XML file
  • each document XML file

Try:

  • switching schema version to v060
  • temporarily disabling validation to isolate mapping issues

Mapping Produces Empty Values

Use default values:

  • Stores >Configuration > MageB2B > DATEV Export Pro > Variable Default Values

Defaults must be keyed by the exact variable path you use in the mapping (e.g. invoice.order.customer_firstname).

Where Are The Files?

Exports are written to:

  • var/export/datev/

CLI Export Fails

If bin/magento datev:export fails, verify:

  • --export_type is invoice or creditmemo
  • --export_format is csv, xml, or both
  • dates use YYYY-MM-DD
  • from/to range contains documents for the selected states/store

Found an issue with this documentation? Let us know