DU size error message for gmail attachment

Hello,

I’m trying to process gmail attached .pdf file (1 basic page) via DU and log the data. But I get the following error.

My automation is as follow:

  • Get Newest Email - Email Out newEmail
  • Download Email Attachments - Attachments Out newEmailAttachments
  • Path Exists - Path newEmailAttachments.Select(Function(a) a.LocalPath).FirstOrDefault() and Reference if path exists emailAttachmentResource
  • Extract Document Data - Input emailAttachmentResource

Error: Extract Document Data: Image size of the input document is not supported. Minimum size is 50x50 and maximum size is 10,000x10,000.

This DU project worked before when ran locally. And the .pdf file is only 1 page without image.

Any idea why I get this error?

Thanks for the help.

Hi @Mathias ,
The Extract Document Data activity is designed for image-based PDFs.

Solution: Try using the Read PDF Text activity instead of Extract Document Data if the document is text-based.

Regards,
Arivu

@Mathias

Welcome to the community

Even images in email like which are present in signature or other parts also can be part of attachments…so when you do firstordefault it neednot necessarily by pdf …so try to use a where clause as well which checks for .pdf

newEmailAttachments.Select(Function(a) a.LocalPath).FirstOrDefault(function(x) x.ToLower.contains(".pdf"))

Cheers

1 Like