#RPE #DNG Why does RPE generate an empty Word document?
![](http://jazz.net/_images/myphoto/f29e999b178d1cd7c71e46d0fb80d9fe.jpg)
I try to read out a DNG module with RPE. When I have to configure the data source before generating the document I either use the search function provided by RPE or generate the path myself with: https://server:port/rm/publish/resources?resourceURI=ID; where the ID is copied from DNG's "share link from artifact". But with both methods I get an empty Word document back.
(I just try to read out the title with: "dataSource/artifact/title" as value)
Thanks in advance!
One answer
![](http://jazz.net/_images/myphoto/f29e999b178d1cd7c71e46d0fb80d9fe.jpg)
Hi Emely,
I understand it is a bit tricky to generate DNG documents from RPE for the first time. Here are some advice.
1. Templete
1-1. Is this template created by you? To obtain "dataSource/artifact/title", you need to set query "dataSource/artifact" in parent element such as Container. If you do not know what I mean, then open [RPE_INST_DIR]\templates\DNG\DNG_Module.dta and see how it is designed.
1-2. Try to generate using DNG_Module.dta. This template should work fine.
2. Data source
Make sure "share link from artifact" is obtained from Module artifact, not artifact inside of module. Also you do not need ?oslc_config.context=... parameter in URI.
3. Configuration
If your DNG project is configuration enabled, then set "Configuration Context" to choose the configuration. See
https://rpeactual.com/2016/10/21/configuration-aware-document-generation/