HOW TO
Custom functions tools (DLLs) that are used in either Desktop or 64-bit Background Processing must be installed properly to be used in both products. Instructions provided explain how to properly register a function tool. Without these steps, the following error may be encountered when running a function tool in the background:
"000816: The tool is invalid"
The following steps explain how to properly register a function tool.
cd C:\Program Files (x86)\Common Files\ArcGIS\bin
ESRIRegAsm.exe C:\tmp\GPCalculateArea.dll
Note: Turning off background geoprocessing enables foreground processing, which only runs in 32-bit mode.The ESRIRegAsm utility successfully set references for the tool in the 32-bit registry locations.
ESRIRegAsm.exe C:\tmp\GPCalculateArea.dll /regfile:tool.regThe .reg file is created at the same location as the DLL.
c:\windows\system32\cmd.exe
regedit c:\tmp\tool.regAccept the warning by pressing Yes to continue. A message indicating the keys and values have been successfully added to the registry should appear.
Get help from ArcGIS experts
Download the Esri Support App