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:
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: