Skip to main content
My flow for Calendly has this INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY error, where Salesforce has created a duplicate profile under a my user email and is attaching the new event record to the incorrect {!OwnerId} without proper permissions (basically a ghost profile).

 

How do I fix this please? I am system admin on my org but I cannot view or edit the ghost user profile. Thanks in advance for helping me with this. 
2 Antworten
  1. 10. Sept. 2024, 14:38

    Purely for anyone else coming across this article who found the same error when trying to set up Calendly's integration with Salesforce (as I did!), I found the problem was nothing to do with a ghost user, rather that the 'common' factor with Jessica and I is that we are both the SF Admins and that's the clue.....

     

    As an admin, I have a couple of SF Integration users and a test user in the org that share my email address.  And that was the issue - in Calendly's CreateEventTemplate Flow that runs, there's a 'get event publisher' action which searches the user email addresses to match the person that's organised the event in Calendly.  It only gets the first user then assigns that user as the OwnerId of the event record -- hence the error and the failed flow.

     

    I cloned and edited the flow so it didn't just match the email address when trying to locate the user -- it also matched another identifying field (I matched the Calendly username as for us, that was a constant match to the user's full name in SF - although the SF username is an exact match to the email address at our org so that'd be a unique).  That way, the first user it matched to was the right one, and the flow created the event without problem.

     

    NB: There are other flows Calendly installs that check to match the user - so wherever that happens, those flows will also need updating.

     

    Hope the above helps even just one person!!