How to Prepare Your Data in Google Sheets for Document Studio
A workflow reads its data from one sheet of a Google Spreadsheet. Row 1 holds the column titles, and each row below it is one record: one certificate, one invoice, one email. A sheet that is laid out this way works without surprises.
The Layout That Works
Section titled “The Layout That Works”Maya’s Certificates sheet looks like this:
| Name | Course | Completion Date | |
|---|---|---|---|
| Daniel Okafor | daniel@example.com | Pottery Basics | 14 Mar 2027 |
| Sofia Marquez | sofia@example.com | Weaving | 14 Mar 2027 |
- Row 1 has the titles. Each title becomes a marker, such as
{{Name}}. See Column Titles. - One row is one record. Don’t split a record over two rows.
- The data starts in row 2, with no blank rows above or between the records.
- No merged cells, totals rows or notes inside the data.
Type the Data
Section titled “Type the Data”For a first test, type three or four rows by hand. Use your own email address in the rows, so the test emails come to you.
Import an Excel or CSV File
Section titled “Import an Excel or CSV File”-
Open a new Google Sheet. Type
sheets.newin your browser’s address bar. -
Open the File menu and choose Import.
-
Click Upload and choose the
.xlsx,.xlsor.csvfile from your computer.
-
In Import location, choose Replace current sheet, then click Import data.
-
Check row 1. If the file had a heading or a logo above the titles, delete those rows so the titles are in row 1.
Copy Data from Another Google Sheet
Section titled “Copy Data from Another Google Sheet”You can run Document Studio in the spreadsheet where the data already is. To work on a copy instead:
-
Open the spreadsheet that has the data.
-
Click the arrow on the sheet’s tab at the bottom, and choose Copy to > Existing spreadsheet.

-
Choose the spreadsheet where you will build the workflow.
Use Google Forms Responses
Section titled “Use Google Forms Responses”A form’s response sheet already has the right layout. Google Forms writes the question titles in row 1 and adds one row for each response.
- Submit one test response before you build the workflow. Document Studio uses the first response as sample data.
- You can add your own columns to the right of the answers, such as a formula that works out a total. See Google Forms Markers.
- Don’t insert rows by hand between the responses.
Columns That Document Studio Adds
Section titled “Columns That Document Studio Adds”When a workflow runs, each task adds its own column to the right of your data, named like [Document Studio] File Status #k3x9a2. The cell holds the result for that row, such as a link to the file. Leave these columns in place. They are how Document Studio knows which rows are done. See How Document Studio Remembers What It Did.
Things to Know
Section titled “Things to Know”- A workflow reads one sheet. If your data is on several tabs, bring it together on one tab, or create a workflow for each tab.
- Document Studio reads what the cell shows. A date formatted as
14 Mar 2027goes into the document as14 Mar 2027. Format the column in the sheet the way you want it to read. See Date Markers. - Empty rows are skipped. A row counts as empty when no cell has a value. Cells that show only
TRUE,FALSEor a formula error such as#N/Aalso count as empty. - Hidden and filtered rows are skipped. Show a row in the sheet to have it processed. See Triggers.
- Don’t sort the sheet while a workflow is running.
Troubleshooting
Section titled “Troubleshooting”“The Google Sheet contains no rows.”
Section titled ““The Google Sheet contains no rows.””The sheet has titles but no records, or the records are on another tab. Open the workflow and check Source Worksheet on the Source step.
A column is missing from the marker list
Section titled “A column is missing from the marker list”- The title cell in row 1 is empty. Type a title.
- You added the column while Document Studio was open. Close the window and open it again.
Rows are skipped that should be processed
Section titled “Rows are skipped that should be processed”Open the Run step and click Show details. The row is listed under the group that explains it: processed earlier, empty, hidden or not matching the conditions. See Run a Workflow.
Numbers lose their format, such as 0042 becoming 42
Section titled “Numbers lose their format, such as 0042 becoming 42”Google Sheets treats the cell as a number. Select the column, open the Format menu and choose Number > Plain text, then type the values again.
