Dynamics CRM 2011 Creating Custom Reports <p>I'm trying to create some custom reports using BIDS. My proof of concept is using the quote entity.</p> <p>I have created a sub-report using the following FetchXML:</p> <pre><code>&lt;fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"&gt; &lt;entity name="quotedetail"&gt; &lt;attribute name="productid" /&gt; &lt;attribute name="productdescription" /&gt; &lt;attribute name="priceperunit" /&gt; &lt;attribute name="quantity" /&gt; &lt;attribute name="extendedamount" /&gt; &lt;attribute name="quotedetailid" /&gt; &lt;attribute name="isproductoverridden" /&gt; &lt;order attribute="productid" descending="false" /&gt; &lt;link-entity name="quote" from="quoteid" to="quoteid" alias="aa"&gt; &lt;filter type="and"&gt; &lt;condition attribute="quotenumber" operator="eq" value="@quoteid" /&gt; &lt;/filter&gt; &lt;/link-entity&gt; &lt;/entity&gt; &lt;/fetch&gt; </code></pre> <p>This worked when the quoteid parameter was supplied at runtime. I then created the main report with the following FetchXML:</p> <pre><code>&lt;fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"&gt; &lt;entity name="quote" enableprefiltering="1" prefilterparametername="CRM_FilteredQuote"&gt; &lt;attribute name="name" /&gt; &lt;attribute name="totalamount" /&gt; &lt;attribute name="quoteid" /&gt; &lt;order attribute="name" descending="false" /&gt; &lt;/entity&gt; &lt;/fetch&gt; </code></pre> <p>I get the prompt for quote id, which when I enter I get the following error:</p> <blockquote> <p>An error occurred during local report processing. An error has occurred during report processing. Cannnot read the next data row for the dataset DataSet1. The XML passed to the platform is not well-formed XML. Invalid XML.</p> </blockquote> <p>I have read numerous blogs and articles and tried lots of variations with filters and prefilters but I can get no further. Hopefully someone can see my error and point me in the right direction.</p>