首页 > 解决方案 > 未找到 Acumatica Odata 通用查询

问题描述

当我尝试使用 PUT 访问 Acumatica Odata 链接时(已登录)

https://www.myaccumatica.com/MyCompany/odata/JSM Sync INTran?$format=json&$top=10

与 PUT 一起发送的数据是一个空集 {}。

PUT 返回以下错误

"odata.error": {
  "code": "",
  "message": {
    "lang": "en-US",
    "value": "No HTTP resource was found that matches the request URI 'https://www.myaccumatica.com/MyCompany/odata/JSM Sync INTran?$format=json&$top=10'."
  },
  "innererror": {
    "message": "No routing convention was found to select an action for the OData path with template '~/entityset'.",
    "type": "",
    "stacktrace": ""
  }
}

通用查询根据需要在站点地图中。

在此处输入图像描述

错误是 odata.error,所以我认为 Acumatica Odata 功能正在处理我的请求,但我无法弄清楚为什么它看不到通用查询。

标签: odataacumatica

解决方案


您需要从 URI 中删除空格。

请参阅 Acumatica 帮助页面

如果显示名称包含无效符号,则会从名称中删除这些符号。例如,Account Name 转换为 AccountName。


推荐阅读