Nick (EFnet)
Nick (EFnet)
FFilament
Created by Nick (EFnet) on 10/19/2024 in #❓┊help
How to view Export CSV row errors?
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
3 replies
FFilament
Created by Nick (EFnet) on 10/19/2024 in #❓┊help
How to view Export CSV row errors?
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);

3 replies