【问题标题】:SubReport Issue with Dynamics CRM 2011 Reports using SSRS使用 SSRS 的 Dynamics CRM 2011 报表的子报表问题
【发布时间】:2013-09-23 15:03:59
【问题描述】:

我正在尝试使用 Dynamics CRM (FetchXML) 向 Reporting Services 中的报表添加一个简单的子报表。这一切都在我的本地机器上,还没有发布任何报告。我只是想让它们在 Reporting Services 中运行。我在子报表中为字段“名称”添加了一个参数。然后我在主报告中添加了一个子报告。然后我通过子报表属性选择了子报表,并在此处也传递了参数。

这是来自主报告的 FetchXML

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
    <attribute name="ownerid" />
    <attribute name="new_databaseserver" />
    <attribute name="new_databasename" />
    <attribute name="accountid" />
    <order attribute="name" descending="false" />
  </entity>
</fetch>

这是来自子报表的 FetchXML

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
    <attribute name="accountid" />
    <attribute name="new_adam" />
    <order attribute="name" descending="false" />
  </entity>
</fetch>

这是错误:

[rsErrorExecutingSubreport] 执行子报表“SubReport1”时出错(实例:19iT0R0x0S0):子报表“SubReport1”的数据检索失败,位于:/SubReport1。请查看日志文件以获取更多信息。

整个周末我都在绞尽脑汁。任何帮助将非常感激。

【问题讨论】:

  • 您是否查看了日志文件以获取更多信息?
  • 我在家里无法访问它们,但我明天会。到目前为止,您是否发现我在这里粘贴的内容有任何问题?是否可以在 Dynamics CRM 中使用子报表?

标签: reporting-services dynamics-crm-2011


【解决方案1】:

我注意到您在子报表中没有过滤器表达式。我认为报告服务会尝试两次从 CRM 获取所有帐户数据:第一次报告,然后是子报告。尝试将此提取用于子报告:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="account">
    <attribute name="name" />
    <attribute name="accountid" />
    <attribute name="new_adam" />
    <order attribute="name" descending="false" />
    <filter type="and">
       <condition attribute="name" operator="eq" value="@Name" />
    </filter>
  </entity>
</fetch>

@Name 是您的参数名称。

【讨论】:

  • 谢谢,但这似乎也不起作用。我添加了以下内容
  • 您在 CRM 中有多少账户记录?也许尝试添加到父报告计数限制:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-09-17
  • 2016-09-21
  • 2013-09-24
  • 2014-04-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多