I work with a large database in my org (+/- 500 000 records) and tried to query data from a custom object using the Bulk API. The error as seen in the reprex suggest that either the object does not exist, or the user does not have permission to view it.
However, the same exact SOQL expression using different API's did return results, so I rule out the fail of finding the object due to misspelling of the object name. Furthermore, as I'm able to retrieve data using different API methods, I doubt that I don't have the right permission to view the data.
I don't have a lot of technical knowledge about Salesforce and the custom objects in our org. So I am not sure if there are any object-specific settings or parameters that could be the culprit of this issue. But I do suspect that the issue may be with something in the object settings as the query works fine on other non-custom objects.
I tried to look through the Salesforce documentation of Bulk 1.0 and 2.0, but could not immediately find anything of interest that may relate to this issue.
If any of you have encountered something similar before, or have any further suggestions where to look into, please let me know.
Thank you in advance
reprex
Note:
Multiple custom objects were tried, all with the same error as below.
Bulk 1.0 throws the same error on custom objects.
Bulk 1.0 and Bulk 2.0 returned no issues on native Salesforce objects such as 'Contact', 'Acounts', etc.
The same SOQL call on several custom objects, but with REST and SOAP API returned the result with no issues.
## Custom object with Bulk 2.0
sf_query("SELECT Id FROM studie__c ", object_name = "studie__c", api_type = "Bulk 2.0", verbose = TRUE)
#> Error: The supplied object name (studie__c) does not exist or the user does not have permission to view
Issue description
I work with a large database in my org (+/- 500 000 records) and tried to query data from a custom object using the Bulk API. The error as seen in the reprex suggest that either the object does not exist, or the user does not have permission to view it.
However, the same exact SOQL expression using different API's did return results, so I rule out the fail of finding the object due to misspelling of the object name. Furthermore, as I'm able to retrieve data using different API methods, I doubt that I don't have the right permission to view the data.
I don't have a lot of technical knowledge about Salesforce and the custom objects in our org. So I am not sure if there are any object-specific settings or parameters that could be the culprit of this issue. But I do suspect that the issue may be with something in the object settings as the query works fine on other non-custom objects.
I tried to look through the Salesforce documentation of Bulk 1.0 and 2.0, but could not immediately find anything of interest that may relate to this issue.
If any of you have encountered something similar before, or have any further suggestions where to look into, please let me know.
Thank you in advance
reprex
Note:
Session Info