2014-06-09 60 views
0

我有以下Fetchxml自定義報告讓所有的活動信息:SSRS使用業務發展Studio和FetchXML

<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"> 
<entity name="lead" > 
    <attribute name="companyname" /> 
    <attribute name="leadid" /> 
    <attribute name="gr_totaltraveldays" /> 
    <attribute name="gr_marketvertical" /> 
    <attribute name="leadsourcecode" /> 
    <attribute name="lastname" /> 
    <attribute name="firstname" /> 
    <attribute name="estimatedamount" /> 
    <attribute name="gr_dayssincelastactivity" /> 
    <attribute name="new_numberofattendees" /> 
    <attribute name="ownerid" /> 
    <order descending="false" attribute="ownerid" /> 
    <filter type="and" > 
     <condition attribute="statecode" value="0" operator="eq" /> 
    </filter> 
</entity> 

我從Advance Find在CRM 2011 得到這個FetchXML當我使用FetchXML我的報告數據集,我得到以下錯誤:

enter image description here

gr_totaltraveldays字段在那裏。我查看了數據庫中的字段,該字段位於LeadExtensionBase表中。

+0

您是否100%確定您的目標是該高級查找結果的同一個CRM組織? –

+0

@GuidoPreite是的,我雙重檢查了一切。難道這是'gr_totaltraveldays'在LeadExtensionBase表中的問題? –

+0

crm 2011內部的自定義字段始終位於擴展表中,不適用於 –

回答

0

我在使用FetchXML的BIDS中遇到了同樣的問題.i出現錯誤:「實體」XX「找不到屬性」XXXX「。指定一個有效的查詢,然後重試。但是,該領域存在於實體中並已發佈。

解決方法是在數據源中更改連接字符串並添加組織名稱,如下所示:{URL}; {organizationName}; 然後它的工作!

例如:https://XXXX.crm4.dynamics.com;org12345ab;

您可以在Settings - > Customization - > Deveoper資源中找到organizationname。

問候!

0

檢查您的連接字符串。我的報告有同樣的問題。像連接字符串似乎明確指向正確的組織。 https://aaaa.crm4.dynamics.com;

這應該工作