I was trying to add some configurations to one of my existing reports so that I could print the report as well as send it out via email. However, when I try to go to print this invoice now, I get this error: “Template with ID ‘LrhSalesInvoice.ReportLRUK_Domestic(0%)’ for the company ‘lruk’ (or company neutral) and the language ‘en-US’ (or language neutral) does not exist. Please check Docentric report setup.”
I have changed the print management settings back to what they were prior to my testing but I am not getting this error that prevents me from viewing the invoice at all.
To have multiple default templates, they need to have the same Template ID, but a unique combination of legal entity and report runtime language.
If you are using Print Management, and have selected the @DOCENTRIC_DEFAULT_TEMPLATE@ token as the template ID in your Print Destination, the one that matches the legal entity and language will be used, so please make sure that you have all combinations covered, or, in this case, to have a template with ID ‘LrhSalesInvoice.ReportLRUK_Domestic(0%)’, company ‘lruk’ (or company neutral) and the language ‘en-US’ (or language neutral).
It is also a good idea to have one entry where Company and Language are blank. This will make sure you always have a “fall-back” template to use if no other combination will be used.