Forum Discussion

girishtharwani2's avatar
girishtharwani2
Helper III
1 year ago
Solved

Logic app in Fabric

Hi,

 

I am trying to execute the logic app which parses JSON and sends a mail in tabular format.

The logic app works well when executed with synapse pipeline however same logic app with same parameters are giving error in fabric ADF.

Can someone please assist.

 

Thanks,

Girish

  • nilendraFabric's avatar
    nilendraFabric
    1 year ago

    Hi girishtharwani2 

     

    Thanks for getting back.

     

    I think from the first screenshot and this Fabric screenshot it is clear that Fabric is sending text and Logic app is expecting Json, and thats why failed.

     

    In Fabric Data Pipelines, you can override the “Content-Type” header by adding it in the Settings for your Web activity. First, add a Web activity to your pipeline. Then select the activity, go to the Settings tab, and configure headers. Create a header named `Content-Type` and set its value to `application/json` so that Logic Apps or similar endpoints recognize the request as JSON.


    Hope this is will resolve the issue. 

    Please accept this solution and give kudos if this is helpful 

    Thanks

5 Replies

  • Hello girishtharwani2 

     

    Logic App that is successfully invoked from Azure Data Factory (ADF) can also be invoked from a Microsoft Fabric Data Pipeline. Both platforms use similar mechanisms for invoking external services, such as HTTP requests via “Web Activities.”

     

    Could you please share the authentication method in both platforms please.

     

    and could you confirm there are no changes in data format etc

     

    thanks

  • Authentication method is anonymous in both platforms and there is no change in data or data formats.

    • girishtharwani2's avatar
      girishtharwani2
      Helper III

      One thing I noticed it content type got changed while calling from fabric: -

       

      Any leads how to resolve it ?

       

      Thanks,

      Girish

      • nilendraFabric's avatar
        nilendraFabric
        Super User

        Hi girishtharwani2 

         

        Thanks for getting back.

         

        I think from the first screenshot and this Fabric screenshot it is clear that Fabric is sending text and Logic app is expecting Json, and thats why failed.

         

        In Fabric Data Pipelines, you can override the “Content-Type” header by adding it in the Settings for your Web activity. First, add a Web activity to your pipeline. Then select the activity, go to the Settings tab, and configure headers. Create a header named `Content-Type` and set its value to `application/json` so that Logic Apps or similar endpoints recognize the request as JSON.


        Hope this is will resolve the issue. 

        Please accept this solution and give kudos if this is helpful 

        Thanks