-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception calling "Save" with "0" argument(s) #1572
Comments
I would need to see the xlsx in order to debug the issue. Can you repro the problem on a sanitized xlsx and post it? |
I get this err msg when I try to save when the underlying XLSX still is open (and therefore locked). |
If you have the |
see edit2 below I have an xlsx where one of the worksheets is preventing the powershell module to save. There must be an unsupported element in this specific sheet since I can remove the "problem" sheet in the Excel application and then the module is able to handle the xlsx and save without an issue. The "problem" sheet does not have any macro or obvious complexity that the module would be unable to handle. edit: to be clear, my code does not interact with the problem sheet. I have a feeling that any modification to the xlsx requires the entire package to be rebuilt/packaged together and breaks due to a specific element on one of the (problem) sheets. edit2: i found the issue was caused by a table in the "problem" sheet. thank you for your time. |
Did that resolve your issue. Debugging this sorts of things is just how you did it. |
yes, "Convert to Range" resolved my issue - but i'm not the original person to open this issue. i happened to have the same error, "Exception calling "Save" with "0" argument(s)" with "InvalidOperationException" - but OP could have an unrelated issue preventing his save. if i could give feedback:
thanks again. |
Thanks @jhnkane good poing about an FAQ. If there was a |
I also have this issue, but it seems to possibly be connected to cell validation(s). Strangely, it seems to shift around. When I remove cell validation from a particular problem cell, it might fix the issue sometimes, but at other times it doesn't. I'll try to keep digging and will see if I can get any further info. Sorry that this is not more specific. |
hmm, a shape shifting bug 😉 |
So I have this powershell script that I use to manage my budget spread sheet and I've recently started running into the below error. The code below produces the same error hence why I put it instead of my budget code. It's weird if I make a new xlsx file, copy the data from my test.xlsx, then use the same code below but point to the new file it works....but just once. If I run it again it produces the error.
Any assistance is greatly appreciated.
Also this is my first Issue post on github, so be gentle.
The text was updated successfully, but these errors were encountered: