When an error occurs while processing the closure (implicit or explicit) of a batch WADELIA program report, the *RETURN_CODE keyword is updated with a significant number.
For an explicit close (CLOSE instruction), the program continues to run. The return code can thus be used and the program rerouted to an error page (HTML page of a WA_I program, for example).
Middleware errors
Problem communicating with the Web reports generation server.
If a middleware error is detected, the *RETURN_CODE reserved word contains a number between 10001 and 19999 (subtract 10000 from this value to find "classical" middleware errors).
Error generating the report
Errors that occur while generating the Web report are logged in the Windows events log of the reports generation server machine.
The *RETURN_CODE reserved word contains an error number between 1 and 9999.
These errors are mostly associated with the Crystal Reports runtime or with the physical printout configuration.
Summary of errors:
1 |
Report preparation: unable to find the [%1] report file. |
2 |
Report generation: unable to export the report to the [%2] file [%1]. |
3 |
Report preparation: unable to open the [%2] report file [%1]. |
4 |
Unable to access report data: 'Cur_IReportCryR.GetDatabase()' [%1]. |
5 |
Report preparation: unable to open the [%2] subreport [%1]. |
6 |
Report translation: unable to save the [%2] report [%1]. |
7 |
Problem adding data to the report: a [%1] data item is missing. |
8 |
Problem adding data to the report: the 'InfoTablesUsed.RcdSet.AddNew(TFields,Array)' method failed [%1]. |
9 |
Problem defining the export; the 'IExportOptions.SetFormatType()' method failed [%1]. |
10 |
Creation of the resulting image field: error opening the [%1] file. |
11 |
Creation of the resulting image field: search error in the [%1] file. |
12 |
Creation of the resulting image field: error reading the [%1] file. |
13 |
Report ending: the CoUninitialize function failed [%1]. |
14 |
Report preparation: the 'Rds.CreateDispatch(RDS.DataControl)' method failed [%1]. |
15 |
Report translation: the 'Cur_IReportCryR.GetSections()' method failed [%1]. |
16 |
Report translation: unable to find the constant searched in the report. |
17 |
Report translation: the 'ITextObj.SetCanGrow(true)' method failed [%1]. |
18 |
Report translation: the 'ITextObj.SetText(CstTranslated)' method failed [%1]. |
19 |
Creation of a data record format: the 'SafeArrayPutElement(%1)' method failed. |
20 |
Creation of a data record format: the 'Rds.CreateRecordSet()' method failed [%1]. |
21 |
Attachment of the data source: the [%1] table is not recognized. |
22 |
Attachment of the data source: error querying the [%1] table. |
23 |
Unable to attach the data source to the report. |
24 |
Exception service: [%1]. |
25 |
Print: unable to find the [%1] configuration file. |
26 |
Print: the [%1] printer resource name is invalid. |
27 |
Print: No default printer is installed on the workstation. |
28 |
Print [%1]: the call to the [%2] method of a Crystal Reports object generated an exception. |
29 |
Report preparation: the 'IReport.CreateDispatch(CrystalRuntime.Application)' method failed [%1]. |
30 |
Report preparation: instantiation of the IVaNetGenRpt interface failed. |
31 |
Report preparation: the 'CoInitialize()' method failed [%1]. |
Error using the report on the Web server
On return from the service, on the Web server, the processing on the resulting report may also generate errors. The *RETURN_CODE can be used to retrieve errors whose number is greater than 20000.
Summary of errors:
20000 |
Unknown error. |
20001 |
File AWSTranslation.AWSTrad_NOMPGM_Local.properties not found. |
20002 |
I/O error while writing in the file. |
20003 |
Error creating the output file. |
20004 |
Error relating to the security policy while writing in the file. |
20005 |
Invalid report while retrieving the output stream. |
20006 |
I/O error while retrieving the output stream. |
20007 |
Error instantiating the dedicated connection pool [aws_report_pool]. |
20008 |
Error initializing the dedicated connection pool [aws_report_pool]. |
20009 |
Error creating the directory for the HTML export. |
20010 |
Export file name invalid. |
20011 |
I/O error while redirecting the HTML flow. |