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:
- When a new item is created
- Get my profile
- Send Email
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)
HTTP Error 502.3 - Bad Gateway The connection with the server was terminated abnormally
Detailed Error Information:
Module Notification Handler Error Code
| ApplicationRequestRouting |
| ExecuteRequestHandler |
| ApplicationRequestRoutingHandler |
| 0x80072efe |
Requested URL Physical Path Logon Method Logon User
Anyone know what this indicates or how to fix it? I don't know how much simpler I can make the Flow.