Solved

Why won't my table report recognize my field?

Posted on 2013-05-17
2
408 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS Expression syntax with Iif Else 1 61
Usage Scenarios for Extended Events - Tracking Recompilations 1 49
Estimating my database size 7 51
t-sql left join 2 31
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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