Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8290523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:50:22+00:00 2026-06-08T12:50:22+00:00

I am using the Ruby Gem "databascdotcom" to integrate Salesforce in a Rails app

  • 0

I am using the Ruby Gem "databascdotcom" to integrate Salesforce in a Rails app and all works fine.

But getting following error on first call to salesforce:

The requested resource does not exist

If I refresh (Ctrl + F5) the page again, it works fine without any error.

Here is my code:

def SalesForceFeed
  @oppID = params[:oppid]

  client = Databasedotcom::Client.new client.client_id #=> foo client.client_secret #=> bar
  client.authenticate :username => "foo@bar.com", :password => "ThePasswordTheSecurityToken" #=> "the-oauth-token"
  client.materialize("Opportunity")
  begin
      @client=SalesForce::Connection.new.client
      @opp = Opportunity.find_by_Id(@oppID)
  rescue Exception=>e
    if(e.message == "The requested resource does not exist")
      return redirect_to :action => 'SalesForceFeed', :oppid => @oppID
    end
  end   

On the first call to "SalesForceFeed" it returned the error "The requested resource does not exist", so I added an excepton check and called "SalesForceFeed" again, but I know this is not the right way.

Please suggest me a better way to fix this. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:50:23+00:00Added an answer on June 8, 2026 at 12:50 pm

    Finally i got the issue. There was a wrong object added in materialize. I removed that and it’s fixed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Ruby Gem Databasedotcom to integrate Salesforce in a Rails app
I'm currently using the ruby-bitly gem to shorten links in a Rails app; however,
I'm using the Ruby Money gem in a multi-tenant (SaaS) Rails app, and am
I am using the thrift ruby gem and am doing the following serializer =
Using Ruby 1.8.7-p358, Rails 3.0.12, gem responder, gem simple-form; jquery_ujs.js I have a form
I am using Ruby on Rails 3.2.2 and I am experimenting the Squeel gem.
I am using Ruby on Rails 3.2.2 and Cucumber with the cucumber-rails gem. I
Possible Duplicate: Perplexing Ruby/MySQL Error: "invalid packet: sequence number mismatch" My rails app just
I have been using Ruby 1.8 + Rails 2.3.5 with oracle_enhanced and it works
I'm trying to read an email using ruby mail gem. But mail.body.decoded returns me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.