Error reporting when calling GP tool
Last week, I wrote the code to call the two GP under esri.arcgis.datamanagementtools: createenterpriseodatabase and enableenterprise Geodatabase, that is, to create an enterprise database and convert the database into an enterprise database, but there are always errors. The error contents are as follows:
Executing: EnableEnterpriseGeodatabase
Start Time: Mon Nov 15 14:19:41 2021
Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (EnableEnterpriseGeodatabase).
Failed at Mon Nov 15 14:19:41 2021 (Elapsed Time: 0.00 seconds)
When I manually execute the tool by using the tool in the toolbox provided by ArcGIS, the execution is successful. The execution parameters are as like as two peas, but the code execution is not a problem. Later, it was found that it was an authorization problem. The following permission initialization code was added to the code constructor or loading event. The problem was solved perfectly.
ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop, ESRI.ArcGIS.LicenseLevel.GeodatabaseUpdate);
Read More:
- Log separation using tool cronlog
- [Solved] ERROR: Unable to find the development tool `cc`
- Eclipse start project error: Errors occurred during the build. Errors running builder ‘Integrated External Tool Builder’ on…
- Abnormal [System.InvalidOperationException: custom type mapping for ‘xxx’ is not specified or is not a solution
- AUC Error – ValueError: Data is not binary and pos_label is not specified
- Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- The browser is compatible with IE11 “ReferenceError: ‘Promise’ is not defined” “ReferenceError: ‘Promise’ is not defined”
- [Solved] This is probably not a problem with npm. There is likely additional logging output above.
- [Solved] (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- [Solved] CXF Call webservice Client Error: 2 counts of InaccessibleWSDLException
- [Solved] NPM install error: Maximum call stack size exceeded
- [Solved] pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- Error (17) solves the problem of losing the request header of multithread asynchronous feign call
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- How to Solve Error: “initializer element is not constant”
- [Solved] Parcel Service Error: regeneratorRuntime is not defined
- [Solved] .java.lang.IllegalArgumentException: requirement failed: Can only call getServletHandlers on a runn
- Call to undefined method Illuminate\Foundation\Application::bindShared()
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.