-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Exception for invalid range for XLS template export after update from 1.25.0 to 1.26.0 #3301
Comments
Can you test against master? PR #3264, which is part of master but not yet a release, fixes a problem that might be related to yours. |
Hey @oleibman , thanks for the response!
So the fix is confirmed. Do you have an ETL for |
Yes please, it would be great to have a new tag or release for this one. Thank you! cc @horlathunbhosun. |
I want to get a 1.27.0 release this weekend; but I want to include a change for the Cell Iterators to allow returning a null as an alternative to creating a new cell before I'm ready for that release |
@MarkBaker I completely understand this. Having |
Released now as |
This is:
What is the expected behavior?
We are exporting rows of data in an existing XLS, which we use as a template. We search a specific row, insert another row below it and fill it with data.
Until
1.25.0
this worked flawless. With1.26.0
we are running into anException
.It looks like the source is PR #3213.
What is the current behavior?
The writer tries to access an invalid range
"XFD2:CZ2"
.What are the steps to reproduce?
As we are working in a quite grown up Drupal module and
PHPOffice/PhpSpreadsheet
is used for just the writing, it's not really possible to give a reproducible example without building up templates, etc.I assume that the reason is that I do not have data and therefore no range for a row, while it is validated. We are generating the data during iteration and writing through a cascade of observers and listeners. Range will therefore probably not be available at this point in time and falling back to the MAX fails hard.
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
It affects
.xls
. No other formats were tested.Which versions of PhpSpreadsheet and PHP are affected?
PhpSpreadsheet
1.26.0
PHP
The text was updated successfully, but these errors were encountered: