“This session is not valid for use with the REST API” while making query

DESCRIPTION

This error you must be getting while making query developer console OR query using api. It’s because of fact that you don’t have permission to access org using API.

SOLUTION

If Issue is taking place in developer console

Quick way to fix it to give permission “Use any API client” using profile or permission set.

NOTE: If you do not find “Use any API client” then try to enable the permission “API Enabled”.

If you are using connected App

This is happening because of connected app is not configured correctly.

On ‘API (Enable OAuth Settings)‘ panel, move ‘Access and manage your data (api)‘ option from left to right of Selected OAuth Scopes field and then save the setting.

TIP: Wait for few minute and then try. It should work.

712 thoughts on ““This session is not valid for use with the REST API” while making query”

  1. Howdy would you mind sharing which blog platform you’re working with?
    I’m looking to start my own blog soon but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design seems different then most blogs
    and I’m looking for something completely unique. P.S
    Apologies for getting off-topic but I had to ask!
    asmr 0mniartist

  2. First of all I would like to say fantastic blog! I had a quick question in which
    I’d like to ask if you don’t mind. I was interested to find out how you center yourself and clear your
    head prior to writing. I have had difficulty clearing my thoughts in getting my thoughts out there.
    I truly do take pleasure in writing however it just
    seems like the first 10 to 15 minutes are generally wasted
    just trying to figure out how to begin. Any suggestions or tips?
    Kudos!

  3. This is very interesting, You are a very skilled blogger.
    I’ve joined your feed and look forward to seeking more of your fantastic post.
    Also, I have shared your website in my social networks!

  4. Link exchange is nothing else however it is only placing the other person’s web site link on your page at proper place and other
    person will also do similar for you.

  5. I don’t even know how I ended up here, but
    I thought this post was good. I don’t know who you are
    but certainly you are going to a famous blogger
    if you aren’t already 😉 Cheers!

  6. Can I simply just say what a relief to uncover somebody who genuinely understands what they are talking about
    over the internet. You definitely realize how to bring
    a problem to light and make it important. A lot
    more people need to look at this and understand this side of your story.
    I was surprised you are not more popular because
    you most certainly possess the gift.

  7. My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the costs.

    But he’s tryiong none the less. I’ve been using WordPress on various
    websites for about a year and am concerned about switching to another platform.
    I have heard fantastic things about blogengine.net.
    Is there a way I can import all my wordpress posts into it?
    Any help would be really appreciated! asmr 0mniartist

  8. What’s up it’s me, I am also visiting this web page regularly,
    this web site is in fact good and the people are really sharing pleasant thoughts.

  9. What’s up to every one, it’s genuinely a good for me to pay
    a visit this website, it includes helpful Information.

  10. I was recommended this blog by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my problem.

    You’re wonderful! Thanks!

  11. It’s the best time to make some plans for the future and it’s
    time to be happy. I have read this post and if I could I want to suggest you some
    interesting things or tips. Perhaps you could write next articles referring to this article.
    I desire to read even more things about it!

  12. I have read so many articles on the topic of the blogger lovers however this piece of writing
    is truly a nice article, keep it up.

  13. Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However, how can we communicate?

Comments are closed.