This is making me heavily reconsider Sync, and since it’s not easily reproducible, I can’t submit it as a bug.
Scenario
Last night, I made 51 new notes categorizing and logging books. I was using the Button community plugin to generate new notes with a specific template. Additionally, I was using dataview to get the right views.
Later, once I had finished one large chunk I was hoping to complete, I noticed the top number above dataview displaying how many notes I had in each section. Less than 10 minutes later, I opened up Obsidian on the mobile app (Android) and noticed the numbers were different.
The Issue
3 of the notes had been completely wiped and changed to a template that I didn’t create them with. However, the template they were converted to is the normal template all notes in that folder typically get created under.
Extra tidbits
I don’t have the obsidian folder in a cloud drive btw. They are set to a regular file, and I also use local backup that goes to a different drive (also not cloud). I also found a reddit thread of other people experiencing the same issue.
If someone knows something I’m doing wrong, Please let me know. I’m likely going to look for an alternative to Sync. There have been times in the past where I felt like I was losing my mind thinking I had written notes that were empty or missing. This is a serious issue that I hope gets addressed soon, but the reddit thread linked above tells me that this has been around for some time.
I think your issue might be from plugins which do automatic things, rather than Sync itself. Would you share your “Show debug info” to see what plugins you’re dealing with? Maybe someone has some experience with side effects you can avoid.
If you are using “Button” to make certain templates, but some folder plugin is set to edit the template, maybe the plugins are racing each other and causing issues. Sync isn’t changing your template. (Not to say there isn’t a Sync issue that might be identified.)
I can see the template having an issue, but I’d also imagine it would’ve had an issue on many more than just 3 files. Here is the debug info:
SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.6.7
Operating system: Windows 10 Home 10.0.19045
Login status: logged in
Language: en
Catalyst license: supporter
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Minimal v7.7.10
Snippets enabled: 4
Restricted mode: off
Plugins installed: 16
Plugins enabled: 15
1: Templater v2.9.1
2: Calendar v1.5.10
3: Natural Language Dates v0.6.2
4: Tasks v7.14.0
5: Local Backup v0.1.8
6: Editing Toolbar v2.4.16
7: Minimal Theme Settings v8.1.1
8: Style Settings v1.0.9
9: Tag Wrangler v0.6.1
10: Dataview v0.5.67
11: Columns v1.6.1
12: List Callouts v1.2.9
13: Callout Manager v1.1.0
14: Custom Frames v2.4.7
15: Buttons v0.5.1
RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.
I don’t use Obsidian Sync, but I’ve caused myself similar pain with git and one of my Templater templates. If i have Obsidian open and then do a git operation that Obsidian isn’t aware of, one of my templates moves itself to another folder.
This is completely an issue with Templater not understanding that its world view just changed out from underneath it, and it mistakenly performes the move operation specified in the template because the timestamp on the template just changed. In my case, this is all my fault since I’m doing an unsupported operation on my vault.
I wonder if during your Obsidian Sync operation, if the new file creation is triggering a folder Templater operation to happen which overwrites the new note before Sync has a chance to complete its work.
Your issue might have nothing to do with Templater, but as @rigmarole suggested, this is most likely an issue with one of your plugins. If so, you can’t expect Obsidian Sync to be the one responsible for fixing the issue since plugins aren’t guaranteed to play nicely with the base Obsidian program.
Having said this, it might make sense for Obsidian Sync to disable all community plugins while bringing in new files to avoid race conditions. Another possibility would be for community plugins, like Templater, to hold off their functions while Sync is doing its job.
The templater issue makes the most sense, especially since the overwrite basically set in an alternate template. I think I am going to turn off the auto-template for new note generation and see how that performs.
For your other question, I don’t have multiple profiles but I do use multiple vaults (work and personal).