Select to view content in your preferred language

File Output Paramter in WebTool that was published from a Notebook in ArcGIS Online

300
1
07-22-2024 08:50 AM
Sven_Harpering
Esri Contributor

Hello everyone,

we have created a notebook in ArcGIS Online that creates a Word document based on various parameters. If we let the notebook run on its own, everything works. The output is written to the "arcgis/home" directory.

The next step would be to publish the notebook as a web tool in ArcGIS Online. To do this, we wanted to define an output parameter. The settings currently look like this:

Sven_Harpering_0-1721662709548.png

A first question would be what we have to specify as a default value in JSON format. According to the documentation, it has to be a URL to an existing output? Currently, we have simply uploaded the Word template as an item in ArcGIS Online and specified the URL to it.

Afterwards we added this snippet at the end of the notebook:

Sven_Harpering_1-1721663013479.png

The name of the variable equals the output variable name for the word file.

After publishing, we open the tool in map viewer and want to run it. Here we immediately notice that the output parameter does not appear in the GUI.

Sven_Harpering_2-1721663084034.png

The tool can still be started, but aborts with an error message in the output parameter area. 

Sven_Harpering_3-1721663287851.png

It seems that the error is in the output parameter section. Do you have any clue, what we are doing wrong in the whole output parameter section (Notebook config, etc.)? The input parameters work.

Best

Sven

 

 

 

 

Passionate about GIS and on the journey as an instructor for analytical insights.
0 Kudos
1 Reply
xlt208
by Esri Contributor
Esri Contributor
0 Kudos