cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

Getting error 502 when saving email attachment

I have a flow to save email attachments when new email arrives. But I am getting 500 unknown error yesterday and then today I am getting 502, could someone please help?

 

I am using save email attachment flow but I am getting

Inputs
  • Folder Path
    Inbox
  • Importance
    Normal
  • Has Attachments
    True
  • Include Attachments?
    True
Outputs
  • Headers
    { "Pragma": "no-cache", "x-ms-datasourceerror": "True", "x-ms-request-id": "4158810d-6bba-40c6-94e7-10ebd05ebd42", "X-Content-Type-Options": "nosniff", "Connection": "close", "Cache-Control": "no-cache", "Date": "Tue, 09 Aug 2016 19:59:55 GMT",
  • Body
    { "status": 502, "message": "The service returned invalid JSON.", "source": "127.0.0.1" }

 

 
Create
13 REPLIES 13
Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Hi @JingChang. can you please share your flow id?

 

Go to My flows, then click on the flow, and share the url with me.

 

 

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Hi JmArreola, thanks for following up!

 

I have two flows one saving to storage account and the other savign to one drive, they both run into the same error, on the first activity "On new email", here are the urls

https://flow.microsoft.com/manage/flows/78c3679b-9dbd-47af-adbc-4a6754740e2d

 

https://flow.microsoft.com/manage/flows/d4057d34-a526-474c-8cec-e49464c75b65

 

 

 

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

I left From, To, and Subject Filter empty in the intention of processign all emails, do they have to have some input?

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

okay, @JmArreola, I forgot to tag you in previous conversations, Now with all From, To, Subject Filter specified, I had a successful save of email attachment to one drive.

 

What is the right way to save all email attachments without specifying sender and subject filter?

 

thanks

Jing

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Hi @JingChang the filters are not required. The flow should work with and without them. I already have the logs for the failures of your Flows and we will investigate the reason why they failed.

 

Yesterday we had an issue related to this connector, i will see if your issue is related. In the meantime, just to double check, can you please modify the flow, remove the filters and test it again now?

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Hi @JmArreola sure thing! I will validate and let you know. just to make sure, you mean with From, To, and Subject filter all empty (default to accept all), it should work?  do you just want me to remove subject filters or remove all three?

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Yes @JingChang, I mean the From, To and Subject filter, if you can just modify the flow to be the same as it failed yesterday.

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Hi @JmArreola it failed again,but not on the first "on new email" activity, but on the second "Create File" activity. I am seeign a new error below, what does it mean? could you please help?

 

Meanwhile, I havn't had any success when saving to storage account. I will send out details soon,

 

 

thanks

Jing

 

 

On new email
2s
 
Create file
0s
Error
  • Code
    InvalidTemplate
  • Message
    Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '11': 'The template language function 'concat' parameter values is out of range: evaluating the function would result in a literal of length '226477' which exceeds the limit of '131072'. Please see https://aka.ms/logicexpressions#concat for usage details.'.
Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

Ok @JingChang. Let me take a look on the error

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

@JmArreola is that error a data size limit error? what is the supported data size limit for an email attachment? This is a highly asked customer scenario and we have some customer trying to automate their data pipeline using this. 

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

can you share a screenshot of the CreateFile step?

Highlighted
Microsoft
Microsoft

Re: Getting error 502 when saving email attachment

I will connect with you offline

Highlighted
New Member

Re: Getting error 502 when saving email attachment

Hi, I am getting the same error. Do we have an answer to this?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (5,382)