Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 FetchXML SSRS Report not displaying bigger images

(0) ShareShare
ReportReport
Posted on by 5

I'm developing SSRS Report to show pictures attached in the Notes of an Account Entity. The environment is Dynamics 365 Online. I have used fetchxml  to retrieve the images from Notes.

It is working fine if the attached picture size is less than 40KB. If the image size is bigger than 40/60KB, then the image is not displayed in the report. 

If I embed the bigger size image directly in the SSRS Report, then SSRS displaying the image properly. So, It looks as the problem of FetchXML returning image data partially.

Is there any return data size limit for FetchXML? 

Fetch XML used to test this.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="annotation">
	<attribute name="documentbody" />
		<attribute name="mimetype" />
		<attribute name="subject" />
		<attribute name="notetext" />
		<attribute name="filename" />
		<filter type="and">
			<condition attribute="isdocument" operator="eq" value="1" />
		</filter>
    <link-entity name="account" from="accountid" to="objectid" alias="account" link-type="inner">
    <filter type="and">
      <condition attribute="name" operator="eq" value="Image Test" />
    </filter>	
    </link-entity>
  </entity>
</fetch>

If I inspect the report window, I can find the images displayed properly having the tags with Reserved.ReportViewerWebControl.axd, but the images not displayed are having tags as <img> with gif type.

20181101_5F00_114641.png

4846.Capture2.PNG

Appreciate your inputs to resolve this issue or find workaround to display big size images attached to the Notes in Dynamics 365 Online SSRS Reports.

Note: In the Visual Studio Preview, all the images are displayed properly. Only on Dynamics 365 Online, it is not working. 

*This post is locked for comments

  • Jarrod Williams Profile Picture
    Jarrod Williams 1,747 on at
    RE: Dynamics 365 FetchXML SSRS Report not displaying bigger images

    This is likely an issue with either the RDL Sandboxing or the way that FetchXML is translated into a SQL statement.  My guess is with the later and that if you had an On Premises testing environment you would see something that limits the return string to some thousand returned characters. You could open a ticket with Support and confirm but you likely aren't going to have a lot of good workarounds for this.  PowerBI might be an option and would probably get around this.  Otherwise, within the fetchXML confines you might end up having to just keep a maximum file size for images.  

  • BarneyZA Profile Picture
    BarneyZA 20 on at
    RE: Dynamics 365 FetchXML SSRS Report not displaying bigger images

    Hi Guys

    My team and I also have this problem currently.

    Did you guys find a solution?

  • Suggested answer
    Raghav Chadha Profile Picture
    Raghav Chadha 100 on at
    RE: Dynamics 365 FetchXML SSRS Report not displaying bigger images

    Did you find any solution for this,i am also facing this issue after v9 upgrade.

  • RE: Dynamics 365 FetchXML SSRS Report not displaying bigger images

    I didn't say one thing, I don't download images attached in Notes through fetchXml, only in the report I put a url of a picture from web application with variable guid (for example https://ftp..../WebApplication/Wykres?Guid=+<guid from fetchXml>)

    When, for example, I put a smaller picture in report (*.png from google) everything displayed correctly. So maybe the limit applies to the report itself? Each image in report should have size below ~40/60KB?

  • RE: Dynamics 365 FetchXML SSRS Report not displaying bigger images

    Hi Alex,

    I have exactly the same problem, but the strange thing is that on version 8.2 the images were displayed correctly, it broke down in version 9.0.

    Maybe the size limit for image is smaller now? I don't know.

    Did you find any solution for that?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans