Export to Microsoft Excel 0-byte fileIssue When a table (or more likely a Database View) with more than 256 columns is exported as an Excel/XLS file (particularly if sysparm_default_export_fields=all is set), the downloaded Microsoft Excel XLS file is 0-byte in size and has no content. Symptoms 0-byte Microsoft Excel XLS file downloaded0 SQL timeError Log: Invalid column index (256). Allowable column range for BIFF8 is (0..255) Facts XLS is a binary file format introduced by Microsoft Excel 97 and used until Microsoft Excel 2003. The file format has been succeeded by the smaller, XML-based XLSX file format introduced with Microsoft Excel 2007. The column limit for each is as follows: XLS - 256 (28)XLSX - 16,384 (214) Release All versions of ServiceNow exporting to XLS Cause This is an inherent column limitation of the Excel BIFF8 format (.xls) used by Microsoft Excel 97 - 2003, which only supports a maximum of 256 columns. When attempting to export more than 256 columns to this format, the process fails, resulting in a zero-byte file. This was confirmed by the error message "Invalid column index (256). Allowable column range for BIFF8 is (0..255)".As this is not a ServiceNow limitation, it is not an Export Limit. Resolution Use the CSV export format instead of Excel, as it is not subject to column limits. This can be done by using the URL parameter &CSV instead of &EXCEL.For better user experience, include column headers and display values by appending &sysparm_export_column_header_label=true&sysparm_display_value=true to the CSV export URL.3. Setting the property glide.export.excel.force_xlsx=true should theoretically help as the .xlsx format supports more columns. Please test in a sub-production instance as the property should affect EVERY Excel export to use the newer .xlsx format.4. For advanced data retrieval, consider using the Table API instead. Related Links https://learn.microsoft.com/en-us/answers/questions/4766806/what-is-the-maximum-number-of-columns-in-a-workshehttps://www.servicenow.com/docs/r/platform-administration/table-administration-and-data-management/c_ExportLimits.htmlhttps://www.servicenow.com/docs/r/api-reference/rest-apis/c_TableAPI.html