Good afternoon guys, I’m encountering an error when trying to import a report. When I use the get_report command it brings me the answer, however when passing this return to import_export I get the following error: ValueError: can only parse strings, then I used tostring inside the import_report, now I get the following message: An error occurred Response Error 400. A REPORT element is required, inside the output of get_report there is the tag report that the import_report requests in the documentation.
Hey. You will need to have a valid formatted XML-Report that you have exported on a machine before. This report can than be imported by reading the XML-Report file and passing it to the import_report function.
AFAIK you need the outer <report></report> tag within you string. If you look carefully into an XML report, you can see, that it contains a lot of tags, that are ordered like this: