First of all, customizing the encounter template had been nightmarish to say the least. This visits/encounters dashboard is a horror show.
This is what configures the custom encounter template to be used:
As you can see, only on encounter type is supposedly supported… You may have to dig in to understand why this is not applied as expected.
The toast message error popups are unrelated, it would be interesting to know why Attachments cannot figure out how to fallback on the complex obs handler that was used for those obs (because it is supposed to actually.). Would you be in a position to investigate this?
It most likely relates to this thread: ‘Visit Documents Module does not display images saved as complex obs from another module’. I was hoping back then that @ivange94 could dig further and raise a ticket.
Or if you are in a position to provide detailed steps as to how to reproduce the ‘core bug’ so to say, that’d be helpful.