Skip to content Skip to main navigation Skip to footer

Error 400 There was a problem retrieving the image

This error can appear when trying to merge an image into a document using a File URL:

Error message: Error: 400. Error description: { “error”: { “code”: 400, “message”: “Invalid requests[0].insertInlineImage: There was a problem retrieving the image. The provided image should be publicly accessible, within size limit, and in supported formats.”, “status”: “INVALID_ARGUMENT” } }

  • The URL must be a public link. For steps to create a public link, see Template Configuration, merge images from Files (lightning).
  • Check that the image fits within the document.
  • Verify that the image is in a supported format: jpg, jpeg, png, gif.
  • The custom field where you have saved the file URL must be a long text field. Otherwise the URL exceeds the 255 character limit of a regular text field.