Search Gmail Emails Block Returning Incorrect Counts and Missing Email Bodies

I’m running into a strange issue with the Search Gmail Emails block and was hoping to get some clarity.

As you can see in the attached screenshot, the block reports 37,576 results, which doesn’t make sense. The query I’m using should only return 7 emails. This is also confirmed by the Update Gmail Labels block, which uses the same query and correctly updates exactly 7 messages.

The inflated result count is confusing, but the bigger issue is with the output data from the Search Gmail Emails block. The block does return a JSON array with 7 email objects, which is correct. However, 5 out of those 7 emails have empty bodies—both plainBody and htmlBody are blank.

All 7 emails definitely have body content when viewed directly in Gmail, so I’m not sure why some of them aren’t being read properly by the block. The behavior seems inconsistent and makes the block pretty unreliable for downstream processing.

Any insight into what’s going on here or whether there’s a known limitation or fix would be greatly appreciated. Thanks!

Hi @bkermen,

I was able to reproduce the issue with the total email count and have flagged it for our engineers to review.

As for the emails that are missing a body, could you share the following details with us?

  • A couple of sample emails as files. You can DM them to me or share them via Google Drive
  • The Debugger log link for a run where the emails are missing body content

Thank you!

I think I may have spotted a pattern with the problematic emails: They all have attachments.

I’ll follow up by sending sample mail files and the debugger link in a direct message.

Hi @bkermen,

Great catch, thanks for flagging this!

I’ve submitted a report to our engineers to investigate further and will follow up as soon as I have an update.

1 Like

Count issue is fixed - still investigating the missing content!

1 Like