This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
on 06-06-201901:58 PM- edited
a week ago
How to check for encoding or formatting issues with Excel worksheets
When using Excel spreadsheets in Alteryx, sometimes there may be difficulty in reading the data. Viewing the spreadsheets in XML format is an excellent way to check for encoding or formatting issues.
Product - Alteryx Designer, Gallery, or Server and an Excel file used in Alteryx workflows or applications
To view in XML, open the Excel worksheets in 7-zip or another application used for .zip files. Use the format C:\folder_path_of_the_workbook\Excel_file_name.xlsx\xl\worksheets. Next, click on the sheet name and the XML for the spreadsheet is shown.
Notice the type of encoding is at the top. Followed by the formatting schemas, and then formatting for the worksheet. If needed, you can change the extension of the spreadsheet from .xml to .txt and edit the encoding or formatting of a spreadsheet to match a working example, and then change the extension back to .xml.
If the Excel workbook is created automatically, such as being created by a script, the information needed for Designer to open the spreadsheets may be missing. Excel can sometimes add this information from its templates when opening the spreadsheet, but Designer is not able to add default encoding and formatting if it is missing.
If you come across an issue, it is a good idea to try adding example data directly in Excel and saving. Excel should automatically add the needed encoding and formatting. Afterward, you can compare with the broken file and update it to match the working example.
There are other possible reasons why Designer may not be able to open an Excel spreadsheet. However, checking for encoding and formatting issues in XML view will catch many of the problems with opening Excel data in Designer, so it is an excellent place to start.