“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. Hey just wanted to give you a quick heads up.
    The words in your post seem to be running off the screen in Ie.
    I’m not sure if this is a formatting issue or something to do with browser compatibility
    but I figured I’d post to let you know. The design look great though!
    Hope you get the issue resolved soon. Many thanks

  2. It’s not my firsst time tto go to see this web page, i am visiting this
    web site very often and take good faccts from here.

  3. I really like your blog.. very nice colors & theme. Did you make this website yourself or did
    you hire someone to do it for you? Plz respond as I’m looking
    to create my own blog and would like to know where u got this from.
    thanks

  4. Hello, i do believe that we saw you visited my
    blog thus i arrived at “return the favor”.I’m looking to find points to
    enhance my web site!I suppose its ok to use a few of your opinions!!

    Also visit my web-site EllynPStrege

  5. It’s awesome to pay a quick visit this website and reading the views of
    all friends regarding this paragraph, while I am also eager of getting experience.

  6. I’m truly enjoying the design and layout of your blog.

    It’s a very easy on the eyes which makes it much more enjoyable for me to come here
    and visit more often. Did you hire out a designer to create your theme?

    Outstanding work!

  7. Hey there! Quick question that’s totally off topic. Do you know how to make your site
    mobile friendly? My web site looks weird when browsing
    from my iphone. I’m trying to find a theme
    or plugin that might be able to resolve this problem.
    If you have any recommendations, please share. Cheers!

  8. Good day! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community
    in the same niche. Your blog provided us valuable information to work on. You have done a marvellous
    job!

  9. Howdy! I’m at work browsing your blog from my new iphone 3gs!
    Just wanted to say I love reading through your blog and look forward to all your posts!
    Carry on the excellent work!

  10. Hmm it seems like your site ate my first comment (it was extremely long) so I guess
    I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog writer but I’m still new to everything.
    Do you have any tips for beginner blog writers? I’d really appreciate it.

  11. Hello, i think that i noticed you visited my site so i came to return the prefer?.I am trying to find issues to enhance my
    website!I guess its ok to use some of your ideas!!

  12. Hello this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors
    or if you have to manually code with HTML. I’m starting a blog
    soon but have no coding expertise so I wanted to
    get advice from someone with experience. Any help would be enormously
    appreciated!

  13. I like what you guys are up too. This sort of clever work and reporting!
    Keep up the very good works guys I’ve incorporated you guys to our
    blogroll.

Comments are closed.