How to view Export CSV row errors?

I get the database notification that some were successful and some failed, but I can't see the reason why they failed - does anyone know how to hook into that?
1 Reply
Nick (EFnet)
Nick (EFnet)OP2mo ago
For the next person, I would recommend jumping into vendor/filament/actions/src/Exports/Jobs/ExportCsv.php, then inside the handle method, log out the values you are getting for the $this->records and also take a look at the query
$sqlString = $query->toSql();
$bindings = $query->getBindings();
\Log::info("Query: " . $sqlString, $bindings);

$sqlString = $query->toSql();
$bindings = $query->getBindings();
\Log::info("Query: " . $sqlString, $bindings);

It appears my problem is with records, as the wrong ids are being passed in, not the model ids from the table the export exists on
Want results from more Discord servers?
Add your server