Problem Description
While generating report with customized Report (rpt), user may face following error.
Report Writer Error
Report Writer can not preview this report. Error in file C:\Program Files (x86)\Bentley\Plant V8i\Reports\xxx.rpt
‘//
‘
Not enough arguments have been given to this function. Details error kind.
Steps to Resolve
1.Open problematic xxx.rpt file in Crystal report.
2. Add new parameter field Name: ProjectUnits; Type: String.
3. Right click on Quantity item in Formula Fields and select Edit. In Formula Editor Press Ctrl+F for searching 'NumberToUnits' value:
As you can see there are two occurrence in this report in 'Quantity' and in 'Total' formulas. Add addition parameter to these calls of NumberToUnits function:
NumberToUnits ({?Units},{?Precision}, {?FeetInchSuppress}, SUM({Piping.CUT_LENGTH},{@Length Group}),{?ProjectUnits})
NumberToUnits ({?Units},{?Precision}, {?FeetInchSuppress}, SUM({Piping.CUT_LENGTH},{Piping.GTYPE}), {?ProjectUnits})
If above problem still persists, then please create a Service Request and contact the Bentley Product Advantage group. Please include a list of all relevant details to get in depth analysis for a solution or workaround.
Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!