Has there been any resolution to this problem? I am running into a similar (exact?) situation while trying to migrate some geoprocessing services based on custom DLL's from 10.05 to 10.2.2. I'm getting the invalid tool message for everything I publish. I even took the sample 'Calculate Area' VB code and compiled it as per the instructions (any CPU, registered it with 32bit and 64bit esriregasm.exe, etc.) and it works fine in ArcCatalog 10.2.2 and publishes fine to ArcGIS Server 10.2.2 but when the task is run, the 816 error is always returned. No other messages of any value are to be found anywhere. I was able to open the .rtl file (mentioned in previous post) and rerun it successfully.
Is there a problem with trying to use custom DLL's on AGS 10.2.x 64bit? Any thoughts on where to look would be appreciated.
Hi, Peter
have you fixed the problem? I am stuck with the same problem. so frustrated....
Hi Kevin,
I'm also getting the 000816 error when running my published service. But when I try your suggestion (running it from C:\arcgisserver\directories\arcgissystem\arcgisinput\{service name}.GPServer\extracted\v101\{folder name}) I'm getting the following error:
The value does not exist.ERROR 000732: Template Feature Class: Dataset ServiceName\LayerA does not exist or is not supported.
That occurs in the Create Feature Class function in my model.
I dragged a layer from a mxd to be assigned to the template feature class parameter of this function in the model. Its data source uses a database connection that is registered in the server.
In the C:\arcgisserver\directories\arcgissystem\arcgisinput\{service name}.GPServer\extracted\v101\{folder name} folder I see that the connection file (.sde) is copied so I don't know why it can't found the Layer. Also in the original model, since the MXD is opened when I run it, the reference to the layer is only "LayerA", but in the tool in the published folder the reference changes to "ServiceName\LayerA".
Do you have an idea of what could be happening?
Regards
Sergio,
Based on the error - I'm going to guess you're using the tool in that directory, not the result. The only way you could test run this would be from that directory to drag the RLT into the results window -- this should also add data the the map, then you'd be able to run the tool inside the toolbox, or the result inside the Shared node of the result window. (You need to do this when you've used layers). The ServiceName\LayerA that the GP services expects is correct; the service internally changes this and knows where the data is. As I said, if you add the RLT to your session, you should see a GroupLayer\Layer Name in this way get added. If that layer is broken, you're on your way to identifying your issue. However I suspect this layer will connect fine.
Without knowing much more about your situation, I'd go back and evaluate if you actually need the CreateFeatureClass tool. This tool can be tricky to use in a GP Service as it takes a workspace input parameter and creates derived output. Could you instead use another tool to achieve your goal, maybe CopyFeatures?
Thanks Kevin for your prompt answer. Now I understand better how the published service works. As you said, I tried dragging the RLT to the session and the tool connected fine to the layer and executed correctly.
I was trying to change the use of CreateFeatureClass to CopyFeatures, but I don't think it works, since what I want the tool to do is to receive a SHP file (that can have custom attributes) and append it to my layer so it would have only the attributes of my layer. That's why I was using CreateFeatureClass to create an empty feature class based on my layer, then append the received SHP file, use the CalculteField tool to complete one field and then append this result to the actual layer.
When I use CopyFeatures the features from the SHP file keep their custom attributes and cannot be appended to my layer.
Do you know how can I set the workspace via parameter or other way to the CreateFeatureClass tool to work? Or another way to get the same result with the CopyFeatures or different tools?
Thanks!
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.