FAILMAIL subject: Failmail alert Removal : of INVALID_MESSAGE from donations civi1002 Civi\WMFQueue\QueueConsumer
log file: /var/log/process-control/donations_queue_consume/donations_queue_consume-20260814-040501.log
The code in ext/wmf-civicrm/Civi/WMFQueueMessage/DonationMessage.php suggests this error is thrown when we payment_instrument_id is not set int he message and indeed the message (below) doesn't:
{
"message": {
"gateway": "gravy",
"audit_file_gateway": "stripe",
"backend_processor": "stripe",
"gateway_txn_id": "txn_1TzHdNIwQmMg1daL65qYaEUG",
"gateway_account": "mg",
"type": "donation",
"date": 1785508921,
"order_id": null,
"contribution_tracking_id": null,
"backend_processor_txn_id": "txn_1TzHdNIwQmMg1daL65qYaEUG",
"payment_method": "stripe_account",
"currency": "USD",
"gross": "1780.11",
"original_total_amount": "1780.11",
"original_currency": "USD",
"settlement_batch_reference": "stripemg_po_1U09w4IwQmMg1daLtFefjkT2_USD",
"settled_total_amount": "1780.11",
"settled_fee_amount": "-0",
"settled_net_amount": "1780.11",
"settled_currency": "USD",
"settled_date": 1785717656,
"payment_orchestrator_reconciliation_id": "",
"contribution_id": null,
"parent_contribution_id": null,
"transaction_details": null,
"utm_source": "stripe_audit",
"utm_medium": "stripe_audit",
"utm_campaign": "stripe_audit",
"source_name": "stripe Recon Auditor",
"source_type": "audit",
"source_host": "civi1002",
"source_run_id": 3229633,
"source_version": "unknown",
"source_enqueued_time": 1786680302
}
}