Dear Kobo Support Team,
We are currently facing an issue while trying to connect to and refresh a Kobo export file through Power BI/Excel or CSV. The connection fails with the below error message:
Web.Contents failed to get contents from:
https://kobo.unhcr.org/api/v2/assets/??/export-settings/??/data.xlsx
(404): Not Found
It appears that the export link or export setting may no longer be accessible or available.
Could you please assist us in checking the issue and advise on how we can restore the connection or regenerate the export link accordingly?
Note/ I put ”??” to hide the IDs
Your support would be highly appreciated.
Best regards,
@Kal_Lam for your kind support
Hi @ahmedwar, welcome back to the forum!
Have you tried checking whether your project already has an uid_export_setting configured? You can do that by calling:
https://kobo.unhcr.org/api/v2/assets/[your-asset-id]/export-settings/
If an export exists, the response will include a uid along with direct download links (for example data.xlsx or data.csv). You can then use that link to retrieve the export directly.
Let us know what you find — happy to help you move forward.
FWIW there are instructions on how to obtain your synchronous export link here: Using the API for synchronous exports — KoboToolbox documentation
Please note that you will have to perform an Export of some sort (with your desired export settings…) in order for the necessary link to be generated. So if you have never done an export before on the project, then there wont be any links yet.
1 Like