We have an automation where we store email information into a queue(including InternetMessageID). Then it is picked up by an RPA workflow (web studio)that uses Get Email by ID Activity and uses the InternetMessageID in the EmailID field to get the email. It was working fine but lately, it has been throwing an error saying:
“The requested name is valid, but no data of the requested type was found.”
What could have gone wrong? or is there a better way to get the email by using InternetMessageID?
@Ezekiel_Gomez1
Check if you are searching for the message in the correct mailbox through the Integration Service connector.
The message is correct and is in the correct mailbox connector as well. The thing is the error happens intermittently so most of times after the job faulted, I will try to retrieve the email using the InternetMessageID on debug mode, and it goes through.
Ohh ok @Ezekiel_Gomez1 then in that case it’s better to add retry mechanism using Retry Scope activity.
The issue could be due to backend of the Integration services.
Hi @Ezekiel_Gomez1
May be an intermittent lookup issue in the mail connector, the InternetMessageID is valid but not yet searchable, so the activity sometimes returns no data, and I recommended fix is to retry the Get Email by ID call or use a search‑based query first before fetching the message.
Happy Automation
Thank you for the input guys, we added a retry and will continue to observe the runs. hope this fixes it.
1 Like