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.
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.
i republish the tool and and got this new error
Seems to be a data problem more than environment.
Was the script tested at Pro and Portal on the same data?
i republish the tool and and got this new error .
I tested the tool on portal with same FC and with another and all failed