Issues with 'Create document from a template' in Google Docs: Text Replacement and Dynamic Image Insertion Errors

Hello everyone,

I’m using the “Create document from a template” step in Google Docs through Make and I’m encountering a couple of issues. I’d appreciate any advice or solutions from the community.

Text Replacement Error:
I’m trying to replace text within the template, but I receive an error message stating: “Invalid JSON payload received. Unknown name ‘replaceText’ at ‘requests[1].replace_all_text’: Proto field is not repeating, cannot start list.” It appears there’s an issue with field recognition in the API. Has anyone encountered a similar issue or knows the correct way to format this?

Dynamic Image Insertion:
Additionally, I am looking to dynamically insert images into the document using URLs, but I’m struggling to understand how to do this effectively. The goal is to replace an existing image with a new one via URL in a Google Docs document generated from a template. What is the correct method to achieve this?

Any help or guidance would be greatly appreciated. Thanks in advance for your support!

Hey @FrancescoLandi

The error says “unknown name” which means the variable name you are passing does not exist in template. There can be a mismatch. also while doing that, if you will select the folder from the dropdown instead of mapping, you will be able to directly map the values instead of specifying the variable names.

image

Same for image, you will be able to pass the url.

Regards,
Msquare Automation - Gold Partner of Make

Book a Free Consultation | Connect Live
Explore our YouTube Channel for valuable insights and updates!