【UiPath 问题 16 】Error openning workbook. Make sure Excel is installed

问题描述

使用 “Excel application scope” 打开 Excel 的时候 得到如下错误:
“System.Exception: Error openning workbook. Make sure Excel is installed —> System.InvalidCastException: Unable to cast COM object of type ‘Microsoft.Office.Interop.Excel.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Excel._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{000208D5-0000-0000-C000-000000000046}’ failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).”

解决办法

在注册表中找到 Win32 和 Win64 文件夹,删除其中一个。当你安装的是 Win32 版的 Excel, 删除 Win64 这个文件夹,以此类推

Excel 注册表位置:


英文原文:
We need to remove Win32 entry, if we are using Office 64-bit. Or delete Win64 entry if we are using Office 32-bit

As I read that the problem was probably in regedit, I tried to find multiple entries of office but found nothing. Instead if I looked deeper into the TypeLib-key for Excel and Outlook there was a folder named “0” and inside that folders named Win32 and Win64. The problem is that I only have a Win64-installation of office, so I changed both keys values to match my current installation of EXCEL.EXE and MSOUTL.OLB. Now UiPath finds them.

该问题来自论坛
https://forum.uipath.com/t/error-opening-workbook-make-sure-excel-is-installed/15009

返回目录

更多 UiPath 相关的资讯,请关注公众号:流程自动化机器人教程
由于简书禁止直接在文章中插入公众号二维码,请点击 这里 了解添加该公众号的细节。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 时间:180114 20.00 学习目的: 1 了解什么是精要主义 2 了解自己状态,如何更好抓住重点,把时间高效...
    为未来做坚持阅读 914评论 0 52
  • 1.月兔的烦恼是什么?幸平他们给的建议是什么?月兔之后的烦恼都是什么?幸平的应对建议是什么?月兔这件事最终结果是什...
    自然_f556阅读 1,724评论 0 1
  • 我们最近在开发一款APP,有安卓和iOS版本,关于代码库的分支管理我考虑过几种情形,从单分支到复杂的多分支管理都...
    BigCrabie阅读 1,163评论 1 2

友情链接更多精彩内容