on 09-30-2011 6:43 AM
I am unable to connect to salesforce from Cystal Reports 2011. I get a dialogue saying
Failed to Open the connection
Details:Unexpected Error
-I have increased the JVMMaxHeap in CRCONFIG.XML to 512000000
-I have appended the security token to the password
-I am not going through a proxy server
I am able to login successfully to the salesforce account using Crystal Reports 2008.
In order to narrow the issue down and exclude any issues related to custom objects on our corporate acount I created a clean , out of the box dev account on salesforce. Again I can connect to it with 2008 but not 2011 on whcih I get the same error
I can verify that a login succesfully occured in salesforce, the login in history shows the connections are being made.
In order to reproduce simply create a salesforce dev account, install CR 2011 SP02 and attempt to create a database connection to the salesforce account
Crystal Reports Log is as follows
011-9-30-15-14-27 10176 .\xml.cpp 112 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\jdbc.cpp 172 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\crdb_sforce.cpp 127 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\javabeans.cpp 113 In DllMain() 20
2011-9-30-15-14-27 10176 .\javabeans.cpp 136 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\xml.cpp 112 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\jdbc.cpp 172 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\crdb_sforce.cpp 127 Leaving DllMain() 20
2011-9-30-15-14-27 10176 .\javabeans.cpp 113 In DllMain() 20
2011-9-30-15-14-27 10176 .\javabeans.cpp 136 Leaving DllMain() 20
2011-9-30-15-14-32 10176 .\crdb_sforce.cpp 464 The ErrorArray exception thrown from the function DbLogonServer() 1
2011-9-30-15-14-32 10176 .\crdb_sforce.cpp 661 In DbFreeLogonInfo() 20
2011-9-30-15-14-32 10176 .\crdb_sforce.cpp 667 Leaving DbFreeLogonInfo() 20
2011-9-30-15-14-32 10176 .\crdb_sforce.cpp 2567 In DbFreeErrorInfo() 20
2011-9-30-15-14-32 10176 .\crdb_sforce.cpp 2570 Leaving DbFreeErrorInfo() 20
2011-9-30-15-14-32 10176 ..\cserrinf.cpp 523 Error 31837 (..\..\src\data\queryenghelp.cpp, 554): Failed to open the connection.: Unexpected error 1
2011-9-30-15-14-51 10176 .\javabeans.cpp 113 In DllMain() 20
2011-9-30-15-14-51 10176 .\javabeans.cpp 136 Leaving DllMain() 20
2011-9-30-15-14-51 10176 .\crdb_sforce.cpp 127 Leaving DllMain() 20
Any other ideas on what I can try here?
I'm seeing the very same problem in CR2011. Log file is the same - everything seems fine in the log until
.\crdb_sforce.cpp 464 The ErrorArray exception thrown ...
I've replaced the two jar files as described, but still have the same issue. I'm sure that the authentication is fine, as I receive a "user / password incorrect" message when I attempt with a bad user ID or password.
Are there any other suggestions to get this operational? I am dead in the water without this...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Carlos,
If you have exactly the same error then I would suggest the same as before:
make sure two files are copied to the correct location, have .jar extension and file sizes are 140 Kb and 506 bytes.
and ...external.jar in External Folder.
It should resolve if you were able to connect beefore the upgrade to SP02. If you never connected before then there could be other reasons.
Vitaly
I am just curious.
The solution jar files are uploaded to FTP server and also attached to the SAP Note 1639310: [https://service.sap.com/sap/support/notes/1639310]
The preferable option is to download from the SAP Note, but I am still getting notifications that files are downloaded from the ftp.
Are there any problems accessing or getting files from the SAP Note?
Thanks!
Amir,
According to new terminology:
u2022 There are no Service Packs. The closest thing is a Minor Version
u2022 There are no Fix Packs. The closest thing is a Support Pack
u2022 There are no LA Fixes. The closest thing is a Critical Patch
By saying SP 02.10 I was referencing to Support Pack 02 Patch level 10
If you do not have access to Service Market Place, then jar files should help if you carefully follow all the steps I mentioned before.
Please do not use CR 2008 files, you can get yourself in more complicated situation because of Salesforce.com API level support differences.
Vitaly
Hello Sean
Please open the CR Designer and go to the Help menu. Select About..., let me kow the exact version reported there.
What have you done so far to resolve the issue?
- Ludek
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Hi Roger
What exactly are you trying to download?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
i'm having the same issue. i cant get to the .jar files mentioned or any of the SPs mentioned either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Me too. Used to be able to connect to Salesforce, but now i get the "unexpected error".
Cannot access the .jar files because i do not have a SAP login.
Found the solution in Salesforce support pages: Append the salesforce security token to password when logging in through Crystal.
I never had to do this before - I suspect our IT have made changes in salesforce security settings. But it works.
Where & how to obtain the previously referenced SP? (sorry for the Noob question, but having the same issue).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Currently the patch is available on Service Market Place. If you have S-user Id to login to SMP, then you would find it in the download section for Crystal Reports 2011.
If you do not have access to SMP, then I would suggest to use above mentioned workaround solution to replace jar files.
Vitaly
Vitaly,
Thanks for your email.
First I think it is totally ridiculous that you need to have a support contract with SAP to be able to access the market place. I spent couple of hours with UK and US support team and found it really disappointing not to be able to download patches and hot fixes while I have already paid for a legit license key.
But,
The good news is that I managed to solve the problem for now.
I installed a XP virtual machine and installed Crystal Report 2008 and managed to get the CRDBSForceServer.jar and put in the right place:
C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib
On my Windows 7
I did not need to do replace CRDBSForceExternal.jar
Amir
Congratulations! Amir,
1. The reason why I did not recomend to use CR 2008 is because earlier version of CR 2008 supported SFDC API level 13, but after SP it supports SFDC API level 20. CR 2011 supports API 20 from the RTM version. Wrong jar file may cause more issues.
2. Support Packs are properly tested for regression and should be more reliable than Patches. Patches are critical fixes and tested for limited scenario. This is one of the reasons why the Support Packs available for all licensed users, but Patches only for customers with support contract. This is the way the support system works now.
3. Why did you have to download and install CR 2008 to get jar files. Do you have any problems loading it from the FTP location I posted or from the SAP note?
Vitaly
P.S. We do support side by side installation - you can have CR 2008 and CR 2011 on the same machine.
I have recently downloaded Crystal Reports 2011 for the purposes of connecting to SFDC, and I have read the entire thread in order to solve the problem and see that there is a fix on the "Service Marketplace" however, this is my first experience with Crystal and I do not know where that is - can you please send a link to the fix?
Also, this does solve the problem where -
I've attempted to connect with my password and the security token attached
I'm not using a proxy
and I've updated the CRConfig.xml so that JVMMaxHeap is increased to 512000000
When I log into SF application, it shows me as connecting, but I'm receiving an "Unexpected Error" java.net.ConnectException: Connection timed out: connect
I have no prior versions of Crystal Reports installed.
Let's not mix all Crystal Reports of salesforce.com issues together.
This thread is for Crystal Reports 2011 SP 02 regression issue and specific symptoms are:
Failed to Open the connection
Details:Unexpected Error
"hymescs" In your case the error message is different. Please create a new thread.
The attached files to the post did not work and links were either broken or asked for username and password. On the other side I needed to get this done quickly while had wasted a lot of time on the phone with SAP support.
I tried to attached the file to my post but I could not find a "Attach" button.
Amir
and I found this website for SPs, Patches and etc. which could be useful as well:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
Amir
I downloaded the two new files. Looking in my hard drive, I only had the CRDBSFForceServer.jar. I changed the extension type as suggested, and replaced with the new version. I also placed the CRDBSForceExternal.jar file in there as well. I still received the same error when entering my SalesForce Login credentials, when trying to make the connection to SalesForce.
Hi,
I downloaded a trial version of Crystal Reports specifically for reporting on our Salesforce.com data. I got the "unexpected error" when attempting to connect, and turned to the support pages and found this thread. Glad to see that there is a workaround and a solution to this issue but...
I can't download the .jar files because they require login to the support marketplace. And I can't create a login to the markteplace because i do not have a SAP installation number!
So how can i get fix to this problem before my Crystal Reports trial period expires?
I am having the same issue. is there a solution yet?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue has been escalated as a regression bug.
As a workaround I replaced the SFORCE jar files with original RTM version and was able to connect.
See both .jar files attached
All you need to do is to replace the following files on your machine with attached ones:
C:\Program Files (x86)\SAP BusinessObjects
SAP BusinessObjects Enterprise XI 4.0\java/lib/CRDBSForceServer.jar;
C:\Program Files (x86)\SAP BusinessObjects
SAP BusinessObjects Enterprise XI 4.0\java/lib/external/CRDBSForceExternal.jar;
I would suggest renaming extension of original files instead of complete replacing.
Please note, both folders may be protected, so you need to right-click the folder, go to security tab and Grant Full Control to the User.
As I said it work for me and it is going to be a temporary solution. Developers should fix it for the next patches.
Vitaly
Edited by: Vitaly Izmaylov on Jan 31, 2012 3:59 PM
Alternative link to download files:
if the previous link expired, here is a new one:
Message was edited by: Vitaly Izmaylov
There should not be any difference in CR 2011 and CR 2008 SP3 salesforce.com connectivity.
As the first steps I would suggest to compare SFDC configuration in both CRCONFIG.XML files.
Let me know if the configuration is identical and I will contact you for further troubleshooting.
Vitaly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vitaly
I did some further playing based on the information you provided; that it should not differ between 2008 and 2011. I currently have both Crystal 2008 SP3 and 2011 SP2 installed so I went through and looked at the CRConfig files for both applications and could not see any major differences other then where they configure as the JVM and classpath.
I have managed to get Crystal 2011 to connect to salesforce after making one small edit to the 2011 CRConfig, changing the classpath to use the 2008 version of CRDBSForceServer.jar
I removed the entry within classpath for the CR2011 CRDBSForceServer.jar
F:\Program Files (x86)\SAP BusinessObjects 4
SAP BusinessObjects Enterprise XI 4.0\java/lib/CRDBSForceServer.jar;
and replaced it to point at the 2008 version
F:\Program Files (x86)\Business Objects\Common\4.0\java/lib/CRDBSForceServer.jar;
When I do this I am able to establish a connection to the salesforce DB without any other changes in the CRConfig. This does not solve my problem as I am still unable to run a deployed version of the report as I assume the latest 2011 version of the JAR is also part of the BO4 server and is getting the same connection problem on the server side but this may narrow it down enough for you to be able to provide further clarification on what the issue is.
thanks,
Brendan
Brendan,
I reproduced the problem in CR 2011 SP2 on my Windows 7 machine.
I am not sure if the OS is relevant, by I succesfully connected CR 2011 to salesforce.com from XP machine few days back.
Actually it was not SP2, but just RTM.
Anyway, I will investigate the issue and let you know.
As a temporary solution you may try replacing jar files on the server if this is a test environment.
Vitaly
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.