I have a problem in production where, when users activate their account via Site.createPortalUser, instead of the User
being linked to the existing Contact
a new Contact
is created. (Any advice on that problem very welcome too.) The logic for this is in a managed package.
I can't reproduce the problem in my managed package development org. So to debug this and test a solution, I've created a developer sandbox from production. But the activation always fails with:
Your request cannot be processed at this time. The site administrator has been alerted.
and I note that the "Used Licenses" is zero in the sandbox (but not in production). So I am wondering if Site.createPortalUser
does not function in a sandbox by design. Any insight appreciated.