Make Google Docs: Missing value of required parameter 'oldText' in Replace a Text
Описание и применение
В Make при использовании модуля Replace a Text в Google Docs ввод {{Name}} превращается в пустой токен, вызывая ошибку BundleValidationError. Решения: экранировать скобки при выполнении или использовать Create a Document from a Template с тегами.
Задача
When using Make’s Google Docs Replace a Text module, typing a placeholder like {{Name}} in the Old text field causes Make to convert it into an empty mapping chip, resulting in a BundleValidationError: Missing value of required parameter 'oldText'.
Результат
By escaping braces at runtime or switching to Create a Document from a Template, the user avoids the BundleValidationError and successfully replaces placeholders in Google Docs via Make.
Рабочий процесс
- 1. Identify the placeholder (e.g., {{Name}}) in the Google Doc.
- 2. In Make’s Replace a Text module, enter the placeholder in Old text; if it becomes an empty chip, proceed to step 3.
- 3. Build the literal {{Name}} at runtime using a replace function: replace(replace("[[Name]]"; "[["; "{{"); "]]"; "}}") or insert a splitter like {{emptystring}} to prevent tokenization.
- 4. Map New text to the form field answer.
- 5. Run the scenario on a copy of the document to avoid data loss.
- 6. Alternatively, use Create a Document from a Template: place {{full_name}} in the template, enter full_name (without braces) in Tags, and map the form answer.
- 7. Test the scenario to confirm the placeholder is replaced correctly.
Доказательства
Typing {{Name}} in the module field makes Make turn the braces into an empty mapping chip, so the required parameter is missing and you get BundleValidationError: Missing value of required parameter 'oldText'.
Build the literal {{tag}} at run time: {{replace(replace("[[Name]]"; "[["; "{{"); "]]"; "}}")}}
If you are filling a Doc from a form, Make's Create a Document from a Template module uses Tags / replaced values instead of Replace a Text.
- Дата записи: 2026-10-15T16:41:01.327Z