Solved

Why won't my table report recognize my field?

Posted on 2013-05-17
2
392 Views
Last Modified: 2013-05-24
2 fields in my dataset both configured as binary data type.  When I pull them into my SSRS report table and then run the report both of the columns where I have used the 2 fields show ERROR#.  When I replace them with other non binary data type the ERROR# stops.

Is there some format I need to configure for the binary data type for them to work in an SSRS table.
0
Comment
Question by:rhservan
2 Comments
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
Comment Utility
try something like one of these

=CBool(Fields!MyBitField.Value) = True

http://msdn.microsoft.com/en-us/library/s2dy91zy(v=vs.80).aspx

or IIF:

=IIF(Fields!MyBitField.Value = True, "Yes", "No")
0
 
LVL 37

Expert Comment

by:ValentinoV
Comment Utility
What does your binary field contain?  If it's a string, you'll need to convert it to string before it can be displayed in an SSRS textbox.  I did a little test with the EmployeePhoto field (from DimEmployee in the AdventureWorksDW2012 sample db).  This field is a varbinary(max) and if I just drag it into a table I get this error:

[rsInvalidExpressionDataType] The Value expression used in textrun ‘EmployeePhoto.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid.

BTW: whenever you get #ERROR in your report, take a closer look at the Output window for details.

In case your binary content is an image, you need to put the Image control on the report.  See this article for details: Put Some Images On Those SSRS Reports
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now