Sage 100 Employee Data

SOLVED

Sage 100c 2019 Standard.  When I print a custom payroll crystal report I receive an error message that reads:

Error in File PR BPA CUSTOM

6352-15868-(107A04E2-6BCF-4F92-A9D7-89536928089E).rpt

Failed to retrieve data from the database.

Details: [Database Vendor Code: 1027]

This only occurs if I add PR_EMPLOYEEPIIWrk.State or PR_EMPLOYEEPIIWrk.ZipCode to the report.  If I leave these fields off, it works.

I have linked tables PR_EMPLOYEE and PR_EMPLOYEEPIIWrk, and have followed the instructions to add the report to the custom payroll menu.

Please advise.

Thank you.

Parents Reply
  • +1 in reply to Robert Braunlich
    verified answer

    Hi Robert, It is a combination of 

    Check Convert Database NULL values to Default (The report contains formulas that use the isnull function, those references can throw an error when there is no default value for a null value in a record)  

    Uncheck Select Distinct Records.(never, ever have this value checked in report options, if the report requires distinct records use the report selection criteria to achieve this not the report options). 

    One recommendation - remove the sub-report. Subreports should only be used when there is no other way to retrieve the data.

    Add the PR_PayrollHistoryDetail to the main report set your joins as below. All joins are EQUAL joins.

    Copy all fields from the details section of the sub-report to the details section of the main report.

    Copy all fields from the report footer section of the sub-report to the report footer section of the main report.

    Remove the sub-report from the main report and save.

    Performance of the report will improve dramatically.

    John Nichols

    Sage 

Children