Import Error

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (marzsports.imports, CONSTRAINT imports_user_id_foreign FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE) (Connection: mysql, SQL: insert into imports (user_id, file_name, file_path, importer, total_rows, updated_at, created_at) values (2, team-import - team-importer-example (2) (2).csv, /Users/katendenicholas/Desktop/laravel/marzsportwebapp/storage/app/private/livewire-tmp/oIr4TxEZWH8VzBTEM4sQgTOzBDcHjJ-metadGVhbS1pbXBvcnQgLSB0ZWFtLWltcG9ydGVyLWV4YW1wbGUgKDIpICgyKS5jc3Y=-.csv, App\Filament\Imports\TeamImporter, 6, 2025-05-17 18:27:28, 2025-05-17 18:27:28)) I created a new filament admin panel and used a different table to login but when I try to import I get that error because I am not using that the user table for logging
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?