I'm loading a rather complex Excel sheet with EPPlus (tried both the latest .dll and the latest source). My relevant code is just this:
```
FileInfo xlsxFile = new FileInfo(fileName);
try {
using (ExcelPackage package = new ExcelPackage(xlsxFile)) {
ExcelWorksheet sheet = package.Workbook.Worksheets[1];
```
In the last line above I get an IndexOutOfRangeException. This is the stack trace:
```
> EPPlus.dll!OfficeOpenXml.RangeCollection.this[ulong].get(ulong RangeID) Line 103 C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.LoadHyperLinks(System.Xml.XmlTextReader xr) Line 793 + 0x1f bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.CreateXml() Line 553 + 0xb bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.ExcelWorksheet(System.Xml.XmlNamespaceManager ns, OfficeOpenXml.ExcelPackage excelPackage, string relID, System.Uri uriWorksheet, string sheetName, int sheetID, int positionID, OfficeOpenXml.eWorkSheetHidden hide) Line 184 + 0x8 bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheets.ExcelWorksheets(OfficeOpenXml.ExcelPackage pck, System.Xml.XmlNamespaceManager nsm, System.Xml.XmlNode topNode) Line 83 + 0x51 bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorkbook.Worksheets.get() Line 254 + 0x2a bytes C#
```
If you need the excel file, I can send it to an email address, but I'd rather not upload it here.
Thanks
Comments: I managed to create a minimal file triggering the issue; should make things easier. Cheers
```
FileInfo xlsxFile = new FileInfo(fileName);
try {
using (ExcelPackage package = new ExcelPackage(xlsxFile)) {
ExcelWorksheet sheet = package.Workbook.Worksheets[1];
```
In the last line above I get an IndexOutOfRangeException. This is the stack trace:
```
> EPPlus.dll!OfficeOpenXml.RangeCollection.this[ulong].get(ulong RangeID) Line 103 C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.LoadHyperLinks(System.Xml.XmlTextReader xr) Line 793 + 0x1f bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.CreateXml() Line 553 + 0xb bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheet.ExcelWorksheet(System.Xml.XmlNamespaceManager ns, OfficeOpenXml.ExcelPackage excelPackage, string relID, System.Uri uriWorksheet, string sheetName, int sheetID, int positionID, OfficeOpenXml.eWorkSheetHidden hide) Line 184 + 0x8 bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorksheets.ExcelWorksheets(OfficeOpenXml.ExcelPackage pck, System.Xml.XmlNamespaceManager nsm, System.Xml.XmlNode topNode) Line 83 + 0x51 bytes C#
EPPlus.dll!OfficeOpenXml.ExcelWorkbook.Worksheets.get() Line 254 + 0x2a bytes C#
```
If you need the excel file, I can send it to an email address, but I'd rather not upload it here.
Thanks
Comments: I managed to create a minimal file triggering the issue; should make things easier. Cheers