So yesterday, after all of the travel fun and games of the few days, it was back to the real world with a bump. I had a pile of bugs to fix on various projects. Most were very simple to get through, but one has taken me several hours to track down so I thought it would be useful to record the problem and my solution.
Could not complete the operation due to error 80020101
There are a *lot* of websites out there where people have come across this problem and then tracked it down to a specific problem with their code so they assume that this error message means you should remove comment tags from your script, or there’s a missing semi colon on the end of a line, or an array is incorrectly formed. All of these may well be true, but the error message just means “There is an error”, you can read no more into it than that.
Instead, you need to look very closely at whatever is being returned and evaluate it manually yourself to track down the issue.
The point is that your problem may be something entirely different, and you’d still get exactly the same error message from IE. Thanks for that Microsoft.
Great work tracking this bugger down mate.
So "80020101" = MS #Fail.
I want that on a T-shirt 🙂
Sorry for my English. Thank you! Got rid of the error IE! Required to follow very closely the syntax of scripts…
Great job and thank you for sharing.
I’m stunned about myself that after all the years MS’ incompetence still surprises me.
Nice work man. Forgto to close script block – IE was the only browser complaining…
How can I remove the email address that caurse error
I tried to put an html-comment inside a script block, same error.
Removed <!– !> comment from script tag solved problem
I had missed to put ‘var’ in front of variable declaration, putting that it solved the issue.
uploadDocument = "Some message";
I fixed it to
var uploadDocument = "Some message";
Root cause was that I had an element in the form with the same id "uploadDocument", hence the above declaration was causing the html to be malformed
To reveal the error reason, you could run your code in IE. E.g. create a simple html page with script tag inside, open it in IE and you’ll get all the errors in readable format