You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.64
What version of Laravel are you using?
12.1.1
What version of PHP are you using?
8.3.6
Describe your issue
When importing with multiple sheets and using WithChunkReading, an exception will be thrown and reading skipped if an unknown sheet is encountered even when SkipsUnknownSheets is set.
How can the issue be reproduced?
Create a spreadsheet with only 2 tabs (People and Places) and import using a similar class
class TestImport implements WithMultipleSheets, SkipsUnknownSheets, WithBatchInserts, WithChunkReading
{
public function sheets(): array
{
return [
'People' => new PeopleImport(),
'Places' => new PlacesImport()
'Things' => new ThingsImport(),
];
}
public function onUnknownSheet($sheetName): void
{
info("Sheet $sheetName was skipped on import");
}
}
What should be the expected behaviour?
The import should work as expected
The text was updated successfully, but these errors were encountered:
pusherman
changed the title
[Bug]: WithChunkReading throws exception of unknown sheets
[Bug]: WithChunkReading throws exception on unknown sheets
Mar 22, 2025
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.64
What version of Laravel are you using?
12.1.1
What version of PHP are you using?
8.3.6
Describe your issue
When importing with multiple sheets and using WithChunkReading, an exception will be thrown and reading skipped if an unknown sheet is encountered even when SkipsUnknownSheets is set.
How can the issue be reproduced?
Create a spreadsheet with only 2 tabs (People and Places) and import using a similar class
What should be the expected behaviour?
The import should work as expected
The text was updated successfully, but these errors were encountered: