ParchiX
ParchiX
FFilament
Created by ParchiX on 3/18/2024 in #❓┊help
Import Action won't let me import decimals
Hi! About to lose my hair here. Whenever I try to import decimals from a CSV, the importing fails and I get this error message on the "failed_import_rows" table: "The payout field must be an integer. " In my database, the payout is set to decimal(11,5) and I tried setting it to nullable and not nullable. Things I've tried: - Casting the state - Filament built-in casting with numeric() - Removing all validation - Building the resource from scratch. Nothing works. - Filament and league/csv are up to date. - Laravel log shows no errors - Console shows: 2024-03-18 18:23:00 Filament\Notifications\DatabaseNotification .............................. RUNNING 2024-03-18 18:23:00 Filament\Notifications\DatabaseNotification ......................... 17.29ms DONE - The value in the CSV is ,6.5, not ,"6.5", If I change the value to 6, everything works as expected. Am I missing something?
5 replies