找不到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": ""
  }
}

常规查询位于站点地图中。

enter image description here

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

解决方法

您需要从URI中删除空格。

请参阅Acumatica帮助page

如果显示名称包含无效符号,则这些符号将从名称中删除。例如,“帐户名”将转换为“帐户名”。