Class implementing SandboxPostCopy executes on create of sandbox but not refresh
Apex , Salesforce to Salesforce , Sandbox
Last updated 2018-05-05 ·Reference W-4703610 ·Reported By 5 users
Summary
Class implementing SandboxPostCopy executes on create of sandbox but not refresh. Unexpected exception in queue processing is found.
An additional aspect of this issue:
If the source of a sandbox is changed on refresh, a sandbox completion email will not be sent.
Repro
1.) Login into production org
2.) Setup | Deploy | Sandboxes
3.) Click "Refresh" next to sandbox named "test"
4.) In "Create From" drop-down select sandbox: "testB"
5.) Select "Auto Activate"
6.) Specify class: "SandboxAfterRefresh"
Expected Results:
===============
SandboxAfterRefresh class is executed post copy in the refreshed org and we can see the resulting ApexJob out in Setup | Monitor | Apex Jobs. Also, user receives "apex class run results" email.
Actual Results:
===============
There is no evidence SandboxAfterRefresh class executed. No email is received.
Sandbox completion email issue aspect:
1. Create a sandbox A.
2. Create another sandbox B.
3. Refresh sandbox A as a clone of sandbox B.
Expected Results:
===============
Sandbox completion email should be sent.
Actual Results:
===============
Sandbox completion email is not sent.
Workaround
NA
Reported By (5)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.