Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 107373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:44:37+00:00 2026-05-11T01:44:37+00:00

I’ve got a report in SSRS 2008 that is using a web service as

  • 0

I’ve got a report in SSRS 2008 that is using a web service as one of its data sources. The basic look of the XML returned is

<table>     <row>         <column1>data</column1>         <column2 xsi:nil='true' />         <column3>data</column3>     </row> </table> 

Any tags with the ‘nil’ attribute are showing up as blank on the report. I’d like to replace any blanks with a dash. Since it is a numeric field and zero has meaning in the report, I can’t simply change the web service to return zero or an empty string. I’ve tried to do several kinds of conditional compares to swap them, but they all show up as ‘#Error’ on the report:

=iff(Field!column2.Value Is Nothing, '-', Field!column2.Value) =iff(IsNothing(Field!column2.Value), '-', Field!column2.Value) =iff(Field!column2.Value = '', '-', Field!column2.Value) =iff(CStr(Field!column2.Value) = '', '-', Field!column2.Value) 

Any ideas?

Edit: It wasn’t the check for empty that was failing, it was a nested conditional inside the first IIF. Once removed, I was able to make it work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:44:38+00:00Added an answer on May 11, 2026 at 1:44 am

    I didn’t have a problem using:

     =Iif(cstr(First(Fields!RegInceptionDate.Value, 'spimRptPerfSummary')) = '', '-', First(Fields!RegInceptionDate.Value, 'spimRptPerfSummary')) 

    This is what my dataset looks like:

    <Query>    <Method Namespace='http://www.abc.com/' Name='TWRPerformanceSummary'/>    <SoapAction>http://www.abc.com/TWRPerformanceSummary </SoapAction>       <ElementPath IgnoreNamespaces='true'>         TWRPerformanceSummaryResponse/TWRPerformanceSummaryResult/diffgram/NewDataSet/table{PkRegistration, InceptionDate(date),RegInceptionDate(string)}    </ElementPath> </Query> 

    My expression was in a textbox, thats why I have it wrapped in a First() on the DataSet. I cast the RegInceptionDate on the dataset as string (its really a date, but since its coming back null it didn’t matter). I’m not sure the cstr() in the expression is necessary since I have the cast on the dataset itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.