Skip to main content
Community site session details

Community site session details

Session Id : WhQ/wXD34Pa/yuteCMUOqn
Power Automate - Using Flows
Unanswered

MS Flow - Failed to Create Flow using Flow management "Create Flow" connector 'Create_Flow' of type 'OpenApiConnection' is not valid

Like (0) ShareShare
ReportReport
Posted on 14 Oct 2020 13:30:14 by

Hi ,

I am trying to create a flow inside flow by using a flow managment connectors like "Get flow" & "Create flow".
for this I am referring below article which is similar to my requirement.

http://www.myfatblog.co.uk/index.php/2020/02/using-powerautomate-deploy-powerautomate-flow-deploying-flow-sounds-like-inception/ 

I have created flow based on the above article but I am facing below Issue.

Error :The 'inputs.parameters' of workflow operation 'Create_Flow' of type 'OpenApiConnection' is not valid. Error details: The API operation does not allow writing a value for parameter 'Flow/properties/connectionReferences[0]/displayName'. This parameter is read only.

 

I am able to Create a dynamic definition Properly but still facing issue at the step of  "Crate Flow" 

 

Please find below screen for my flow.

Screen1Screen1

 

22.PNG

"Create Flow" Step with parameter :

 

3.PNG

 

Also Providing definition that I have created dynamically:

 

{
  "contentVersion""1.0.0.0",
  "parameters": {
    "$connections": {
      "defaultValue": {},
      "type""Object"
    },
    "$authentication": {
      "defaultValue": {},
      "type""SecureObject"
    }
  },
  "triggers": {
    "When_a_file_is_created_(properties_only)": {
      "recurrence": {
        "frequency""Minute",
        "interval"5
      },
      "splitOn""@triggerOutputs()?['body/value']",
      "metadata": {
        "flowSystemMetadata": {
          "swaggerOperationId""GetOnNewfileItems"
        }
      },
      "type""ApiConnection",
      "inputs": {
        "host": {
          "apiId""/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
          "connectionName""shared_sharepointonline",
          "operationId""GetOnNewFileItems"
        },
        "method""get",
        "path""/datasets/https%3A%2F%2Fm365x597488.sharepoint.com%2Fsites%2Fpwa%2FFlow%2520as%2520Template/tables/bdfd1579-a01f-44a7-86b8-d02917d7fe7b/onnewfileitems",
        "queries": {
          "folderpath""/Shared Documents"
        },
        "authentication""@parameters('$authentication')"
      }
    }
  },
  "actions": {
    "Send_an_email_(V2)": {
      "runAfter": {},
      "type""OpenApiConnection",
      "inputs": {
        "host": {
          "apiId""/providers/Microsoft.PowerApps/apis/shared_office365",
          "connectionName""shared_office365",
          "operationId""SendEmailV2"
        },
        "parameters": {
          "emailMessage/To""@triggerOutputs()?['body/Author/Email']",
          "emailMessage/Subject""Test email for flow as template",
          "emailMessage/Body""<p>FYI</p>"
        },
        "authentication""@parameters('$authentication')"
      }
    }
  },
  "description""Testing new description"
}

 

  • gayathri Profile Picture
    8 on 05 Sep 2022 at 11:24:46
    Re: MS Flow - Failed to Create Flow using Flow management "Create Flow" connector 'Create_Flow' of type 'OpenApiConnection' is not valid

    @ham

    In this

    json(outputs('Get_connections_file')?['body'] what is get_connections_file? a action, then what action should I use for that?

  • tapan_sam Profile Picture
    23 on 08 Mar 2021 at 06:20:00
    Re: MS Flow - Failed to Create Flow using Flow management "Create Flow" connector 'Create_Flow' of type 'OpenApiConnection' is not valid

    Hello @ham , Thanks for this workaround. This works.

  • ham Profile Picture
    on 16 Oct 2020 at 11:17:39
    Re: MS Flow - Failed to Create Flow using Flow management "Create Flow" connector 'Create_Flow' of type 'OpenApiConnection' is not valid

    Hello, 

     

    This is currently a limitation. When the JSON of the connection references is exported, it includes the display name of each connection. When trying to import those connections, it still includes that display name, causing the error.

     

    Below is the workaround for this. Basically, you have to do is load the connections JSON, iterate through each one, remove the displayName property, assemble that into an array, and pass that to the 'Create Flow' step.

    1. Add a new 'initialize variable' step (after getting the connections file content):
      1. Name: ConnectionsJson
      2. Type: Array
      3. Value: json(outputs('Get_connections_file')?['body'])
    2. Add a new 'initialize variable' step:
      1. Name: NewConnectionsArray
      2. Type: Array
      3. Value: [nothing]
    3. Add a new 'apply to each' step.
    4. Add a new 'compose' step inside the 'apply to each':
      1. Input: removeProperty(items('Apply_to_each'),'displayName')
    5. Add a new 'append item to array' step inside the 'apply to each':
      1. Name: NewConnectionsArray
      2. Value: Output (from 'Compose')
    6. Update the 'Create Flow' to use the 'NewConnectionsArray' variable.

    Best Regards,

    Harish M

    Please mark as verified if the answer is helpful.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow
Loading complete