Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Invalid Spreadsheet file error #4202

Open
1 task done
vicenterusso opened this issue Sep 9, 2024 · 1 comment
Open
1 task done

[Bug]: Invalid Spreadsheet file error #4202

vicenterusso opened this issue Sep 9, 2024 · 1 comment
Labels

Comments

@vicenterusso
Copy link

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.56

What version of Laravel are you using?

10.48.20

What version of PHP are you using?

8.1.4

Describe your issue

I can import a CSV with headers like the example below with success, but when I queued it, it gives the error from title

This is the code I run for queuing that gives me the error. More context: I use ShouldQueue and ChunkReading

Excel::queueImport(new LeadsImport(
    importSession: $importSession,
    unitId: $unitId,
    campaignId: $campaignId,
    userId: auth()->user()->id,
), $request->file('file'));
Name;Phone;Whatsapp;Email;Res;Desc
ABEL;11932358500;;;;
ABNER;14232476126;;;;
ABNER;11921224156;;;;
ADRYEL;11955444869;;;;
ADRYEL;1195533467;;;;
ADRYELLE;4323402074;;;;
ADSON;11942423405;;;;
TEST;43243413;;;;

How can the issue be reproduced?

Just import a CSV with ShouldQueue, and ChunkReading

What should be the expected behaviour?

I expect to import without error throwing

@patrickbrouwers
Copy link
Member

You are not on the latest version of this package, can you try and upgrade to 3.1.58 first to rule out it's related to any of the fixes that have been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants