Microsoft Word (for Mac) sudden conflict with Word Processor Add-In [Run Time Error: ‘5’]
Report ID: 230829537
OS: Mac (Catalina and Big Sur)
I have been using Zotero for about 10 years since I worked at CHNM. Until recently, the Microsoft Word Processor Add-In has worked well, allowing me to easily add endnote/footnotes and bibliographies through the Zotero menu in the Word ribbon pane.
When trying to teach my students this feature in Word (both last week and today), I receive a pop-up message: Run Time Error: ‘5’ Invalid Procedure Call or Argument. I tried uninstalling Zotero and then re-installing it - no luck. I updated Word, closed it out, rebooted my Macbook - no luck. Ran a Debug (Debug ID: D264744190) - no luck.
This problem is recent; no problem up until Nov or Dec of 2020. I am having this same Run Time Error: 5 problem on my Macbook Pro running Catalina, and my Mac Mini running Big Sur. Just to be sure, I checked with my university's IT director and our Zotero librarians, and their Word Processor Add-In is working just fine on both PCs and Macs.
Any help is appreciated.
OS: Mac (Catalina and Big Sur)
I have been using Zotero for about 10 years since I worked at CHNM. Until recently, the Microsoft Word Processor Add-In has worked well, allowing me to easily add endnote/footnotes and bibliographies through the Zotero menu in the Word ribbon pane.
When trying to teach my students this feature in Word (both last week and today), I receive a pop-up message: Run Time Error: ‘5’ Invalid Procedure Call or Argument. I tried uninstalling Zotero and then re-installing it - no luck. I updated Word, closed it out, rebooted my Macbook - no luck. Ran a Debug (Debug ID: D264744190) - no luck.
This problem is recent; no problem up until Nov or Dec of 2020. I am having this same Run Time Error: 5 problem on my Macbook Pro running Catalina, and my Mac Mini running Big Sur. Just to be sure, I checked with my university's IT director and our Zotero librarians, and their Word Processor Add-In is working just fine on both PCs and Macs.
Any help is appreciated.
Screen Snips:
https://ibb.co/FHwDTtB
https://ibb.co/dtdQRnv
https://ibb.co/Fb0Wvvs
I also followed the macros debug steps in Zotero.dotm outlined in the thread, replacing the error line: "MacScript "try" & nl$ & "do shell script """ & pipeLocation$ & "; if [ -e \""$PIPE\"" ]; then echo '" & wordVersion$ & " " & func & " "" & POSIX path of (path to current application) & ""' > \""$PIPE\""; else exit 1; fi;""" & nl$ & "on error" & nl$ & "display alert ""Word could not communicate with Zotero. Please ensure that Zotero is open and try again."" as critical" & nl$ & "end try" " with "MacScript "display dialog ""test"" " The dialog says "test"
I know there is not much you can do at this point. I had this problem before and after updating to Big Sur, but everything worked fine the last time I used Zotero for adding citations in Word (back in late summer 2020). If this were a university IT issue that is fine, but our Zotero librarians (one of whom is on a Mac) have no problems whatsoever. So I doubt it's a university software security problem. And if the problem were on just one of my university devices, that would make sense because I l=could look at a possible conflict with an extension or other download ... but both my desktop and laptop suddenly developed this problem and I keep my desktop minimal with apps and extensions.
Oh, no need to do that. If you restore the Zotero.dotm file and you still see the Run Time Error 5 it means there is a problem running that AppleScript line from Visual Basic. Because it started happening on both of your computers it is highly likely that some change since the last time you worked with Zotero on both of your machines that you would have performed yourself (like software install) would be the cause. Unfortunately in the past the most success other users had in fixing this bug was by reinstalling macOS completely.
I'm going to try extracting the embedded applescript into a distinct file and then calling that with the updated "AppleScriptTask".
~/Library/Application Scripts/com.microsoft.Word/Zotero.scpt
We'll try to come up with a fix that works for everyone.
I'm having the same problem I believe. I just downloaded Zotero for the first time. I'm running Zotero 5.0.96.1 on a Mac with Catalina and Word 16.46.
I'm able to see the Zotero toolbar, and Zotero tells me the plugin in installed in Word. When I click to Add/Edit citation using the word toolbar, it says there is a runtime error 5.
I had been using the Mendeley plugin, and it was working until I downloaded Zotero. Now both plugins are giving me the same Runtime error. I've deleted everything Mendeley to try to fix the issue on the Zotero end.
Any help? Any way to tell if my problem is caused by something different?
Like the user above, the Zotero toolbar shows up, but every time I execute it I get a runtime error 5.
Our IT folks have done all they can to help, but even using the Zotero.dotm file above did not fix the problem.
Also seeking help - I'd really love to keep using Zotero.