Hi everyone,
We are trying to upload a .eml file to Box using the UiPath Integration Service (Box connector), and we’re running into an issue that only occurs for .eml files — not for other formats like .pdf.
Here’s the setup and what we’ve tried so far:
- We are downloading emails from Office 365 (Outlook) Integration Service and saving them locally as
.emlfiles. - Once the email is saved on disk, we use the Get File or Folder activity to fetch that file from the local path.
- This activity returns an
ILocalResourcevariable as output.
- We then try to pass that resource variable directly into the Box → Upload File activity, which expects an
IResourceinput.
However, during upload, we’re getting the following error:
Error Message:
Upload File: Request failed with error:
ProviderMessage : type - error, status - 400, code - bad_request,
context_info - {errors=[{reason=missing_parameter, name=file_data, message=‘file_data’ is required}]},
help_url - http://developers.box.com/docs/#errors,
message - Bad Request, request_id - [masked]
ProviderErrorCode : 400
RequestId : [masked]
Message : Bad Request
Status code: BadRequest. Error code: DAP-RT-1101.
Interestingly, this issue only happens for .eml files.
If we use the exact same approach for a .pdf file (download → Get File → Upload to Box), the upload works perfectly fine.
What we’ve observed / tried:
- The Box Upload File activity expects an
IResource. - The Get File activity only gives an
ILocalResource. - For
.emlfiles, it seemsfile_datamight not be getting populated internally even after conversion or direct pass. - Tried reading bytes manually and recreating a
FileResource, but the constructor (New FileResource(file_name := ..., file_data := ...)) isn’t resolving in the Integration Service SDK.
Questions:
- Is this a known limitation or bug with
.emlfile uploads via the Box connector? - Has anyone found a reliable way to convert an
ILocalResourceto a validIResource(withfile_datapopulated) for.emlfiles? - Are
.emlfiles treated differently in Integration Service serialization compared to other file types like.pdf?
Any suggestions or working examples would be appreciated!
Environment:
***UiPath Studio:[2024.10. and 2025.1]
***Integration Service: Office 365 (Outlook), Box
***Packages: UiPath.IntegrationService.Activities (latest)
***Error reproducible:
Yes, 100% when uploading
.eml
