Beta Print - Cannot Set Property 'image_file' of undefined

359
2
10-19-2017 06:39 AM
ChristopherBowles
New Contributor III

I have a survey with numerous repeats that allow the user to upload unlimited photographs. I've included one repeat below as an example:

typenamelabel
begin repeatimage_tableTake pictures showing the feature
imageimage_fileImage:
end repeat

When I print using the beta print fuctionality using a template with the following:

${#image_table}

${%image_file | size:460:0}

${/image_table}

The printing icon spins indefinitely.  If I open the developer console up in Chrome, I get the following error:

vendor.bundle.js:1 ERROR Error: Uncaught (in promise): TypeError: Cannot set property 'image_file' of undefined
TypeError: Cannot set property 'image_file' of undefined
at 7.chunk.js:1
at Array.forEach (<anonymous>)
at 7.chunk.js:1
at Array.forEach (<anonymous>)
at 7.chunk.js:1
at t.invoke (polyfills.bundle.js:1)
at Object.onInvoke (vendor.bundle.js:1)
at t.invoke (polyfills.bundle.js:1)
at e.run (polyfills.bundle.js:1)
at polyfills.bundle.js:1
at t.invokeTask (polyfills.bundle.js:1)
at Object.onInvokeTask (vendor.bundle.js:1)
at t.invokeTask (polyfills.bundle.js:1)
at e.runTask (polyfills.bundle.js:1)
at a (polyfills.bundle.js:1)
at 7.chunk.js:1
at Array.forEach (<anonymous>)
at 7.chunk.js:1
at Array.forEach (<anonymous>)
at 7.chunk.js:1
at t.invoke (polyfills.bundle.js:1)
at Object.onInvoke (vendor.bundle.js:1)
at t.invoke (polyfills.bundle.js:1)
at e.run (polyfills.bundle.js:1)
at polyfills.bundle.js:1
at t.invokeTask (polyfills.bundle.js:1)
at Object.onInvokeTask (vendor.bundle.js:1)
at t.invokeTask (polyfills.bundle.js:1)
at e.runTask (polyfills.bundle.js:1)
at a (polyfills.bundle.js:1)
at new m (polyfills.bundle.js:1)
at c (polyfills.bundle.js:1)
at c (polyfills.bundle.js:1)
at polyfills.bundle.js:1
at t.invokeTask (polyfills.bundle.js:1)
at Object.onInvokeTask (vendor.bundle.js:1)
at t.invokeTask (polyfills.bundle.js:1)
at e.runTask (polyfills.bundle.js:1)
at a (polyfills.bundle.js:1)
at Image.invoke (polyfills.bundle.js:1)

0 Kudos
2 Replies
by Anonymous User
Not applicable

ZWang-esristaff Can you take a look into this one? Thanks.

0 Kudos
ZhifangWang
Esri Regular Contributor

Hi cjbowles

Would you mind to share a simple XLSForm file that can reproduce the issue? I've tried to include a repeats which contains image question side in a survey, but I can successfully print the images by using the default template.

0 Kudos