web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

SSRS- Image base64 issue

(0) ShareShare
ReportReport
Posted on by 92

Hello,

I am trying to create an SSRS report from dataverse and taking base64 of an image from a multiple-line text field, but the variable is returning null as seen below.

[rsruntimeerrorinexpression] the value expression for the image contains an error: value cannot be null. parameter name: s

The expression put in the database use this field is: =System.Convert.FromBase64String(First(Fields!c_new_base64.Value, "DataSet1")), yet the same output is still showing and is underlined with red.
pastedimage1660134711414v10.png

I tried to see if I assign the field in the report will it show output and the answer is yes. The variable [c_new_base64] is giving an output when putting it on the report.

(This is not the full base64 code)

pastedimage1660133887863v1.png

In conclusion, the variable is not empty (37116 characters), yet when assigning it to an image I am getting an error of null variable.

I hope to receive answers that will help me with my case.

Thank you!

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi MBaba,

    Please check my answer in another thread, it could be helpful:

    SSRS - Display Image in a report from an Image column Type - Dynamics 365 General Forum Community Forum

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans