Forum Discussion

prokhorovd's avatar
prokhorovd
Copper Contributor
Aug 15, 2024

Logic Apps - Tracked properties for HTTP action`s INPUTS not working

 

Can someone help me and tell me why tracked properties for HTTP action`s INPUTS not working
I get an error:
TrackedPropertiesEvaluationFailed

 

Failed to evaluate the tracked properties for action 'HTTP_2'. Error details: 'The template function 'inputs' is not defined or not valid.'.
In case for OUTPUTS everything works
 
My tracked properties are
@{outputs('HTTP_2')?['statusCode']}
@{inputs('HTTP_2')?['uri']}

2 Replies

  • prokhorovd 

    The issue occures because the inputs function may not be directly supported in tracked properties for HTTP actions in Logic Apps. The error TrackedPropertiesEvaluationFailed indicates this limitation.

    Fix Options:
    Use Variables: Capture the HTTP input into a variable before the action and reference the variable in tracked properties:
    "trackedProperties": {
      "uri": "@{variables('HttpInputUri')}"
    }

    Use Action Metadata: Reference the input directly using:
    "trackedProperties": {
      "uri": "@{action('HTTP_2').inputs.uri}"
    }

    Check Runtime Version: Ensure you're using the latest Logic Apps runtime, as older versions may have limitations.

    Reference URL: https://learn.microsoft.com/en-us/azure/logic-apps/monitor-workflows-collect-diagnostic-data?tabs=consumption

     

  • Try below:

     

    1. Check for Updates: Ensure that your Logic Apps environment is up-to-date. Sometimes, bugs are fixed in newer versions.

    2. Use Outputs Instead: As a workaround, you can try using outputs instead of inputs for tracked properties, since you mentioned that outputs are working correctly.

Resources