# Outlook get emails - missing attachments

**URL:** <https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086>\
**Category:** Help\
**Tags:** mail, activities\
**Created:** [November 19, 2018, 12:28pm UTC](https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086 "2018-11-19T12:28:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/markus/32/177479_2.png) [@markus](https://forum.uipath.com/u/markus)\
**Post date:** [November 19, 2018, 12:28pm UTC](https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086/1 "2018-11-19T12:28:57Z")

</div>

#### Scenario:

When using “Get outlook mail messages” UiPath grabs a list of all messages from outlook. In case one email contains more attachments and one attachment of them is empty (e.g. empty text file) UiPath looses the attachments of this email coming in the list after the empty attachment.

E.g.  
One e-Mail with 8 attachments. All files are the same except the 4th one which is completely empty.  
In this case UiPath only recognizes 3 attachments. All attachments listed after the empty attachment are lost!

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/1/21a9eef9e0267515bf274b330ffaa4be6a1d6795.png)

#### Steps to reproduce:

- Create one email
- Attach an empty file (empty text-file, file-ending is not relevant - in tests i usually used “test.txt”).
- Attach other attachments (same or different files)

!!! THE EMPTY FILE SHOULD BE AT THE BEGINNING OF THE LIST OF ATTACHMENTS !!!

Send this email to an account you can read with outlook from

- Use get Outlook mail messages
- print out the number of attachments attached to the email

#### Current Behavior:

All attachments before the empty file are read  
All attachments after the empty file are LOST

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/1/21a9eef9e0267515bf274b330ffaa4be6a1d6795.png)

#### Expected Behavior:

All attachments are read / available in UiPath

 ![image](https://global.discourse-cdn.com/uipath/original/3X/2/1/21a9eef9e0267515bf274b330ffaa4be6a1d6795.png)

#### Studio/Robot/Orchestrator Version:

Last stable behavior: -  
Last stable version: -  
OS Version: Windows 10  
Others if Relevant: (workflow, logs, .net version, service pack, etc):

---

<div class="post-metadata">

**Author:** ![Manjuts90](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/manjuts90/32/176617_2.png) [@Manjuts90](https://forum.uipath.com/u/Manjuts90)\
**Post date:** [November 20, 2018, 2:47am UTC](https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086/2 "2018-11-20T02:47:49Z")

</div>

@markus I have recreated the steps as u said, uipath is downloading all files from outlook, i have included 2 empty files in between. It is working fine for me.

---

<div class="post-metadata">

**Author:** ![markus](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/markus/32/177479_2.png) [@markus](https://forum.uipath.com/u/markus)\
**Post date:** [November 20, 2018, 9:09am UTC](https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086/3 "2018-11-20T09:09:46Z")

</div>

thank you very much for your answer. I figured out that my UiPath.Mail.Activities was one version behind the current one. With the new version 1.2 the problem is solved 🙂 Thank you for the tryout.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 23, 2018, 9:09am UTC](https://forum.uipath.com/t/outlook-get-emails-missing-attachments/77086/4 "2018-11-23T09:09:50Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
