Error message when trying to edit Sage 300 Certified Payroll report

SOLVED

I am using Crystal Reports 2008 to edit the Sage 300 Certified Payroll report (UP71A/ENG/upcprj1.rpt).  When I open the file in Crystal, it first gives the error message, "The saved data will be discarded since one or more formulas failed to compile."

When I try to show the SQL query for the report, I get another error, "The ) is missing."  This error shows up in the "fromDate" field, and the formula looks like this:  

if trim({?WEEKSTART}) = "" or ToNumber({?WEEKSTART}) = 0 then " "
else ToText(pwFormatDate(ToNumber({?WEEKSTART})))

The pwFormatDate function is highlighted, so I assume the error is there, but at first glance, the formula looks fine to me (i.e., parentheses are balanced).

This happens when I try to edit the report as it was initially installed, so I don't know what the problem is here.  Any ideas?

Parents Reply
  • To expand on Jay's response, the PwFormatDate function is a custom Sage function used to convert numeric dates in the database to an actual date data type within the report.  Your server session is not "seeing" the dll. Another work-around is as follows;

    On the server: Copy the C:\Windows\Crystal directory and paste into the windows directory of your account's folder.  Your account's folder will typically be something like C:\Users\Administrator - if there is not a Windows directory within your user folder, create it before pasting the Crystal directory within.

    Good luck!

    Shane

Children