Applies To: Work 365 Billing and Invoicing, Dynamics 365 / Dataverse Word document templates, model-driven apps
Overview
If Generate PDF fails on a Work 365 invoice, a common cause is that the invoice Word template was either never uploaded into the environment or was uploaded but never selected in Work 365 settings. Work 365’s invoice-template guidance requires both steps: upload the template into Dynamics 365 / Dataverse, then select it in the Invoice Template application setting before generating the PDF from the invoice record. Microsoft documents Word templates as the supported standardized document-generation method for customer engagement apps, and macro-enabled Word files (.docm) are not supported.
Before You Begin
Before starting, confirm you have permission to manage document templates in the environment. Microsoft’s current guidance says uploading environment-level Word templates requires sufficient permissions, such as System Administrator or System Customizer. Microsoft also states that .docm files are not supported for this feature.
You also need a valid Word invoice template file. Work 365 notes that you can contact your Work 365 CSM for a baseline invoice template.
Resolution
Step 1: Open the Document Templates area
Use Microsoft’s current admin route for environment-level templates:
Power Platform admin center:
https://admin.powerplatform.microsoft.com
Navigation:
Manage → Environments → [your environment] → Settings → Templates → Document templates
Microsoft documents the Power Platform admin center as the unified admin portal and documents this as the current route for working with Word templates at the environment level.
Step 2: Use the legacy route only if your environment still exposes it
Work 365’s invoice-template article still references the older route:
Legacy navigation:
Advanced Settings → Templates → Document Templates
If your environment still shows that route, it can work as a fallback. However, Microsoft’s current guidance points admins to the Power Platform admin center path above, so that should be the primary method.
Step 3: Upload the invoice template
In Document templates, upload the Word template file and confirm the upload succeeds. Work 365’s invoice-template guidance explicitly tells admins to browse to the saved template and verify that the upload completed successfully before moving on.
Step 4: Select the template in Work 365
In Work 365, go to:
Administration → Admin Hub → Application Settings
Find Invoice Template and select the template you uploaded. Work 365 documents that the Invoice Template setting controls the template used to create invoice documents, and it also notes that invoice templates can be specified at the Billing Contract level.
Step 5: Generate the PDF from the invoice
Open the invoice record and use Generate PDF from the Work 365 menu. Work 365’s invoice-template article specifically instructs users to generate the PDF from the invoice record after the template has been uploaded and selected.
Troubleshooting
The Document Templates area is hard to find
Start with the current Microsoft route:
Power Platform admin center:
https://admin.powerplatform.microsoft.com
Navigation:
Manage → Environments → [your environment] → Settings → Templates → Document templates
If your organization still exposes older settings pages, you may also see the legacy template-management route referenced in older Work 365 guidance. Treat that as fallback guidance, not the primary route.
Generate PDF still fails after the template is uploaded
Check that the template was not only uploaded, but also selected in:
Work 365 → Administration → Admin Hub → Application Settings → Invoice Template
Work 365’s own guidance requires both steps.
The wrong invoice template is being used
Check whether the Billing Contract is overriding the global template. Work 365 documents that Invoice Template can be set globally in Application Settings and can also be specified at the Billing Contract level.
The invoice was created automatically, but no PDF is attached
Review the related Work 365 job from the invoice’s Jobs tab. Work 365 documents an Invoice Post Processing job for automatically generated invoices, and that job processes auto-sync, auto-charge, create PDF, and auto-send in that order. Work 365 also documents a Generate Invoice PDF application setting that controls whether PDF attachments are created automatically for generated invoices.
The template file will not upload
Verify that the file is a supported Word template and not a .docm file. Microsoft explicitly states that macro-enabled Word documents are not supported.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article