PowerApps画布应用Patch+Defaults函数报错问题及解决方法
PowerApps Patch公式报"Unexpected characters"错误的解决方法
问题场景
- 基于Microsoft开发者账户构建PowerApps画布应用,数据源为SharePoint列表
team_data,列表包含ID和new_team两个字段 - 设计了包含文本输入框(命名为
Text_input)和提交按钮的屏幕,按钮的OnSelect事件配置了以下提交数据的Patch公式:
Patch( team_data, Defaults(team_data), {new_team: Text_input.Text} ); Navigate(Menu);
错误详情
Issue
Unexpected characters. Characters are used in the formula in an unexpected way.
For example, the character "'" isn't expected after a number, like this: '32'. A space ('32') would be expected so that it's just the number 32, or another number (as in '323') would be expected.
Location Button3.OnSelect
有效解决方案
将浏览器的默认语言设置为英文,重新加载PowerApps编辑器页面后,该错误即可消除,Patch公式能够正常执行。
内容的提问来源于stack exchange,提问作者Vektori
相关产品推荐
相关产品推荐

