After setting up the custom Spanning Restore button in your Salesforce instance, if you receive the following error when trying to use the button, there is an issue with your JavaScript code:
When looking at the Spanning Backup for Salesforce Manual, if you copied the code and pasted it directly into your browser when creating the new Custom Restore button, then it is possible that either space or a line break was entered in the code during the paste process. As a result, you will need to edit the JavaScript code to remove the space or line break. See below:
Example of pasted JavaScript code with line breaks ('Enter' or 'Return' on your keyboard), which will cause the code to fail:
Example with the line breaks removed (Note: the break in the example below is simply due to the text wrapping feature of the internet browser - the forced line break has been removed):
After you fix these spaces or line breaks in your code, save the new code and retry using the Restore button. If you have any additional questions about this process, please contact support@spanning.com.
Why is the custom restore button not working?
Have more questions?
Was this article helpful?
Provide feedback for the Documentation team!
Browse this section
- Enhanced Disaster Recovery support with backup data browsing in Spanning for Salesforce
- Restore Lookup Relationships
- Can I anonymize data when seeding sandboxes using Spanning?
- How do I reduce bulk restore errors using Related Object Types?
- Can I restore metadata directly from the metadata comparison results?
- How do I import metadata into Salesforce?
- How do I restore metadata into Salesforce using Spanning Backup?
- Can I restore specific fields back into my Salesforce environment?
- Can I restore specific fields for multiple records using Spanning Backup for Salesforce?
- Can Spanning restore child records when restoring parent records?
- See more