Data360 Analyze

 View Only
  • 1.  https type error

    Posted 12-02-2020 00:57

    I am trying to PUT records into a D360 Govern reference list using the http node in Analyse.

     

    the following code works fine in POSTMAN when copied and pasted from Analyze:

    POST /api/v2/assets/3da7196b-4cc5-4b4f-ae59-5a68fb2d5960
    HTTP/1.1
    Host: masterdatapoc.dev.data3sixty.com
    Authorization: key1; key2
    Content-Type: application/json

    [ { "Fields": { "Code": "3", "Name": "Financial Transactions", "Description": "Financial Transactions" } } ]

    I get the following error when pushing this body using Analyze:

    {"type":"error","title":"Invalid Enumeration Value in JSON","message":"assets has error: Could not cast or convert from System.String to System.Collections.Generic.List`1[d360.core.entities.AssetInsert]."}

     

    The body is of type "string". Any idea what is causing this?



  • 2.  RE: https type error

    Employee
    Posted 12-02-2020 07:33

    Can you send a screenshot of the HTTP node's properties from within Analyze? I'm wondering if the HTTP node's Body property is coming in via a static value or a variable. If you're feeding in the payload from an input field, then the Body property would need to be switched to "Body (from Field)" (example below). This is done by clicking the Body property header and switching the dropdown option.



  • 3.  RE: https type error

    Employee
    Posted 12-02-2020 07:34

    Can you please provide details of how the node is being configured.

    Is the body being entered into the 'body' property as a literal or is it being sourced from an input field?

    Is there an error message generated by the HTTP node itself (i.e. in the Errors panel of hte UI) or is the node completing but the HTTP response status message is the error you stated above?

    If the HTTP node itself is failing, can you provide the node log that can be downloaded from the error panel. Setting the 'LogLevel' property in the 'Common' section of the node's properties to a value of 0 will output debug messages to the node error log.

     



  • 4.  RE: https type error

    Employee
    Posted 12-02-2020 08:08

    Can you also confirm that you have set the node's 'Method' property to 'POST' rather than 'PUT'



  • 5.  RE: https type error

    Posted 12-02-2020 22:27

    HI

     

    Thank you for your responses.

     

    Gerard's comment picked up my (rather stupid) error - I had not used the from variable setting.

    Resolved