Run-time error '5': Invalid procedure call or argument
dstillman
Zotero Team
This discussion was created from comments split from: Run time error 5, invalid procedure call or argument.
Upgrade Storage
@arshiasobhan: What's the full error that you're getting? There should be a debug button that lets you open the Visual Basic console, which should show you the line where the error is occurring. Can you paste that in?
The full error is: Run-time error '5': Invalid procedure call or argument.
The Debug button is there, but it is disabled.
macOS Catalina 10.15.7
Word 16.46 (21021202)
Report ID: 1099239982
I just reported the error through zotero. Report ID: 440810759.
I'm running:
MacOS Big Sur v11.2.1
Microsoft Word for Mac 16.46
I downloaded the file and ran the above command from the terminal. The citing operation window opened and it worked for adding one citation. I am in the same document and went to add another citation and it didn't work. I can't run that code for every citation.
Also, as you'll see in the error report I am currently working with the Big Sur beta as I thought maybe that was the problem. I had the same error from both the newest version of Zotero and when reverting to the beta.
Rebecca
~/Library/Group Containers/UBF8T346G9.Office/User Content/Startup/Wordand restart Word, does the plugin work?Cannot insert citations. Both the keyboard shortcut and Ribbon item cause a Visual Basic error. The error dialog is hidden (visible only with Mission Control) and cannot be interacted with. It also makes Word impossible to interact with, so I have to force quit every time.
It says:
実行時エラー 5: プロシージャの呼び出しまたは引数が無効です。
(Runtime error 5: Invalid procedure call or argument.)
I replaced the Zotero.dotm with the one @adomasven linked to above, with no effect.
The script, however, works fine. I can even use it when I can't click on Word. I successfully inserted a citation with the script, but I can't edit the document further, nor can I save it, etc. The Visual Basic error dialog still interferes with all attempts to do anything in Word.
Running:
MacOS 11.6 (20G165)
Word 16.53 (21091200)
Zotero 5.0.96.3
However, having the system in English is not ideal. Is there another workaround?
For reference, I've been using Zotero in MacOS set to Japanese since at least 2010, and this is the first time this error has occurred.
I suppose there's no way to know what "system-specific" issues are causing this problem? In which case, I suppose the best thing is just to wait for an update and see what happens?
I'll try to roll back the latest Word update and see if that helps.
If it doesn't, later, when I have some time, I could test what happens if I switch to some other languages I'm comfortable in (French, Norwegian, maybe Spanish or Italian). But that probably wouldn't help because they're all romanized.
However, I cannot reproduce the error on a MacBook Air purchased in Japan (and with macOS in Japanese) but with Zotero not fully updated.
MacOS 11.6 (20G165)
Word 16.53 (21091200)
Zotero 5.0.96.2 ← not 3
Occam and his razor are pointing emphatically to the the latest release of Zotero, though as you say, it could be a hardware issue or something else.
Also, I'm not sure if rolling back just the last Word update will help as this is quite an old issue by now. Did citing with Zotero ever work with Japanese language on the MBP?
Thanks for the link; saved me the trouble of rooting around for it, which is much appreciated!
Sorry for the delay. The trackpad on the (Japan-bought) Air died and I couldn't use it for a while. Now that that is fixed, I updated it to 5.0.96.3. Works as advertised.
5.0.96.3 still doesn't work on the (Norway-bought) Pro. I updated and tried it based on success with the Air, and have now had to downgrade.
Should I switch to the Beta channel? Are there any risks to the integrity of the database in doing so?
So, now 5.0.96.2 doesn't work either (MacBook Pro). I'll try to downgrade Word and see if that helps, but it looks like that's a pretty heavy lift (at least on a Mac). Any advice would be appreciated.
For reference, Word is currently 16.54 (21101001), so it's also been upgraded since my original post.