Forum Discussion

THANGAVELUM's avatar
THANGAVELUM
Occasional Visitor
3 years ago

While trying to import JSON/XML file in data source, it throws "Unsupported file format"

While trying to import JSON/XML file in data source using "import properties from external file", it throws "Unsupported file format". 

The file format is JSON/XML in the data location, which is a valid format. On choosing Data Source prior to it, the issue is found.

File used : testdata.json and for XML, testdata.xml

The error while importing the appropriate file for JSON is mentioned below,

 

 

5 Replies

  • fgimenes's avatar
    fgimenes
    Occasional Contributor

    I am having the same issue. Does anyone know any workaround to solve this?

  • nmrao's avatar
    nmrao
    Champion Level 3
    Would it be possible to add the contents of the json or XML file which was used as properties? Definitely some formatting issues.
    • fgimenes's avatar
      fgimenes
      Occasional Contributor

      This is the content:

      {
      "scenario" : "Negative",
      "username": "wrongUsername",
      "name": "Blah"
      }

  • nmrao's avatar
    nmrao
    Champion Level 3

    If the properties are so simple, you can save them as ".properties" file and see if that works for you.

    • fgimenes's avatar
      fgimenes
      Occasional Contributor

      The problem is that I was never able to import any json file, simple or complex, it always gives me the same error. So I pasted a simple structure to show that even that it doesn't work.