1

I get the {'status': '16'} Invalid report \\no such report

(16/02/2023 16:16:04 отредактировано ramzi87)

Тема: I get the {'status': '16'} Invalid report \\no such report

hi,
I am using a python script to send requests to the API I log in successfully and I send this  request (https://hst-api.wialon.com/wialon/ajax.html?svc=report/cleanup_result&params={}&sid='my id') successfully
but went I send this request
(https://hst-api.wialon.com/wialon/ajax.html?svc=report/exec_report&params={"reportResourceId": 21047901, "reportTemplateId": 3, "reportObjectId": 25234991, "reportObjectSecId": 0, "interval": {"from": 1675206000, "to": 1675637999, "flags": 0}}&sid='my id)

I get the {'status': '16'} Invalid report \\no such report

what i am doing wrong hir

the core/search_items request response ({'searchSpec': {'itemsType': 'avl_resource', 'propName': 'reporttemplates', 'propValueMask': '*', 'sortType': 'reporttemplates', 'propType': 'propitemname', 'or_logic': '0'}, 'dataFlags': 8193, 'totalItemsCount': 1, 'indexFrom': 0, 'indexTo': 0, 'items': [{'nm': 'COMPTES ', 'cls': 3, 'id': 21047901, 'mu': 0, 'rep': {'1': {'id': 1, 'n': 'Rapport_Unit_Stops', 'ct': 'avl_unit', 'c': 935}, '2': {'id': 2, 'n': 'Rapport_Unit_Parkings', 'ct': 'avl_unit', 'c': 17361}, '3': {'id': 3, 'n': 'Rapport Global_Standard', 'ct': 'avl_unit', 'c': 62672}, '4': {'id': 4, 'n': 'Rapport_Unit_Trips', 'ct': 'avl_unit', 'c': 22746}, '5': {'id': 5, 'n': 'Rapport_Units_Group_Parking', 'ct': 'avl_unit_group', 'c': 46232}, '8': {'id': 8, 'n': 'Rapport_Global', 'ct': 'avl_unit', 'c': 20028}, '9': {'id': 9, 'n': 'Rapport_SBC', 'ct': 'avl_unit_group', 'c': 65339}}, 'uacl': 17627904754211}]})

2

I get the {'status': '16'} Invalid report \\no such report

Re: I get the {'status': '16'} Invalid report \\no such report

oh!

3

I get the {'status': '16'} Invalid report \\no such report

Re: I get the {'status': '16'} Invalid report \\no such report

bestivfcentre do you have any suggestion

4

I get the {'status': '16'} Invalid report \\no such report

Re: I get the {'status': '16'} Invalid report \\no such report

ramzi87  hello,
If I understand correctly you also try to execute get_report_status request after exec_report request. The get_report_status request should be executed only if “remoteExec”:1 specified in the exec_report request.
When “remoteExec”:1 is specified in the request the report execution makes n the server side and exec_report request respond with empty JSON. In this case, to check current status of execution you need to execute get_report_status request.
If “remoteExec”:1 not specified or set to zero, the report executes on client's side and exec_report respond with complete JSON with report execution data and get_report_status can't be used.
Please, try to ignore get_report_status request in your script and execute further requests to get execution details.

Here you can find all requests related to the report execution -- https://sdk.wialon.com/wiki/en/sidebar/ … ort/report

If you have any additional questions, please, reply here or in direct messages.

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
5

I get the {'status': '16'} Invalid report \\no such report

(19/02/2023 13:52:12 отредактировано ramzi87)

Re: I get the {'status': '16'} Invalid report \\no such report

Zant Hello,
thank you for your replay
oh! I understand the get_report_status wrong
it works fine now but when I execute this (https://hst-api.wialon.com/wialon/ajax.html?svc=report/export_result&params={"format": 8, "outputFileName": "date_test.xlsx"}&sid=my id)
I get this error Report has not been saved{"error":5}

can you give me a full example about execute a report and get it in excel

6

I get the {'status': '16'} Invalid report \\no such report

Re: I get the {'status': '16'} Invalid report \\no such report

ramzi87 hello, error:5 usually means that report result wasn't received and not loaded into the current session.
The example of the report execution can be found here - https://sdk.wialon.com/wiki/en/sidebar/ … es/reports
Please, check your email there should be reply from support@gurtam.com for your request.

Anton Zinovyev
Technical Care Engineer (L2)
Wialon
7

I get the {'status': '16'} Invalid report \\no such report

Re: I get the {'status': '16'} Invalid report \\no such report

zant thank you for your reply everything is ok now You have been very helpful thank you very much