You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 22:14:51