Hi all
I have a GP Service published to our dev environment. It consists of one python script that calls a bunch of other python scripts and the end result is a compiled, multi page PDF. The (unpublished) tool works perfect through python and the published tool works perfectly through ArcMap/Catalog and through the REST endpoint.
Ultimately what I want to do is use this GP Service through the Geoprocessing Widget in WAB. I've setup the tool in the dev environment, and published it to our web server. When I run the tool through the Web App I get this result (almost instantly):
I've checked the server logs (debug logging enable) - attached. Its clear the process isn't running. One thing i notice is that the scratch folder is not made in the job directory. It is there when the tool is run from the REST end point.
Does anyone have any idea on why this might be happening? I am prepared to write my only GP widget, but if it can work with the default one then that is desirable
Solved! Go to Solution.
Found the problem. The WAB Widget passes empty fields through as 'NaN' whereas the REST endpoint (and other methods) pass it through as 'Null'.
To fix it I set the default values for the not required fields as 'Null'. It is now working perfectly through WAB
Found the problem. The WAB Widget passes empty fields through as 'NaN' whereas the REST endpoint (and other methods) pass it through as 'Null'.
To fix it I set the default values for the not required fields as 'Null'. It is now working perfectly through WAB
I looking to do something similar. Was your tool a scrip[t tool or Python toolbox? Is the output parameter a "devired" parameter?