I have created a simple model in ArcMap 10.8.1 to create Feature Class from CSV file using 'Make XY Event Layer" and 'Feature Class to Feature Class tool and I have successfully published a GP service with this model.
But when access the GP service from REST when I am uploading a csv file and providing input as "itemId":"abc....." I am getting the error: "Invalid value for parameter .. Details: Unable to parse JSON value of the parameter.'
I have tried to upload a json file but no luck.
Can anyone help on this ?
TIA
try removing all the parameters and run the model in the model builder to see if it runs properly.
The model runs fine with Parameters enabled and GP service published successfully. The problem is when I upload a new CSV and use that as input parameter it fails from REST .
Hi, I am facing the same problem, by any chance did you manage to find the error?
try editing the json to match the values in the original CSV
Thanks for the answer, but I found the error, I was naming differently the parameter in swagger, after using the same parameter name indicated in :
https://<analysis url>/server/rest/services/task/GPServer/task
the problem got fixed and the tool ran.
Best,
JM