Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Invalid String Constant

Invalid String Constant

Invalid String Constant

We are running Actuate 7 against an Aircraft Engineering Database. The following code comes from the original IQ Report to calculate the remaining life:
NVL(case when NVL(cadb:'lits'.longtth.act_occ, 0) = 0 then (cadb:'lits'.longttn.fst_mtr_red - cadb:'lits'.prmr.cum_met_red)
else case when
NVL(cadb:'lits'.stdfreq.fix_sch_ind, 'N') = 'Y' then cadb:'lits'.longttn.frm_int - (cadb:'lits'.prmr.cum_met_red - cadb:'lits'.schfreq.trg_lmu_val )

else cadb:'lits'.longttn.frm_int - ( cadb:'lits'.prmr.cum_met_red - cadb:'lits'.longttn.lst_acl_mtr ) end  end, 0.00)

It is set as a calculated field in the QBE SQL, and Actuate happily accepts it.  However, when an attempt to run the Report in ErdPro is made it fails with an Invalid String Constant.  If I remove the line in red, it runs quite happily. We here cannot see what's wrong, but maybe we're to close. Thnxs in advance for any advice.

RE: Invalid String Constant

If you remove the red lines it works?  Even though there are two 'END's there?  Is there another case statment?  Or do you remove the other end?

RE: Invalid String Constant

To clarify, the reference to that case statement is removed in its entirety, including the 'End' that goes with the case statement.

RE: Invalid String Constant

Did you solve this one yet?  You can tyr a few things and nothing looks out of place here, but I'm wondering if the rules of the case mean you have to end the inner and then the outer and they can't share an else?  Can you try the select case statement?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close