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

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Absolutely, there is no need to expose a setter for… May 11, 2026 at 3:38 pm
  • added an answer I've started an open source project, Kona, to wrap the… May 11, 2026 at 3:38 pm
  • added an answer You have to transfer and install that file to the… May 11, 2026 at 3:38 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.