Export action

I'm trying to export using the exported generator following this guide: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export Laravel 11 Filament 3.2.23 The issue that I have is that sometimes when exporting it includes not related that or unwanted rows. I've thought it could be because of mix relations in the columns, but even with just the columns that are autogenerated it mix the data and adds unwanted data. I have tried to update Filament to 3.3.0 Clear cache
5 Replies
Chupapi
ChupapiOP3w ago
Also, it always says success, with the numer of rows in the resource table, but when I open the file it includes n number of unwanted data
Dennis Koch
Dennis Koch3w ago
Are you using a special primary key? Or do you modify the query anyway?
Chupapi
ChupapiOP3w ago
No, just using the export action with the generated export resource. I only happen with a specific resource, the others work fine. What worked (for the moment) is limiting with a modifier the amount of elements returning the to the total of active elements because the unwanted data shows after the requested rows which are the same amount of rows that are on the table.
UsmanFESF
UsmanFESF6d ago
I'm also facing the same issue, it gets resolved if I restart the queue, but it has been bothering me a lot
toeknee
toeknee6d ago
Sounds like some unique query data being applied on boot/model level? check the query being run when it's going for the data first. Telescope will allow you to find these etc.

Did you find this page helpful?