Solved

Error when running report in BOE Business Objects

Posted on 2012-03-20
2
1,021 Views
Last Modified: 2012-08-13
Anyone tell me why I might get this error in BOE?  This is a formula in a crystal report.  The report runs fine when it is hitting the database outside of BOE.  But after it is loaded in BOE we keep getting the error at the bottom of this text.  
---------------------------------------------------------------------------------------------------------------------------------------------
There is a formula called DLOS.  The formula says:
if isnull({CLARITY_UCL_PB.PROCEDURE_ID}) then 0
else
if {CLARITY_UCL_PB.PROCEDURE_ID} in [110202,110204,110206,4,65737,102604,23646,23648,
23650,23652,23654,23656,23658,23660,23662,23664,160493]
then 1
else 0
--------------------------------------------------------------------------------------------------------------------------------------------
Error in File ~tmp5ae86fcc76dd1a90.rpt: Error in formula DLOS: 'if ' A string is required here. Details: errorKind
--------------------------------------------------------------------------------------------------------------------------------------------
0
Comment
Question by:Becky Edwards
2 Comments
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 37746922
It sounds like the database connection/driver being used on the development machine isn't the same as what's being used on the Enterprise server.  One is recognizing the procedure code as numeric, the other isn't. You could test this by putting quotes around each of the procedure codes for the Enterprise version.

If you find that's the case, then you need to re-consider how you develop and publish your Clarity reports.  Best practices dictate having exactly the same type of connection for both developer and server machines.

Also, it's pretty common for Clarity fields to change datatypes between builds.  I've run into many situations where fields that were previously string/numeric changed to numeric/string.  You might try doing a simple "Verify Database" in Crystal Reports to see if the tables have changed.  I'm actually working on a project this week where I imported about 1500 EPIC Clarity reports from an old Enterprise Server to a new one.  I needed to modify about 50 reports and found at least 10 where the tables had changed since the report was last published.
0
 

Author Closing Comment

by:Becky Edwards
ID: 37749329
You were so right!!!!!  Opened the report up in Crystal on the BOE server and verified the database.  EPIC has changed the proc id to a string, and I didn't know it.  We changed everything and the report runs perfectly.

Thanks so much for your help!
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sum Before Standard Deviation 2 24
SQL - format decimal in a string 5 50
(sql serv16)ssis 2016 question/check 1 102
Database Mail Profiles 1 20
After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

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