I am trying to execute service tool that written in python with arcpy. When I am executing the service I got submitted... Executing... Failed. I looked the logs, and I got there: Failed to execute(script_name) Error executing tool.
I tested that, and I realized that the script not even start to run. I tried to remove and publish several times with differences, and got nothing.
Details: Windows server 2012 R2 Arcgis server 10.3
After a lot of tests, I realized that this one line of code makes it fails.
arcpy.CreateFileGDB_management(out_folder_path, out_name)
The thing is, I executed it on my computer and it working(that's why I published it successfully) Only at the server it's not working.
The main problem is the createFileGDB_management function. Somebody knows why it doesn't work in the when executing Arcgis service tool in the Arcgis server?