Solved

Why won't my table report recognize my field?

Posted on 2013-05-17
2
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 48

Accepted Solution

by:
PortletPaul earned 500 total points
ID: 39176787
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
ID: 39177084
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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