Wednesday, 11 December 2013

Unable to fetch organization details for

Recent past I came across Force.com IDE tool exception. It's actually network issue and nothing to do with Salesforce.

After installing eclipse and configuring Force.com IDE, I was trying to create a new Force.com project and got error "Unable to fetch organization details for <UserName>".

There can be different reasons for this and one of them is firewall settings. To pass through proxy server, one has to configure proxy settings. Once proxy setting are configured, eclipse bypasses the proxy and gets connected to internet.

Following are steps to configure proxy settings. Steps are almost same for all eclipse versions.

1) In Eclipse IDE, select “Window –> Preferences”
2) Preferences box prompt out, choose “Network Connections”.
3) Select “Manual” from Action Provider drop down list
How-to-configure-Proxy-Settings-in-Eclipse-1
4) Select Http in the List and click “Edit” button
5) Fill in the proxy server host and port number, (fill in the username and password if any)
How-to-configure-Proxy-Settings-in-Eclipse-2
6) Ok, Done.

35 comments:

  1. very nice and unique post, having similar probelm and your post really helped me to solve it

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hi this is great help, however I am still having some issues, (it is an advancement from before doing this, as at least now it allows me to create a new force project without connecting to the server when before this option never show up)
    I am wondering if the error is when i set up username, password on the network connections, I am using port 21 and host: www.salesforce.com
    is there somewhere in sf that i can confirm the port is the right one?
    Thanks

    ReplyDelete
    Replies
    1. Hi Fabian, no, there are no such settings available in salesforce to confirm port.

      Delete
    2. Hi Amit thank you for your prompt reply, so what will be your recommendation about this?
      or do you think there is something else i am doing wrong?
      Thanks

      Delete
    3. What do you mean by using 'host: www.salesforce.com'?

      You never need www.salesforce.com. It has to be either login.salesforce.com or test.salesforce.com

      Delete
  4. how can I determine the proxy server host and port number?

    ReplyDelete
    Replies
    1. Hey Alex where you able to find this information
      i am still not able to connect !

      Delete
    2. Dear Alex/Fabian,

      You can get host and port number from your network administrator.

      Delete
  5. Awesome Post ! Amit it worked for me ! Thanks

    ReplyDelete
  6. Hi Amit,
    This worked for me too. Thank you for posting intricate details.

    ReplyDelete
  7. Replies
    1. I hope, it is resolved. Couldn't get back to you in time. Let me know if you are still facing issues. Basically proxy port number and host details are related to local network details for which your network team can help you.

      Delete
  8. Hi Amit,
    I tried the above solution but still the same problem.
    Error message is "Unable to fetch organization details for xxxx@xxx"
    "Invalid keystore format"
    I'm the system administrator of my organization. How do I determine port number.
    Kindly help me.
    Thanks in advance

    ReplyDelete
    Replies
    1. I hope, it is resolved. Couldn't get back to you in time. Let me know if you are still facing issues.

      Basically proxy port number and host details are related to local network details for which your network team can help you.

      Delete
  9. It worked like a charm. Thank you so much. This problem was driving me crazy. In my case, I did not have to do the step-5 as it was already having the required values.

    ReplyDelete
  10. Thanks, this worked.
    One can locate the proxy host server and port number from their IE --> Internet options --> Connections --> LAN Settings --> Under Proxy Server --> Select 'Use a proxy server for your LAN' --> Click on Advanced button --> find the proxy server and port settings. Hope this helps.

    ReplyDelete
  11. Thanks Dude Amit!! It worked for me as well!!

    ReplyDelete
  12. i tried this option but still getting error " unable to find valid certification path to requested target".

    ReplyDelete
  13. How about if we don't use Proxy server

    ReplyDelete
  14. Then your n/w should not have firewall restrictions to connect to internet. If you don't have proxy details then you can get them from your n/w admin team.

    ReplyDelete
  15. It's so nice article thank you for sharing a valuable content. google cloud online course

    ReplyDelete