Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Troubleshooting Flow Custom Connectors


View products that this article applies to.

This document defines some errors you may see while creating custom connectors in Flow or Power Apps, and provides some troubleshooting steps and possible solutions. 

↑ Back to the top


Custom Connector Test 500 error - Expression value is invalid. The template field is required

Error 500: Expression value is invalid. The template field is required.

CC 500 path

There can be several reasons for what might be causing this issue, but the most common reason is related to how the path and host fields are defined in the swagger. The path of each action is relative to the host of the API you are trying to reach, which ends up getting constructed as <host/path>.

In order for this construction to happen successfully and to properly reach your API's endpoint, the path for the specific action cannot be "/". You should try having a path with “/” and a string value afterwards (such as “/foo/”) instead of just “/”.

Example

Suppose you want to call the endpoint contoso.com/helloworld. When configuring your custom connector, you might see that the swagger is defined as...

CC 500 Invalid swagger

The problem here is that the host has the name of the endpoint we are trying to call, but the path should be the one with the endpoint name of /helloworld. So, the correct way of defining this is...

CC 500 Valid swagger

For more information, see: Swagger Paths and Operations

↑ Back to the top


Keywords: Flow, Custom Connector, powerapps, error

↑ Back to the top

Article Info
Article ID : 4526409
Revision : 6
Created on : 10/15/2019
Published on : 10/15/2019
Exists online : False
Views : 92