Writing to existing Excel file with extra columns, corrupts file
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have an Excel spreadsheet that I want to overwrite. This spreadsheet has two extra columns at the end with formulas in them.
I'm using:
File Format: Microsoft Excel (*.xlsx)
Output Options: Overwrite Sheet (Drop)
Append Field Map: By Field Name
When I do this, and try to open the Excel file, it tells me it's been corrupted.
If I have it write to a different tab without the extra two columns, it opens fine.
Is this normal behavior?
Solved! Go to Solution.
- Labels:
- Best Practices
- Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That's a bit strange.
Does the spreadsheet have other Sheets that you need?
If not, try Overwrite File option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If I do the Overwrite File (Remove), won't that remove the two formula columns as well? Because they aren't in the Alteryx output file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, sorry, I misunderstood. You need to define a range in the sheet and then write to the range.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Enter the column names in the Sheet exactly as the columns you're writing from Alteryx, then Select the columns and define them as a range.
Change your output option to Append existing sheet and instead of specifying the sheet name, specify the range name instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Instead of Append, I chose the original Overwrite Sheet (Drop) and it worked having named the desired columns and instead of selecting a sheet (default Sheet1) I chose the named range as where to write to.
"Change your output option to Append existing sheet and instead of specifying the sheet name, specify the range name instead."
Thanks David!
