Spanning Knowledge Base

Knowledge Base

Why is the custom restore button not working?

Last Updated: Jun 11, 2015 03:19PM CDT

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 Installation Guide, if you copied the the code and pasted it directly into your browser when creating the new Custom Restore button, then it is possible that either a 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
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found