web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot use Pattern Mat...
Power Automate
Unanswered

Cannot use Pattern Matching on Http Request Trigger

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to create a flow triggered by http request which sends an email. I want to use validation to pattern match the inputs. When I add schema validation, it won't save with the following error: " The 'operationOptions' property is not allowed on the trigger when the workflow contains actions of type 'OpenApiConnection'.'."    Additionally, if I don't add schema validation but add the patterns into the json schema I get the following error when I try to save: 'The 'schema' property of trigger 'manual' inputs of type 'Request' at line '1' and column '577 contains 'pattern' or 'patternProperties' properties. 'Pattern' or 'patternProperties' properties are not supported in trigger json schema, trigger schema validation is enabled when operationOptions set to 'EnableSchemaValidation' or the workflow contains any actions of type 'OpenApiConnection'..'.  Is using patterns to validate the input strings to a web hook flow not supported?

 

Thanks!

Categories:
I have the same question (0)
  • alburgin Profile Picture
    Microsoft Employee on at

    For more context, I am trying the following as the flow

     
     
     

    Flow.PNG

    With the following schema.

    {
        "type""object",
        "title""The Root Schema",
        "description""The root schema comprises the entire JSON document.",
        "required": [
            "imageName",
            "imageVersion"
        ],
        "properties": {
            "imageName": {
                "$id""#/properties/imageName",
                "type""string",
                "title""The Imagename Schema",
                "description""An explanation about the purpose of this instance.",
                "default""",
                "examples": [
                    "commonproxytestacr.azurecr.io/commonproxy"
                ],
                "pattern""^[\\w.]*/[\\w]*$"
            },
            "imageVersion": {
                "$id""#/properties/imageVersion",
                "type""string",
                "minLength"7,
                "title""The Imageversion Schema",
                "description""An explanation about the purpose of this instance.",
                "default""",
                "examples": [
                    "6.2004.17.0"
                ],

           "pattern": "^[0-9]*\\.[0-9]*\\.[0-9]*.[0-9]*$"

            }
        }
    }
  • roryl Profile Picture
    Microsoft Employee on at

     

    Hi alburgin,

     

    Thank you for your post to the community. I worked through the details for this issue but I am not seeing an obvious cause for the problem. We would like to get some more details about the issue to help better understand the cause of this problem. I would like to suggest that you create a support ticket with our team where we can further work to understand why you are seeing this issue. More information about how to do this is available here: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

     

    Thank you,

    Rory

  • Priesh Profile Picture
    5 on at

    I'm having the similar error message as I'm trying to run get items from sharepoint action with HTTP request trigger. 

     

    The error I get is:

     

    Flow save failed with code 'ValueNotSupported' and message 'The trigger 'manual' at line '1' and column '673' is not valid. The 'operationOptions' property is not allowed on the trigger when the workflow contains actions of type 'OpenApiConnection'.'.

     

    Priesh_0-1642761830730.png

     

    Any advice will be appreciated, thanks

  • AndrewTheArt Profile Picture
    Microsoft Employee on at

    As of 2/8/2022 at least, In Power Automate, this error -

     

     

    The 'operationOptions' property is not allowed on the trigger when the workflow contains actions of type 'OpenApiConnection'

     

     

    ... can also happen when you have schema validation turned *on* on an HTTP Request trigger action ("When a HTTP request is received").

     

    (Presumably, changing *any* setting on the HTTP Request trigger in PA will cause the same error message - but I have not tested this).

     

    Make sure to turn this, and possibly any other setting, off, if you had turned them on.

     

    andrew1stein_0-1644344717635.png

     

    Why? I don't know. If you need to do schema validation for an incoming HTTP request in Power Automate, throw in a Parse JSON action after the HTTP request with the schema you expect, instead. 

     

    Thanks,

    Andrew 

     

     

     

  • Priesh Profile Picture
    5 on at

    Thanks, for your message. I worked it out and it was schema validation, I turned it off.  

  • MarcusBW Profile Picture
    8 on at

    Same issue here I guess pattern matching not supported - this seems a bit limiting.

     

    Get the following error both with schema validation enable on the HTTP triger, and when trying to parse the JSON

     

    ActionSchemaNotSupported. The 'schema' property of action 'ParseJson' inputs contains 'pattern' or 'patternProperties' properties. 'Pattern' or 'patternProperties' properties are not supported in the action json schema

  • AndrewTheArt Profile Picture
    Microsoft Employee on at

    Turn *off* Schema validation and you should not get the error.

  • MarcusBW Profile Picture
    8 on at

    I have turned off schema validation - thing is I WANT to catch and report on the errors per the schema validation and in particular invalid email address, invalid phone number.  regex and pattern matching would make this very easy and repeatable to validate a complex payload - if it was supported

     

  • AndrewTheArt Profile Picture
    Microsoft Employee on at

    Agreed, if it was supported.

     

    You can also do a Parse JSON (with schema validation but no pattern matching in the schema), and then use the regex() function in a foreach loop over each row of the output. Of course this is just a workaround and ideally pattern matching would be supported. Has anyone submitted this to the Requests / User voice? 

  • chrismewes Profile Picture
    34 on at

    Anyone found a fix for this?  Still unable to use any of the settings on the Http Request Trigger

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 541

#2
Valantis Profile Picture

Valantis 479

#3
Vish WR Profile Picture

Vish WR 470

Last 30 days Overall leaderboard