“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. It’s awesome to visit this web site and reading the views of all mates concerning
    this paragraph, while I am also zealous of getting familiarity.

  2. Hello There. I found your blog using msn.
    That is an extremely smartly written article. I will make sure to bookmark it and come back
    to learn more of your useful info. Thank you for the post.
    I’ll definitely comeback.

    Feel free to surf to my web site; 3win8 ios

  3. Do you have a spam issue on this blog; I also am a blogger, and I was wanting to
    know your situation; we have created some nice methods and
    we are looking to trade strategies with other folks, please
    shoot me an e-mail if interested.

    My site :: 918kiss 2 online

  4. Undeniably believe that which you said. Your
    favorite justification appeared to be on the web the simplest thing to be aware of.

    I say to you, I certainly get irked while people consider worries that they plainly do not know about.
    You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people
    could take a signal. Will likely be back to get more.

    Thanks

  5. You’ve made some good points there. I looked on the net to learn more about the issue and found most people will go along with your views on this site.

    Check out my blog post :: wukong333 test id (918kiss-m.com)

  6. Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News? I’ve been trying
    for a while but I never seem to get there! Appreciate
    it

  7. Normally I don’t learn post on blogs, but I wish to say that this write-up very forced me to try and
    do it! Your writing taste has been surprised me.
    Thank you, quite nice post.

    my web page ace333

  8. Spot on with this write-up, I actually think this web site needs far more attention.
    I’ll probably be returning to see more, thanks for the info!

  9. This design is spectacular! You obviously know how to keep a
    reader amused. Between your wit and your videos, I was almost moved to start
    my own blog (well, almost…HaHa!) Great job. I really loved what you
    had to say, and more than that, how you presented it.
    Too cool!

  10. Thanks for a marvelous posting! I definitely
    enjoyed reading it, you’re a great author.I will always
    bookmark your blog and definitely will come
    back later on. I want to encourage that you continue your great
    work, have a nice weekend!

  11. Hey there! I just wanted to ask if you ever have any trouble with hackers?

    My last blog (wordpress) was hacked and I ended
    up losing months of hard work due to no backup. Do you have any solutions to stop hackers?

  12. I like the helpful information you provide in your articles.
    I’ll bookmark your blog and check again here regularly.
    I am quite certain I will learn many new stuff right here!

    Good luck for the next!

    Feel free to visit my homepage: ex888 game

  13. I’ve read a few good stuff here. Certainly price bookmarking
    for revisiting. I wonder how so much attempt you place to create such a fantastic informative website.

Comments are closed.