Office Web加载项-保存设置时出现内部错误 [英] Office Web Add-ins - Internal error when saving settings

查看:134
本文介绍了Office Web加载项-保存设置时出现内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试保存文档设置时出现故障.消息如下:{"name":"Internal Error","message":"An internal error has occurred.","code":5001}

I'm getting an failure when trying to save my document settings. The message is the following: {"name":"Internal Error","message":"An internal error has occurred.","code":5001}

我的代码:

Office.context.document.settings.set('token', token);
Office.context.document.settings.set('email', email);
Office.context.document.settings.saveAsync(function (asyncResult) {
   if (asyncResult.error) {
      displayError(asyncResult.error.message);
   }
});

当我重新安装操作系统(Windows 10)时发现的问题在Office for Mac和Web中不存在.它同时在PowerPoint和Word上发生. 也许它具有文件写入权限?

The problem revealed when I reinstalled my OS (Windows 10) and does not exist in Office for Mac and Web. It happens both on PowerPoint and Word. Maybe it's something with file write permissions?

我怀疑这可能与最新的office.js版本有关.我正在使用官方CDN( https://appsforoffice.microsoft.com/lib/1/hosted/office.js )或Windows客户端的最新Office 365更新(16.0.11727.20222).尝试保存roamingSettings时,Outlook中也存在该问题.则消息为:{"name":"GenericSettingsError","message":"Permission denied","code":9019}

I suspect it may be the problem with the last office.js release. I'm using the official CDN (https://appsforoffice.microsoft.com/lib/1/hosted/office.js) or with the last Office 365 update for Windows Clients (16.0.11727.20222). The problem exists in Outlook as well when trying to save roamingSettings. The message then is: {"name":"GenericSettingsError","message":"Permission denied","code":9019}

推荐答案

Outlook 1907版(内部版本11901.20176)已修复了该问题.更新Office以摆脱它就足够了.

Issue has been fix with Outlook Version 1907 (build 11901.20176). It is enough to update the Office to get rid of it.

有问题的GitHub页面

这篇关于Office Web加载项-保存设置时出现内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆