Features
Error "Cannot read properties of undefined (reading '0') or "Could not find document" when previewing a spreadsheet
Issue
When a Spreadsheet has been created by an automation process, the spreadsheet cannot be previewed without encountering one of the following errors:
- Cannot read properties of undefined (reading '0')
- Could not find document
Cause
The spreadsheet has been created with both Merge Fields and Merge Names enabled.
These settings control how Merge Fields from FYI are sent to the document, and with both options enabled, causes a conflict.
Refer to Including Merge Fields in Excel Templates and Including Merge Names in Excel Templates.
Solution
- Click on the document to open the Spreadsheet drawer
- In the Filing section, ensure only one of the following options has been selected (click on the toggle to disable the other option):

/hc/en-us/categories/360001063892-Getting-Started
/hc/theming_assets/01JDG7MXB4R4BTMJ4PTBT9VF1R
Getting Started
Start a free trial, navigate FYI, and learn the essentials.
custom
/hc/en-us/categories/360002374291
/hc/theming_assets/01JD8GA8772PWQBHQ27Y4N9P85
Learning Resources
Access our library of video tutorials, guides and learning paths.
custom
/hc/en-us/categories/360003063191
/hc/theming_assets/01JDG817Z1T9ZAH54VBQ0YFQ1P
Onboarding
Configure FYI, migrate documents and onboard your team.
custom
/hc/en-us/categories/360000958432
/hc/theming_assets/01JDG7ZW55FD08Z5YYRRDKTKHA
Platform Admin
Configure users, practice settings, manage your FYI plan and more.
custom
https://fyi.app/automation-library/
/hc/theming_assets/01JDG83SNZXPNEQKNZFZT49MPG
Automation Library
Ready-to-go automations for a range of processes used in practices.
Automation Library, New Collaborate, Tasks, Templates, FYI Desktop