I am having this problem and I think it comes down to some unseen invalid data that causes ODS to give this error.
The report has been running fine for several months, I read in chat data and output into a report for review. The chat data is in a csv file.
Last week I started having an issue where the excel only gives an error message when trying to open.
There are no errors in the log.
The box that pops up when trying to open the excel report .
I have attached a pdf of the box.
When I click ok the excel closes so no report output.
I have tried to strip any unprintable characters out of the field that contains the chat data but still having the same problem.
The tables look fine, I cannot see any issue or strange data.
I need to figure out how to resolve this. Has anyone else have experience with this? I tried to upload the image of the box I get, but the image failed to upload.
Any assistance to resolve this issue will be greatly appreciated.
Thanks,
Elliott
Without more information I'm not sure we can help you.
I would suggest taking one of your current reports and one of the old reports and comparing the XML. An XLSX file is just a zipped XML so you can unzip it and compare the contents to find the difference and then try and trace it back.
My first guess would also be that the issue was with some weird text in the CSV file, especially if it's survey comments. Look for ALT+ENTER symbols (Carriage returns in cells), extra commas, and quotation marks that don't match up in the text data. Verify your data import step is happening correctly and that there are no errors in the log for that step.
Did you look at that log file referenced in the popup?
Are you reading data using Proc Import?
If so, then you may be getting artifacts because the variable types or other properties have changed. "Tables look fine" is not the same as comparing data to a previous data set where the process worked to verify that the properties of variables are the same. Proc Contents on a working data set and one that creates the error is good place to start.
No errors in the log is not the same as "no warnings" which will often create output but means that the data has another issue.
What if you use a different ODS destination, such as the basic results window (html)? Do you get output?
If your ODS Excel statement has lots of controls set like column widths and the output no longer aligns with them that is something to look at as well. Or share your ODS destination statement. There are enough different ways to create "Excel" output that details matter.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.