Symptom
- Error: "Connection closed without message (CM_NO_DATA_RECEIVED)"
- When refreshing a report in Crystal Reports, it fails with the error message.
- On the SAP System, a dump is generated for /CRYSTAL/OSQL_EXECUTE
- Can successfully refresh reports based on other SAP database in Crystal Reports.
- When refreshing a report based on an SAP data source, like SAP ECC, ERP,... Crystal Reports fails with the error:
"Failed to retrieve data from database"
Followed by:
"Database Connector Error: Connection closed without message (CM_NO_DATA_RECEIVED)"
Environment
- SAP Crystal Reports 2016
- SAP Crystal Reports 2020
- SAP ECC
- SAP ERP
Reproducing the Issue
- In Crystal Reports, create a new report.
- In the "Database Expert", expand "Create New Connection"
- In the list, double click on: "SAP Table, Cluster. or Function"
- Logon to an SAP ECC System.
- Add a Table to the report.
- Add at least one database field to the report.
- When refreshing the report, it fails with the error:
"Failed to retrieve data from database"
"Database Connector Error: Connection closed without message (CM_NO_DATA_RECEIVED)"
Cause
- It fails because the SAP ECC, or ERP database name selected contained a dot in its name. ( Example: my.database )
- Dot is used as a delimited, and therefore the incorrect database name is used to connect, which causes the error.
Resolution
- On the SAP System ( Example: SAP ECC, ERP,... ) rename the database, and remove the dot in the name.
For example, use an underscore instead of the dot, or simply remove the dot.
See Also
1220084 - Error: 'Connection closed without message', when refreshing a report based on an SAP data source in Crystal Reports
Keywords
CR, Crystal Report, ECC, Connection Closed without Message, CM_NO_DATA_RECEIVED, DUMP, /CRYSTAL/OSQL_EXECUTE , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
SAP Crystal Reports 2016 ; SAP Crystal Reports 2020