I am using the closed XML for generating the excel template. After filling the data in the generated excel, I am trying to import the excel with data. It returns error "The specified package is invalid. The main part is missing." . I am using XLSX file.
```
try
{
var workbook = new XLWorkbook(FILE_PATH);
}
catch (Exception ex)
{
throw;
}
```
Please provide a solution.
Comments: For me the issue was, file was in the format of "__Strict Open XML Spreadsheet__". Please let me know whether this format is supported by closed xml or not.
```
try
{
var workbook = new XLWorkbook(FILE_PATH);
}
catch (Exception ex)
{
throw;
}
```
Please provide a solution.
Comments: For me the issue was, file was in the format of "__Strict Open XML Spreadsheet__". Please let me know whether this format is supported by closed xml or not.