Symptom

In the SAP Business One Service mobile app, you open a document, for example a sales order, and tap Generate Report (PDF). No PDF appears. Instead, the app shows:

processing failed
request failed. internal server error (500)

Cause

The app uses a customized Crystal Reports layout for the document, and the layout does not contain the parameter ObjectId@. The app needs two parameters to build the PDF: DocKey@ and ObjectId@. If one of them is missing, the server cannot render the report and returns error 500.

Who is affected

All of the following must apply:

  • You use the SAP Business One Service app for Android or iOS, with SAP Business One on SQL Server or SAP HANA.
  • A customized Crystal Reports layout is assigned to the document type.
  • The layout does not contain both DocKey@ and ObjectId@.

Solution

  1. Export the customized layout and open it in SAP Crystal Reports.
  2. In the Field Explorer, open Parameter Fields and check that both DocKey@ and ObjectId@ exist.
  3. Add the missing parameter. Use exactly the same name. To get the definition right, compare it with SAP's standard layout for the same document type, which already contains both parameters.
  4. Save the layout and import it again in SAP Business One.

Confirm the result

  • Open the same document in the Service app and tap Generate Report (PDF). The PDF is displayed.
  • Check that the PDF shows the document you opened, not a different one.
  • Preview the layout in the desktop client too, to make sure it still works there.