I have appended old survey results to the new survey results; the schema is exactly the same; however, when generating reports from the old results, attachments are not displayed, but they are there. How do I resolve this?
I have attchached
1.How results are displayed for both old and new results. Old not displaying which i guees could be the issue.
2. The icon shown on the report instead of photos.
Kindly assit.
Musandiwa Sadiki
Solved! Go to Solution.
Hi @MusandiwaSadiki ,
That makes sense.
For the report syntax,
So in ${attached item | size:250:0}, "attachment item" is invalid syntax.
To print the image in its original size, you can just use the syntax without specifying its size: ${$file} in an iteration or ${image1} for the specific question. Please note that the original image size probably exceeds the width of the document, that's why we usually use the "size:<width>:<height>" method to control its size.
Hi @MusandiwaSadiki ,
The form view on the Data page of the Survey123 website and the Survey123 report service can display attachments for an image question as long as there is a `keyword` property of the attachment written with the same image question name. Otherwise, we cannot know which question an attachment belongs to.
From your description, https://support.esri.com/en-us/knowledge-base/how-to-update-the-attachment-keywords-for-existing-arc... might help you add the keyword property for attachments in old records.
Thank you very for the response, the syntax that has worked is the one detailed below.
${#$attachment}
${$file}
${/}
${#attachments}
${attached item | size:250:0}
${/attachments}
${attached item | size:250:0} failed, when I removed it, however the attachments are displayed partially. Which syntax above can I use to display the original size of the photos?
Hi @MusandiwaSadiki ,
That makes sense.
For the report syntax,
So in ${attached item | size:250:0}, "attachment item" is invalid syntax.
To print the image in its original size, you can just use the syntax without specifying its size: ${$file} in an iteration or ${image1} for the specific question. Please note that the original image size probably exceeds the width of the document, that's why we usually use the "size:<width>:<height>" method to control its size.
Thank you very much, it has worked so perfect, have even generated survey reports.