Skip to main content
Question

Excel Writer: Failed to save changes to the spreadsheet


first sorry if the question is not in the right place

 

I have a problem with Excel Writer inconsistently showing the Error:

Excel Writer: Failed to save changes to the spreadsheet 'file name'. Check that you have write permission to the file, it has no password protection and is not opened by another application. Error message is 'bad allocation'
A fatal error has occurred. Check the logfile above for details
... Last line repeated 2 times ...

sometime it doesn't show at all and other times for the some unchanged WB it appears and I only restart my machine and it would work fine but other times it wouldn't unless I manually run the WB till the Excel Writer and run the Writer alone and it will be fine 

I thought that the problem was only appearing when I use the same writer to write multiple Sheets and tried to have them be separate (multiple Writer one for each sheet but all writing to same file) but it appeared again in a write with a single sheet.

by the way it usually start writing some data first so the writer will create the fill and write but stop suddenly.

note: I have seen the same question and the answer was something about writing to a file not directory I don't think that's the problem here.

13 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Can it be that multiple writers try to write to the same file at once?

Do you use Classic writers or FeatureWriters?

If you use FeatureWriters, you can use the summary feature, a Holder and a Tester to prevent the 2nd writer start writing while the first writer is not finished yet.


nielsgerrits
VIP
Forum|alt.badge.img+54
nielsgerrits wrote:

Can it be that multiple writers try to write to the same file at once?

Do you use Classic writers or FeatureWriters?

If you use FeatureWriters, you can use the summary feature, a Holder and a Tester to prevent the 2nd writer start writing while the first writer is not finished yet.

2020-10-07_10h10_59


  • Author
  • October 7, 2020

"Can it be that multiple writers try to write to the same file at once?"

as I said it also happened with single writer writing to a single Excel sheet

"Do you use Classic writers or FeatureWriters?"

sorry I don't know the difference I am new to FME


  • Author
  • October 7, 2020
nielsgerrits wrote:

Can it be that multiple writers try to write to the same file at once?

Do you use Classic writers or FeatureWriters?

If you use FeatureWriters, you can use the summary feature, a Holder and a Tester to prevent the 2nd writer start writing while the first writer is not finished yet.

I just tried with FeatureWriter and a single Excel Sheet ,but still the same error


redgeographics
Celebrity
Forum|alt.badge.img+49
mohammedkh wrote:

"Can it be that multiple writers try to write to the same file at once?"

as I said it also happened with single writer writing to a single Excel sheet

"Do you use Classic writers or FeatureWriters?"

sorry I don't know the difference I am new to FME

Are you sure the file isn't opened somewhere else?


  • Author
  • October 7, 2020
redgeographics wrote:

Are you sure the file isn't opened somewhere else?

it can't be opened cause the WB it self create the file


nielsgerrits
VIP
Forum|alt.badge.img+54

Do you work using Feature Caching? Does it work when switched off? Default on with Feature Caching is causing a lot of issues.


  • Author
  • October 7, 2020
nielsgerrits wrote:

Do you work using Feature Caching? Does it work when switched off? Default on with Feature Caching is causing a lot of issues.

Yeah I work with it on ,but the error also appear when I run the WB using FME Quick Translator which I think doesn't have  Feature Caching.


nielsgerrits
VIP
Forum|alt.badge.img+54
mohammedkh wrote:

Yeah I work with it on ,but the error also appear when I run the WB using FME Quick Translator which I think doesn't have  Feature Caching.

You can switch it off in workbench under Run --> Enable Feature Caching.

Can you share your workspace?

Do you have a single writer or multiple writers?

Do you write to an existing or to a new file?

Is the file locally stored or on a network?

Do you or the network use a sync mechanism? This can cause the file to be locked while syncing.


  • Author
  • October 8, 2020
mohammedkh wrote:

Yeah I work with it on ,but the error also appear when I run the WB using FME Quick Translator which I think doesn't have  Feature Caching.

yeah I Know how to turn it off but as I said I am running it on FME Quick Translator which I think doesn't have Feature Caching

I can't it have sensitive info and the input is from our database

yes there is multiple writers

no the file is created by the workbench


  • Author
  • October 11, 2020

@david_r​ 

can you help me please


david_r
Evangelist
  • October 12, 2020
mohammedkh wrote:

@david_r​ 

can you help me please

Sorry, I have no idea. You may want to consider contacting your FME Partner / Reseller for support.


  • Author
  • October 14, 2020

If Anybody have the same problem.

I didn't solve it but a work around is is that i wrote every sheet as a CSV and made another WB to assemble them in one xlsx file the down side to this method is that the main WB now take almost triple the time it previously needed


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings