paulrockliffe
New Member
- Joined
- Mar 30, 2010
- Messages
- 9
I have 5 .csv files being created by a database process. I have a separate Excel file that is used to analyse the 5 files. The 5 .csv files are loaded into the Excel Data Model (Excel 2013) and Relationships are established between the common column so that all data is available when building Pivot Tables from the Data Model.
The analysis has to be in Excel, so this method is really about automating refreshes of the underlying data. By over-writing the .csv files and running Data -> Refresh All the Excel file updates itself. I know this isn't a great method, but I'm very constrained, so alternative approaches aren't possible.
Anyway, there are 10 different versions of the data, so I've been building the 10 spreadsheets by running the Update All, pointing the Connections to a different folder and saving the result. This has worked up to the 7th spreadsheet, but now Excel is doing something odd.
I create a copy of my file under a different file name and open it. It works perfectly and has the right data in. I then update it and change the connections to the .csv files in a different folder and all the new data is loaded into the Data Model. The spreadsheet works perfectly and contains all the new data. I then save the file and close it. When I reopen it I get a message saying that Excel cannot open the file because it is corrupted.
The file isn't trying to update the data, the updates are manual only and nothing has changed since the first 7 spreadsheets created in the same way were saved. All 7 existing spreadsheets will open without problem, but none of them will work as a template for the three I still need. I've tried rebuilding the data from scratch in case there was an issue with the .csv files, but that has had no impact at all.
More often than not once I've had the corrupted file message Excel hangs and I have to kill the task to get Excel working again.
I'm at a complete loss as to what has happened to stop the process I was using to build the templates from working, so any thoughts or advice most welcome?
Thanks
The analysis has to be in Excel, so this method is really about automating refreshes of the underlying data. By over-writing the .csv files and running Data -> Refresh All the Excel file updates itself. I know this isn't a great method, but I'm very constrained, so alternative approaches aren't possible.
Anyway, there are 10 different versions of the data, so I've been building the 10 spreadsheets by running the Update All, pointing the Connections to a different folder and saving the result. This has worked up to the 7th spreadsheet, but now Excel is doing something odd.
I create a copy of my file under a different file name and open it. It works perfectly and has the right data in. I then update it and change the connections to the .csv files in a different folder and all the new data is loaded into the Data Model. The spreadsheet works perfectly and contains all the new data. I then save the file and close it. When I reopen it I get a message saying that Excel cannot open the file because it is corrupted.
The file isn't trying to update the data, the updates are manual only and nothing has changed since the first 7 spreadsheets created in the same way were saved. All 7 existing spreadsheets will open without problem, but none of them will work as a template for the three I still need. I've tried rebuilding the data from scratch in case there was an issue with the .csv files, but that has had no impact at all.
More often than not once I've had the corrupted file message Excel hangs and I have to kill the task to get Excel working again.
I'm at a complete loss as to what has happened to stop the process I was using to build the templates from working, so any thoughts or advice most welcome?
Thanks
Last edited by a moderator: