-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ERROR: Name contains invalid characters #449
Comments
Same here. Kept running into Name contains invalid characters problem when reading the Excel. |
I've run into the same issue. Was pulling my hair out trying to figure out why this was happening. Found this thread and sure enough, I don't have any issue with 4.5.2.1 as well. I'm not sure why I'm having an issue with this particular project. I'm using EPPlus 4.5.3.1 in other projects with no issues. Weird! |
Adapted Martin Trummer's named cell validation code from https://github.com/MartinTrummer/excel-names to fix bug JanKallman#449
Somewhat related, sorry for piggy-backing in this issue, rather than creating a new one. here are the definitions for Defined Name. From: [MS-XLSB] - v20180828 (Release August 28, 2018)From MS Excel help:Learn about syntax rules for names
MS Excel (e.g. 2010) has a bug which prevents creating a new name starting with a backslash \ and having two characters in length (e.g. \a, \q, \0, ...) EPPlus cannot parse such files, and fails in I think we can safely remove the
|
Good morning,
I am writing to inform you that since version 4.5.3 (also 4.5.3.1) we have encountered the following problem:
Name contains invalid characters.
The code that cause the problem is the following:
FileInfo _File = new FileInfo(FullFileName);
xlPackage = new ExcelPackage(_File);
ExcelWorkbook wb = xlPackage.Workbook;
We noticed that the problem is caused by the cells named with the "" character (supported by Excel) (example Product\1).
With previous versions like 4.5.2.1 (and olders) there wasn't any problem.
Thank you in advance for your support and I'm looking forward to a reply.
The text was updated successfully, but these errors were encountered: