The REST API is not enabled for this Organization (Salesforce API using databasedotcom gem) in Rails

xirukitepe picture xirukitepe · Sep 3, 2013 · Viewed 12.3k times · Source

I recently integrated Salesforce API via databasedotcom gem to my Rails 3.2 app.

Also, there's a background job for the synchronization of data.

Upon, logging in my Professional edition Salesforce account, the Resque job failed and it displayed this error...

Class
Jobs::Salesforce::Contact
Arguments
1
Exception
Databasedotcom::SalesForceError
Error
The REST API is not enabled for this Organization.

How will I be able to enable API even for Professional Editions?

I've tried to use Developer Edition and got no problem.

Are there specific editions that are allowed to use REST API in Salesforce?

How about trial version of Professional Edition?

Thanks. And Have a great day!

Answer

Rajarshi Das picture Rajarshi Das · Sep 3, 2013

By any chance are you on Developer Edition? verify that you have the “API Enabled” permission.

In case of Professional Edition you may have to contact Salesforce support to enable API.

For EE and UE it is automatically enabled.

below are the two links that may help you

https://github.com/heroku/databasedotcom/issues/49

https://success.salesforce.com/answers?id=90630000000gnjCAAQ