function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jose Da SilvaJose Da Silva 

Salesforce object is not accessible via API, but working via UI

I can access my object by Id via user interface by using URL like lightning/r/Account/0061n00000b5pEdAAI/view, but I'm not able to get it via API with same user(python):
sf_client.query_all(f"""SELECT Id, Name FROM Account where Id='0061n00000b5pEdAAI'""")

And this happens not with all objects. Like every 3rd object is not available. I checked permissions and set access to all view like in this guide:

Everything is set to View All already
SwethaSwetha (Salesforce Developers) 
HI Jose,

Do you see any error while trying to access via API? Thanks