Problem
When generating documents from Airtable, DocsAutomator requires a valid Record ID to know which record to use for document generation. Without this, the process fails.Error Location
The error typically appears:- In Airtable automation scripts on the right side of the script window
- Often accompanied by a red squiggly line under the variable name in the code editor
Solution
Check Input Variables
1
Open Input Variables
Navigate to the Input variables section on the left side of your Airtable automation script
2
Verify Record ID
Verify that a record ID has been properly defined
3
Check Variable Name
Ensure the variable name is spelled exactly as
recId (case-sensitive)Configure Correctly
To fix the issue:- Select the record id field from your input variables dropdown
- Name this variable
recIdwith the correct capitalization - Confirm the variable appears without error indicators in your script
Why This Matters
DocsAutomator needs a valid Record ID to be passed so that it knows for which record you’re trying to generate a document. Without this identifier, the system cannot retrieve the correct data for your template.Related
Airtable Integration
Complete guide to Airtable setup and configuration