Symptom
- Error when refreshing a report connected to Salesforce.com
- When refreshing a report based on Salesforce.com in Crystal Reports, it fails with the error:
"Database Connector Error: 'HY000:[Simba][DSI] (40390) Internal error - SwapWriteError. [Database Vendor Code: 40390]"
Environment
- SAP Crystal Reports 2013
- SAP Crystal Reports 2016
- Salesforce.com
Reproducing the Issue
- In Crystal Reports, create a report off Salesforce.com
- Insert at least on database field in the details section of the report.
- When refreshing the report, it fails with the error:
"Database Connector Error: 'HY000:[Simba][DSI] (40390) Internal error - SwapWriteError. [Database Vendor Code: 40390]"
Cause
- This error occurs when the Simba ODBC driver for Salesforce.com does not have access to the MS Windows user temp directory to write temporary files.
- This temporary files are important to bring all the records to the Client machine and do local linking and sorting if the query complicated and Driver unable to convert SQL to SOQL.
Resolution
- Add the registry key: SwapFilePath, and point to a directory the Microsoft Windows User have full rights.
- Go to the Microsoft Registry Editor
- In Microsoft Windows, under the Start menu, select “Run
- Open the MS Registry Editor, by entering the command: Regedit
- In the Microsoft Registry Editor, navigate to the following path:
- For 32bit version of Microsoft Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\Simba\Simba Salesforce ODBC Driver\Driver - For 64bit version of Microsoft Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Simba\Simba Salesforce ODBC Driver\Driver -
- Then add the string: SwapFilePath
- Right click on “Driver”, and select “New – String Value”
- Enter the name: SwapFilePath
- Set the value for SwapFilePath to a directory the user can write to, for example: "C:\MyDirectory"
- Close the “MS Registry Editor”
- Make sure there is enough space on Hard drive to accept temp files with the size over 20 GB. Temp files will be deleted after report completed.
Start Crystal Reports, and you will now be able to refresh you report successfully.
Keywords
CR, SForce, Saleforce , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
SAP Crystal Reports 2013 ; SAP Crystal Reports 2016