Hello,
I have been experiencing some weird behavior when generating reports from a custom template in Survey123. My survey has a repeat question for inspection photos with photo captions. In the report template, I pull those photos into a table. Here is the report syntax:
Sometimes, the report generates fine and all photos are pulled into the report. However, sometimes I find that a particular photo is missing from the template. I new table row is created and the caption is printed for the photo, but the table cell for the photos is just blank. This seems to most frequently happen with the first photo/record of the repeat. I end up having to copy/paste that one photo into the report by accessing the record through the Survey123 web interface.
I wish it was at least consistent, because then it would be easier to troubleshoot! But has anyone else experienced this behavior before? Any ideas what might be causing it to happen?
Solved! Go to Solution.
UPDATE: @IsmaelChivite @ZhifangWang
And a huge thank you to @Nuramalina_Diyana_AtiqahSharon at Esri for working with me on my support ticket and helping me troubleshoot!
The issue was rooted in the version of Word that I was using to open the documents. My company has our machine's configured to do automatic software updates, so I didn't even realize when my version of word was updated. But apparently updating to version 2308 caused the issue where the first image of the repeat wouldn't render in the report.
I downgraded my version of word to version 2208, opened the same report, and the photos displayed correctly!
Hi @Katie_Clark ,
This is not a known issue in our radar. Can you please provide more information about the issue for us to better understand it? For example,
In addition, assuming your XLSForm is like below,
Can you please try something below, put the start and end tags out of the table, that makes each photo a separate 2-row table rather than 2 rows inside a single table to see if this helps avoid the issue?
Thanks,
Zhifang
Hello @ZhifangWang , I finally had time to test this edit to the report template, and unfortunately it did not solve the problem. The first photo of the repeat question in the survey is still omitted from the report word document. However, as you can see from the screenshot below, the photo description is still pulling in as expected. When I click inside the table cell, it is empty. No placeholder white textbox/image or anything like that.
I have confirmed that the photo DOES pull in when generating a PDF directly, rather than a word document. (see screenshot below, it worked in both my original and modified templates). However, this is not a possible solution for us as these reports need to be reviewed and possibly edited, along with the fact that generating directly as PDF messes with the table formatting of the report.
Here is a snapshot from my XLS form, the photo section is set up almost identical as you have it in your screenshot. The only difference being that my image question is listed before the description question. I also have some notes fields that are used to help with UI and enforce image orientation in the survey (landscape).
Another piece of information; when I manually copy/paste the photo into the report and then save, I get this message in Word.
Clicking "Details" produces this dialogue box. Clicking "Go To" then jumps to/highlights the newly pasted image.
With this information, do you have any further thoughts for troubleshooting? What could be causing the issue in Word doc but not PDF?
Thanks!
UPDATE: @IsmaelChivite @ZhifangWang
And a huge thank you to @Nuramalina_Diyana_AtiqahSharon at Esri for working with me on my support ticket and helping me troubleshoot!
The issue was rooted in the version of Word that I was using to open the documents. My company has our machine's configured to do automatic software updates, so I didn't even realize when my version of word was updated. But apparently updating to version 2308 caused the issue where the first image of the repeat wouldn't render in the report.
I downgraded my version of word to version 2208, opened the same report, and the photos displayed correctly!