Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

DYNAMICS CRM ONLINE +SSRS REPORT returning empty report when adding some fields

Posted on by 137

Hi,

I have created an SSRS report for Invoices in Dynamics 365 Online, It was working fine until I realized I missed one attribute of the linked entity, I added that attribute to fetch XML and tested the XML using, the XRM toolbox Fetch XML tester and it returned the desired value which I was looking for, But as I uploaded the report in CRM it is giving me a blank report which was not the Issue before.

That's what kind of confuses me, If Fetch XML Tester is returning the value why doesn't the Report. I would appreciate any kind help and guidance.

<fetch>
<entity name="invoice" enableprefiltering="1">
<attribute name="invoiceid" />
<attribute name="shipto_line2" />
<attribute name="shipto_city" />
<attribute name="billto_line2" />
<attribute name="sg_referencenumber" />
<attribute name="shipto_stateorprovince" />
<attribute name="billto_stateorprovince" />
<attribute name="shipto_postalcode" />
<attribute name="billto_city" />
<attribute name="billto_line1" />
<attribute name="billto_line3" />
<attribute name="invoicenumber" />
<attribute name="createdon" />
<attribute name="billto_postalcode" />
<attribute name="shipto_line3" />
<attribute name="shipto_line1" />
<attribute name="msdyn_invoicedate" />
<attribute name="paymenttermscode" />
<attribute name="sg_workorder" />
<attribute name="freightamount" />
<attribute name="totalamount" />
<attribute name="totallineitemamount" />
<attribute name="totaltax" />
<attribute name="sg_salesperson" />
<attribute name="billto_telephone" />
<attribute name="shipto_telephone" />
<attribute name="datedelivered" />
<attribute name="description" />
<link-entity name="invoicedetail" from="invoiceid" to="invoiceid" alias="invoiceproduct">
<attribute name="productname" />
<attribute name="invoiceid" />
<attribute name="baseamount" />
<attribute name="description" />
<attribute name="priceperunit" />
<attribute name="invoicedetailid" />
<attribute name="quantity" />
</link-entity>
<link-entity name="businessunit" from="businessunitid" to="owningbusinessunit" alias="owner">
<attribute name="address1_line3" />
<attribute name="address1_line1" />
<attribute name="address1_city" />
<attribute name="address1_stateorprovince" />
<attribute name="address1_fax" />
<attribute name="address1_postalcode" />
<attribute name="address1_telephone1" />
</link-entity>
<link-entity name="account" from="accountid" to="customerid" alias="mainacc">
<attribute name="name" />
<attribute name="msdyn_billingaccount" />
<attribute name="accountid" />
</link-entity>
<link-entity name="account" from="accountid" to="sg_billingaccount" alias="billing">
<attribute name="name" />
<attribute name="accountnumber" />
<attribute name="accountid" />
</link-entity>
<link-entity name="account" from="accountid" to="sg_serviceaccount" alias="service">
<attribute name="name" />
<attribute name="accountnumber" />
<attribute name="accountid" />
</link-entity>
</entity>
</fetch>

The attributes in red are added later in the report and that is why I am getting the blank report. I am trying to create an Invoice report and it's returning me blank when I am trying to add Bill to and ship accounts

Thank you in advance

  • Smehra33 Profile Picture
    Smehra33 137 on at
    RE: DYNAMICS CRM ONLINE +SSRS REPORT returning empty report when adding some fields

    Yes, I am using Alias. Attribute a logical name to access the field Values. It is returning from other link entities except these which are in red.

    pastedimage1649247046391v1.png 

    The ones are highlighted are returning blank.

    Thank you for the help.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: DYNAMICS CRM ONLINE +SSRS REPORT returning empty report when adding some fields

    Hi,

    You will need to use alias.Attribute logical name to access your fields values.

    billing.name

    Can you please share screenshot of what value it is showing as blank?

    Make sure you are connecting to correct Enviornment.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Smehra33 Profile Picture
    Smehra33 137 on at
    RE: DYNAMICS CRM ONLINE +SSRS REPORT returning empty report when adding some fields

    Thanks, Bipin, I have added outer link type to my entities, Now the reports are no more blank but It is still not returning the value of the attribute ( from those entities) in the report. Though I am getting it in fetch XML tester. Could you please suggest what could be the issue? Because I check the relationship and everything seems fine to me. Thank you in advance

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: DYNAMICS CRM ONLINE +SSRS REPORT returning empty report when adding some fields

    Hi,

    You need to add link-type='outer' in your newly added link entity.

    Please see below for an example of how to add this -

    docs.microsoft.com/.../use-fetchxml-left-outer-join-query-records-not-in

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans