When generating a document in xential, a selection question may fail to be populated correctly. This article describes the error message, the cause and the solution.
Symptoms
During document generation, an error message appears such as:
"Field with id 'xxxxxx' could not been filled. [...] Caused by: java.lang.RuntimeException: file not found, fileId:[xxx]"
Cause
The error message indicates that xential cannot populate an answer of a selection question because the answer's ID cannot be found in xential. This can occur when the content of an answer has not been saved correctly.
Step-by-step guide
1
Open the relevant template in xential|studio.
2
Navigate to the selection question that is causing the error.
3
For each answer, open its content via Open content (right-click the answer or access it through the properties).
4
Repeat this for all answers of the selection question.
5
Save the template and test the document again.
Result
By reopening the content of all answers, the IDs are correctly saved in xential. The error message no longer appears when generating the document.