×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

Crystal Report got Error: The ) is missing after upgrade

Crystal Report got Error: The ) is missing after upgrade

Crystal Report got Error: The ) is missing after upgrade

(OP)
Could anybody help to see why I am getting the Error message: The ) is missing. after I run my report in another machine with newer OS and Crystal Report?
Thanks a lot!
Mike

--Formula Fields

IF {?Pm-@ods_form} = "Y"
or (HASVALUE({?Pm-?Reporting Time Frame})
and {?Pm-?Reporting Time Frame} in ["CURR_POLICY", "PREV_POLICY"])THEN
cstr(year(cdate({FORMS_M19_TLFSTMT_GRAPH.POLICY_YEAR})),0,"")
ELSE
{FORMS_M19_TLFSTMT_GRAPH.TRANS_YEAR}

Error message: The ) is missing.

System.Runtime.InteropServices.COMException was unhandled
HResult=-2147217383
Message=The ) is missing.
Details: errorKind
Error in File C:\Users\houm\AppData\Local\Temp\2\TLFSTMT_M19 (Manual version)_STATIC {D7537051-A7F1-476B-82DD-DDB3553EE612}.rpt:
Error in formula <graph_year>.
'IF {?Pm-@ods_form} = "Y"
'
The ) is missing.(
Details: errorKind
Source=Analysis Server
ErrorCode=-2147217383
StackTrace:
at CrystalDecisions.ReportAppServer.Controllers.SubreportControllerClass.GetSubreport(String Name)
at CrystalDecisions.CrystalReports.Engine.DataDefinition.get_ParameterFields()
at Project1.tlf_export_form.loadCrystalReport()
at Project1.tlf_export_form.exportTLF_stmt_btn_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Project1.tlf_export_form.Main()
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

RE: Crystal Report got Error: The ) is missing after upgrade

Brackets look OK.

Try deleting the SubReport Parameter {?Pm-?Reporting Time Frame} and recreating
Following system change make sure field linked to this parameter is the same datatype

Ian

RE: Crystal Report got Error: The ) is missing after upgrade

I think it might be the HASVALUE() function. That function might not exist in your version of Crystal (it doesn't in mine).
You can probably change it over in some way by using the isnull() function.

Maybe: not(isnull({?Pm-?Reporting Time Frame}))

-Andy

RE: Crystal Report got Error: The ) is missing after upgrade

That isn't CR designer error. It looks like you are running the report from within an application when that error occurs. So, you need to know what version of the runtime is being used by that application. My guess is that it is an older version that doesn't support optional parameters, so the HasValue() won't be supported.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
http://www.kenhamady.com/

RE: Crystal Report got Error: The ) is missing after upgrade

(OP)
IanWaterman, AndyMc and kenhamady,
Thank you so much for your help! really appreciate it!!! I tried AndyMc and Kenhamady's advice and it worked!
Thanks again and you guys are awesome!
Mike

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!

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