Forum Discussion

amaaiia's avatar
amaaiia
Icon for Skilled Sharer rankSkilled Sharer
1 year ago
Solved

Write data from Web connector to lakehouse table

Hi,

I have one Web Connector connected to a web service.

When I cerate a Web activity in a Data Pipeline and I use this connection, it retrieves me data as follows (json objects list):

 

Where each object should be a row in the table.

 

If I try to use the same conneciton in COPY activity, I get an error in the preview of the data:

Rest call failed with client error, status code 404 NotFound, please check your activity settings.
Response: <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

 

Any ideas of how to ingest data from web connector into lakehouse table?

  • Solved.

    RelativePath for Web activity starts with slash, but relative path in COPY activity doesn't start with slash. That's why it said NOT FOUND

7 Replies

  • amaaiia's avatar
    amaaiia
    Icon for Skilled Sharer rankSkilled Sharer

    Solved.

    RelativePath for Web activity starts with slash, but relative path in COPY activity doesn't start with slash. That's why it said NOT FOUND

  • Hello amaaiia 

     

    Save the output of the Web Activity as a variable:
    • Use a Set Variable Activity after the Web Activity.
    • Assign the output of the Web Activity to a variable using dynamic content, such as:

    @activity('WebActivityName').output

    In the Copy Activity settings:
    • Source Tab:
    • Select “Dynamic Content” as your source type. @variables('webData')

    • Map it to the variable containing your JSON data.

    • amaaiia's avatar
      amaaiia
      Icon for Skilled Sharer rankSkilled Sharer

      When I set connection as variable content, it asks me in Source to select a lakehouse table. The source shouldn't be a lakehouse table but the content of the variable itself.

       

       

      • nilendraFabric's avatar
        nilendraFabric
        Icon for Super User rankSuper User

        Use dynamic content optipn from the dropdown and set @variables('webData')