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
Jason ChristmanJason Christman 

Access to entity 'Campaign' denied: Entity is not api accessible

I get this error message from a nightly scheduled batch.  I do not get it all the time just every couple days.  I can run the same job started from a button and it runs fine and does all the updates.  Background for you.  I have a service thought runs a batch that does api call outs to external services to get information back on stats for a campaign.  The stats are for custom fields on the campaign and campaign members.  When I click the button to run the job it runs fine.  But when the job is scheduled to run I get back this
< Access to entity 'Campaign' denied: Entity is not api accessible>
It acts like the job service does not have permissions to perform the udpate. Does anyone know how to fix or get around this issue, any help would be appreciated.  Thanks,