M查询 - Web服务调用 - “无法保存对服务器的修改。返回错误:“M分区使用数据函数,该函数导致访问与模型中定义的数据源不同的数据源。” [英] M query - Web service call - "Failed to save modifications to the server. Error returned: 'An M partition uses a data function which results in access to a data source different from those defined in the model."

查看:108
本文介绍了M查询 - Web服务调用 - “无法保存对服务器的修改。返回错误:“M分区使用数据函数,该函数导致访问与模型中定义的数据源不同的数据源。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Web服务调用来创建查询/表...


 


收到以下错误:


 


< p style ="margin:0in; font-family:Calibri; font-size:11.0pt">"


无法保存对服务器的修改。返回错误:'M分区使用数据函数,导致访问与模型中定义的数据源不同的数据源。


'。


"


 


我认为可能是/潜在的问题:我认为数据"源"可能是有可能的。可能不存在(我通过另一个查询的查询属性添加了查询 - "新的空白查询")。
因此查询命名源,并连接到它,但是当表进入处理时,模型引擎不能"正式"处理。找到查询中指定的数据源。我不确定如何在模型中明确地将Web服务添加为数据源。我希望在.bim文件(json文件)中执行此操作。


 


详细信息:


 


  1. 正在连接"匿名"到私人网络服务器。 (没问题)
  2. 使用"启用快速合并" ; on(True) - 允许使用查询组合进行不太严格的安全设置(此查询不会合并多个数据源)。
  3. 查询设计编辑器中没有显示错误 - 编辑器允许连接数据源,它允许导航数据源(JSON),它允许完整查询
    设计,关闭编辑器和创建表,但是,它不会加载数据。


 


有谁知道怎么做添加Web服务作为显式数据源?我在我的查询中命名了我的Web服务,但我确实将Web服务命名为表格模型
资源管理器的数据源部分中的源。


 


它是我很奇怪,查询编辑器不会抛出任何错误,并且在查询编辑器中我可以看到我定义的查询的数据记录,但是当我去处理数据时,会抛出此错误。
问题也阻止了模型的部署 - 因此它不会让我部署创建的空表(同样,系统允许创建查询和表,但它是空的,即使我看到记录在查询演示/预览中)。


 


< p style ="margin:0in; font-family:Calibri; font-size:11.0pt">思考?

解决方案

你好,


你能分享M代码吗?


I am using a web service call to create query/table…

 

Receiving the following error:

 

"

Failed to save modifications to the server. Error returned: 'An M partition uses a data function which results in access to a data source different from those defined in the model.

'.

"

 

What I think may be a/the potential issue: I think it may be possible that the data "Source" may not exist (I added the query via query properties from another query - "new blank query"). So the query names the source, and connects to it, but when the table goes to process the model engine cannot "officially" find the data source named in the query. I am not sure how to add a web service as a data source EXPLICITLY in the model. I am looking into doing this in the .bim file (json file).

 

Details:

 

  1. Connecting "anonymously" to private web server. (no issue)
  2. Working with "Enable Fast Combine" on (True) - to allow for less strict security settings with query combinations (this query does not combine multiple data sources).
  3. No errors indicated in the query design editor - the editor allows connection to the data source, it allows navigation of the data source (JSON), it allows complete query design, closing of the editor and creation of the table, BUT, it will NOT load the data.

 

Does anyone know how to add a web service as an explicit data source? I have named my web service in my query, but I did name the web service as source in the data sources section of the Tabular Model Explorer.

 

It is strange to me that the query editor throws no errors, and that in the query editor I can see data records for the query I define, but when I go to process the data, this error is thrown. The issue also prevents deployment of the model - so it will not let me deploy the empty table that is created (again, the system allows the query and table to be created, but it is empty, even though I see records in the query demo/preview).

 

Thoughts?

解决方案

Hello,

Can you share the M code?


这篇关于M查询 - Web服务调用 - “无法保存对服务器的修改。返回错误:“M分区使用数据函数,该函数导致访问与模型中定义的数据源不同的数据源。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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