Skip to main content
Question

Cant access Download URL from automation


afod
Contributor
Forum|alt.badge.img+6
  • Contributor

I am running an automation process that collects some data via a webhook ,does some processing then outputs some shapefiles. I am trying to extract the URL to the download zip that you get when you run the workspace outside the automation from a workspace app or just run on flow itself.

The issues im having are:

-When the workspace is run within the automation it does not create a zip file in the temp/engineresults like when you run from a workspace app

-If i explicitly define temp/engineresults as the output location, it will write either a hardcoded zipfile name (not the autogenerated one) OR if i remove the .zip extension it writes each individual file - which i dont want

-I am able to extract out the autogenerated URL from the logfile, however because of the bullet points above there is actually no file being created at that URL

I've seen plenty of topics around this URL, but none of them seem to cover my situation, im basically asking what configuration do i need on my writer and then inside my automation, to ensure the download service creates the zipped resource in the correct location that i can then reference via the download URL

3 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • April 9, 2025

I think others have struggled with the same issue in automations… and the data download service

 maybe vote this up Run Workspace in an Automation using Data Download service | Community and consider publishing a topic on the data download service.

You can create another Automation with a Topic trigger set to the success topic you created earlier. The workspace you run as an action after this, would need to extract the job_id from the topic message, then using this call httpcall the FME REST api http://localhost/fmerest/apidoc/v3/#!/transformations/result get /transformations/jobs/id/{jobid}/request to retrieve the transformation result.. extracting the JSON “resultDatasetDownloadUrl”

 


afod
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 9, 2025

Thanks!

I ended up hacking a method together where i hardcoded the output into the download directory using the {eventID}.zip then constructing my URL from that.

I will try the method above as well.


crutledge
Enthusiast
Forum|alt.badge.img+31
  • Enthusiast
  • April 9, 2025
j.botterill wrote:

I think others have struggled with the same issue in automations… and the data download service

 maybe vote this up Run Workspace in an Automation using Data Download service | Community and consider publishing a topic on the data download service.

You can create another Automation with a Topic trigger set to the success topic you created earlier. The workspace you run as an action after this, would need to extract the job_id from the topic message, then using this call httpcall the FME REST api http://localhost/fmerest/apidoc/v3/#!/transformations/result get /transformations/jobs/id/{jobid}/request to retrieve the transformation result.. extracting the JSON “resultDatasetDownloadUrl”

 

That is a great solution ​@j.botterill I know I will come across this need in the near future! Filing this away under “Future Me” :D


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings