I have a very simple flow that I created for a SharePoint list whereby if a new item is added to the list I want it to send me an email.
The flow steps read as follows:
For step 1 I've simply added the Site URL and then selected the List Name (Students) from the extracted lists. No filters or additional logic added.
Step 2 uses my personal profile (I'm not sure if this is best practice or not). Perhaps I'm misunderstanding and it actually gets the user's profile who is currently adding the list item?
Step 3 - I've composed the email with the following details:
Note: I've used square brackets to denote tokens with the following parameters [Source: Property]
To [Profile:Email]
Subject: New student, [List: Full name] added to SharePoint
Body:
Hi [Profile: Given name],
A new student was added at [List: created] by [List: Created by DisplayName].
Details:
Student: [List: Full name]
Birth date: [List: Date of birth]
Starting date: [List: Date Started]
Age: [List: Age]
Kind regards,
SharePoint Site
When I test this I receive the emails, but when I look at the "Flow runs for New Student Flow" I see three Succeeded and three Failed runs which matches the exact number of test students I've added.
Note: I received all 6 emails.
Looking at the failed reports the problem is indicated as being in the first step (or at least that's where the red exclamation is).
If I expand the first item I get:
Inputs:
Site URL: ****** (appears correct)
List name: Students (appears correct)
Outputs:
Headers:
{ "Cache-Control": "private", "Date": "Mon, 22 Aug 2016 12:24:17 GMT", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "Content-Length": "4963", "Content-Type": "text/html; charset=utf-8" }
Body:
(And this is where the exception becomes evident)
Detailed Error Information:
ApplicationRequestRouting |
ExecuteRequestHandler |
ApplicationRequestRoutingHandler |
0x80072efe |
http://127.0.0.1:80/datasets/*****/tables/*****/onnewitems?triggerstate=5 |
D:\inetpub\wwwroot\datasets\*****\tables\*****\onnewitems |
Anonymous |
IUSR |
Anyone know what this indicates or how to fix it? I don't know how much simpler I can make the Flow.
Hi Jacques,
Could you send me the flow url which is like this: https://flow.microsoft.com/manage/flows/0ba9f076-60f0-40d0-a17b-024f446c549e? so I can further investigate.
Thanks
Hi,
I would like to second that.
I also have a simple flow that sends an (approval) e-mail when a SharePoint item is created and I have the same result.
The e-mail is sent correctly but the flow shows an error in the Activity tab on the "When a new item is created" step.
HTTP Error 502.3 - Bad Gateway: The connection with the server was terminated abnormally
Most likely causes: The CGI application did not return a valid set of HTTP errors. A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.
More Information: This error occurs when a CGI application does not return a valid set of HTTP headers, or when a proxy or gateway was unable to send the request to a parent gateway. You may need to get a network trace or contact the proxy server administrator, if it is not a CGI problem.
Kind regards,
Henry
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional