Data360 Analyze

 View Only
  • 1.  Unable to put the content of a file to Azure

    Posted 04-04-2023 04:02

    Hello
    I am trying to write a file in an Azure container via the HTTP node and the PUT method.
    In the body I pick "Body from field" and specify the input field name that has the path to the file to upload.
    I then select ContentType: text/csv since I will upload a csv file.
    The API call works, but strangely the file that is created in Azure contains only one row: the path to the file I want to download.
    It is like the node does not understand that the body should include the file content instead of the value of the path.
    Am I wrong? 
    Thank you
    Sebastien



    ------------------------------
    Sébastien Godet
    E.ON Sverige
    MALMOE
    ------------------------------


  • 2.  RE: Unable to put the content of a file to Azure

    Employee
    Posted 04-04-2023 10:32

    When the (Body from field) option is chosen for the HTTP node's 'Body' property the value for this property is sourced from the input field with the name specified.

    Some nodes such as the JSON Data node provide a (from Filename) variant for certain properties that allow you to specify the name of the file containing the source data. Unfortunately, the HTTP node does not support this option. 

    You would need to import the data from the file into a field in the Analyze data flow (e.g. using the Input Raw node) and then configure the HTTP node to use the field that contains the imported data



    ------------------------------
    Adrian Williams
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: Unable to put the content of a file to Azure

    Posted 04-06-2023 07:23

    Thank you Adrian for confirming.
    It worked well to use the raw_input node and to send it to Azure.
    All the best.
    Sebastien



    ------------------------------
    Sébastien Godet
    E.ON Sverige
    MALMOE
    ------------------------------