“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! This post could not be written any better!
    Reading this post reminds me of my old room mate! He always kept chatting about this.
    I will forward this article to him. Fairly certain he will have a good read.
    Thank you for sharing!

    My page; live22 casino

  2. Thank you for some other magnificent article. Where else may anyone get
    that type of information in such an ideal way of writing?
    I have a presentation next week, and I’m at the look for such
    info.

  3. You are so awesome! I do not suppose I’ve read through a single thing
    like that before. So good to discover somebody with some unique thoughts on this subject.
    Seriously.. many thanks for starting this up.

    This site is one thing that is required on the internet,
    someone with some originality!

  4. Undeniably imagine that that you said. Your favourite justification seemed to be at
    the net the easiest factor to bear in mind of.
    I say to you, I definitely get irked at the
    same time as folks consider concerns that they just don’t understand about.
    You controlled to hit the nail upon the highest and also outlined out the entire thing with no need side-effects
    , folks could take a signal. Will likely be again to get more.

    Thanks

    Feel free to surf to my blog – sky1388 for ios

  5. Excellent beat ! I would like to apprentice whilst
    you amend your website, how could i subscribe for a blog site?
    The account aided me a applicable deal. I have been tiny bit familiar of this your broadcast offered vibrant clear idea

  6. Thank you, I’ve just been searching for info approximately
    this subject for ages and yours is the best I have found
    out till now. But, what in regards to the bottom line?
    Are you positive concerning the source?

  7. Everyone loves what you guys are usually up too. Such clever work and coverage!
    Keep up the amazing works guys I’ve incorporated you guys to blogroll.

  8. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get
    several e-mails with the same comment. Is there any way
    you can remove me from that service? Thanks!

  9. Hi mates, how is everything, and what you would like to say on the topic of
    this paragraph, in my view its genuinely remarkable for
    me.

  10. What’s Taking place i am new to this, I stumbled upon this I have discovered
    It positively helpful and it has aided me
    out loads. I am hoping to give a contribution & help other users like its helped me.

    Good job.

  11. I have read so many articles about the blogger lovers except this article is actually a pleasant paragraph, keep it up.

  12. Everything is very open with a really clear description of the challenges.
    It was really informative. Your website is very helpful.
    Many thanks for sharing!

  13. Undeniably consider that which you stated. Your favorite reason seemed to
    be on the web the simplest thing to remember of.

    I say to you, I definitely get irked even as folks think about worries that they just don’t
    recognise about. You managed to hit the nail upon the top
    as smartly as defined out the entire thing without having side-effects ,
    people can take a signal. Will probably be again to get more.
    Thank you

  14. Hi, i think that i saw you visited my site thus i came to “return the favor”.I am attempting to find things to enhance my
    web site!I suppose its ok to use some of your ideas!!

  15. fantastic post, very informative. I wonder why the other experts of
    this sector do not realize this. You should continue your writing.

    I am sure, you have a huge readers’ base already!

Comments are closed.