Select to view content in your preferred language

Web tool needs an environment for temporary files.

72
1
a week ago
AidanMurray191872
New Contributor

I am looking to take a geoprocessing tool that utilizes a couple temporary files in its workflow and turn it into a web tool. Basically; how do I assign and manage a workspace in the portal environment so this can run, creating and editing a number of files, possibly archiving some as well? Ideally I could specify a file folder on the portal server box itself and reference it from the tool.

0 Kudos
1 Reply
DavidSolari
MVP Regular Contributor

For reading files, if your script references a file the analyzer should let you know if it'll be copied to the server. They are stored near the tool in the server directories and the path rewriting process should point to the new copies

For writing files (and then reading them back), arcpy.env.scratchFolder works just fine with web tools, the service will manage the appropriate directory for scratch work.

0 Kudos