Failed to save settings due to snippet error
Redcard
Posts: 1 New member
in SQL Prompt
I'm getting this error everytime I attempt to save anything including Options.
Love the tool, but as work changes, I can't adjust.
Thanks,
Greg
Love the tool, but as work changes, I can't adjust.
Thanks,
Greg
Tagged:
Answers
If you go to %localappdata%\Red Gate\SQL Prompt 10 and then into the Styles and Snippets folder, do you see any duplicate names?
You can check by copying the JSON files from this folder to another location and restarting SSMS to see if this clears your error. If so there is likely a duplicate entry in the folder. Take care not to delete these files as they cannot be recovered and you would need to recreate your styles and/or snippets as required.
There are obviously no duplicates in the folder I'm trying to change to, so what gives?
I've tried deleting all default snippets, it doesn't help.
In my instance, I've tried to import this backup, which included a couple of these "duplicates". So I'd say user error, but with the caveat that your error message could be more explicit which files it finds as duplicates, and/or use as key the snippet+key (as the filename), not just the key.