Script report error for custom report

Hi Team,
If i use Import Frappe in script report (custom report, not standard), it throws error. If i skip this line, no error but no data extracted. What can be wrong here? please advise.
Thanks.

Hi,

Are creating script reports from the front end? If yes, you may need to add the following line at the end.

result = get_data(filters)

Or you can share the script you used, to help you faster.

Thanks,

Divyesh M.