cannot run custom tool on Portal for arcgis

677
5
08-11-2021 02:16 PM
MoEbra
by
New Contributor

I wrote a script and convert it into python UI toolbox, I test the tool a lot and it works well, then I cleared ArcGIS Pro cache and Geoprocessing history then create new FC in Enterprise gdb and run the tool on it to be able to share it as Webservice tool, and shared also the FC to my portal for arcgis.

Enterprise Indo: version 10.8.1 - windows 10 linked with domain

                              portal for arcgis/ArcGIS Server/ data store / web adaptor (portal and server are linked together)

the problem is i cannot run this tool on the enterprise (WebMap) I trying to run it on the registered FC (Gdb) which successfully validate in ArcGIS Server Site (DataStore) but the following error is appears.

MoEbra_0-1628716464520.png

 

 

 

0 Kudos
5 Replies
DavinWalker2
Esri Contributor

Are able to provide your script or at least line 14 and a few before and after it?

The problem though seems to be that your tool for whatever reason is trying to convert '30-14' into a float, but it will not be able to because it has the string has characters that aren't numbers.

0 Kudos
MoEbra
by
New Contributor

i republish the tool and and got this new error 

MoEbra_2-1628761797436.png

 

 

 

 

0 Kudos
MichaelGinzburg
Occasional Contributor II

Seems to be a data problem more than environment.

Was the script tested at Pro and Portal on the same data?

0 Kudos
MoEbra
by
New Contributor

i republish the tool and and got this new error .

MoEbra_2-1628761797436.png

 

 

 

 

0 Kudos
MoEbra
by
New Contributor

tested the tool on portal with same FC and with another and all failed

0 Kudos