Quantcast
Viewing all articles
Browse latest Browse all 79901

FetchXML returns same record multiple times

I designed a report using FetchXML to display multiple records in a table. When the fetch is executed in designer, it properly displays all records associated. However, when the tablix is associated with the dataset and each field of the table is associated with the specific expression, the table returns only one record - multiple times (as many times as there are different records).

Here is the fetchxml:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
 <entity name="incident">
   <attribute name="customerid" />
   <attribute name="createdby" />
   <attribute name="primarycontactid" />
   <attribute name="ticketnumber" />
   <attribute name="incidentid" />
            <link-entity name="residencehistory" alias="rh" from="residencehistorymanyid" to="incidentid" link-type="outer" visible="true">
 <attribute name="aptnumber" alias="rh_aptnumber" />
            <attribute name="streetnumber" alias="rh_streetnumber" />
            <attribute name="streetname" alias="rh_streetname" />
              <attribute name="city" alias="rh_city" />
            <attribute name="province" alias="rh_province" />      
     </link-entity>
           <filter type="and">
             <condition attribute="ticketnumber" operator="eq" value="@RequestNumber"/>
         </filter>
    </entity>
 </fetch>

When the report is run, here is the result:

Image may be NSFW.
Clik here to view.

How do I display distinct records?


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>