You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dynamics-gp/installation/word-templates.md
+46-17Lines changed: 46 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: theley502
6
6
ms.topic: article
7
7
ms.reviewer: theley
8
8
ms.author: theley
9
-
ms.date: 6/9/2024
9
+
ms.date: 2/12/2025
10
10
---
11
11
12
12
# Word Templates in Dynamics GP
@@ -336,27 +336,28 @@ Administration >> Setup >> System >> Alternate/Modified Forms and Reports
336
336
337
337
#### To update the data source for a report template
338
338
339
-
1. Update the modified report.
340
-
Update the Report Writer report in Report Writer.
341
-
2. Run the report for which you made modifications to.
342
-
3. Export the report in XML format.
339
+
1. Update the modified report.
343
340
344
-
In the Report Destination Window, export the report as a file in XML format, click OK.
345
-
5. Open the report template document.
341
+
Update the Report Writer report in Report Writer.
342
+
1. Run the report for which you made modifications to.
343
+
1. Export the report in XML format.
346
344
347
-
This can be done via the clicking Modify in the Report Template Maintenance window (Administration >> Reports >> Template Maintenance) or opening the report template document .docx file directly.
348
-
7. In the Developer pane, select Field List from Microsoft Dynamics GP Templates group.
349
-
8. Select the XML Resource containing the report definition in the Custom XML Mapping pane.
350
-
9. In the Developer pane, select Remove Source from the Microsoft Dynamics GP templates group.
351
-
10. Click OK to Removing a data source may cause missing data on the template.
352
-
11. In the Developer pane, select Add Source from the Microsoft Dynamics GP Templates group.
353
-
12. Locate the XML Document file saved in Step 3, click Open.
354
-
13. In the Custom XML Mapping pane, you should now see a new XML Resource listed.
345
+
In the Report Destination Window, export the report as a file in XML format, click OK.
346
+
1. Open the report template document.
347
+
348
+
This can be done by clicking Modify in the Report Template Maintenance window (Administration >> Reports >> Template Maintenance) or opening the report template document .docx file directly.
349
+
1. In the Developer pane, select Field List from Microsoft Dynamics GP Templates group.
350
+
1. Select the XML Resource containing the report definition in the Custom XML Mapping pane.
351
+
1. In the Developer pane, select Remove Source from the Microsoft Dynamics GP templates group.
352
+
1. Click OK to removing a data source may cause missing data on the template.
353
+
1. In the Developer pane, select Add Source from the Microsoft Dynamics GP Templates group.
354
+
1. Locate the XML Document file saved in Step 3 and click Open.
355
+
1. In the Custom XML Mapping pane, you should see a new XML Resource listed.
355
356
356
357
> [!NOTE]
357
358
> The naming convention should be the same as before.
358
-
14. Modify the word template as needed and Save As.
359
-
15. Re-Import the word template document into Microsoft Dynamics GP.
359
+
1. Modify the word template as needed and Save As.
360
+
1. Re-import the word template document into Microsoft Dynamics GP.
360
361
361
362
## Word Template Generator
362
363
@@ -422,6 +423,34 @@ Use the Design Mode which can be activated from the Developer tab to see quickly
422
423
423
424
Make regular backup of your word template as you are working, in case you make a change that you’d like to revert.
424
425
426
+
## Error message The template you selected cannot be added to this report
427
+
428
+
1. Can you modify a pre-existing template and import without the error? If yes, it could be something with the file you are trying to import, see #7 below.
429
+
1. Open up the xml file that you generated with notepad. Look at the top of the xml.
430
+
431
+
If you see a line like the following in the dictionary node, then the xml has been generated on the original, not modified report:
432
+
433
+
`<Main Path="C:\GP2018\">Dynamics.dic</Main>`
434
+
435
+
If you see something like the following lines, it means that you generated the xml on a modified (in report writer) report.
The versions also have to match and if this is an alternate report then that could also cause a problem.
442
+
443
+
You will also want to check the xml name. It should be something like this: `XMLNAME="SOP Blank Picking Ticket Order Entered" (example report)`
444
+
445
+
Now you know the report name and whether it's modified or original, go into the Template Maintenance window and be sure to choose the report that matches the XMLNAME and either original/modified.
446
+
447
+
1. Rule out the Logo on the report and if that is causing an issue.
448
+
1. Make sure the form is set to compatibility. Always check the box to Maintain compatibility with previous versions of Word before saving. Only available the first time the document is saved.
449
+
1. Make sure the file is unlocked.
450
+
1. Verify the XML file is connected to the correct report format.
451
+
1. If you received this template package from an email, there is a chance the email security systems can potentially remove or block XML resources. Many email security filters scan attachments for potentially harmful content, including XML files, which can be flagged or removed if they are deemed suspicious or contain malicious code.
452
+
Open the file and check the XML resource connected to the template, if it is missing, that will cause the error.
453
+
425
454
## Create and Assign Word Templates
426
455
427
456
First, you need to determine what report we’re basing our template on and whether it’s an original report or a modified report.
0 commit comments