laptop and a wrench

Error

The MakeQueryLayer (Data Management) tool returns an error 000623 when the input_database parameter is supplied with an IWorkspace object.

Última publicación: November 9, 2015 ArcObjects SDK
Número de ID del error BUG-000088779
EnviadoJune 30, 2015
Última modificaciónFebruary 11, 2025
Relacionado conArcObjects SDK
Versión encontrada10.2
Sistema operativoWindows OS
Versión de sistema operativo7.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

This is by design. The query expression does not take a IWorkspace object.

Solución alternativa

1. If using a connection string or property set to open the workspace using the connection information to create a connection file on disk and then utilize this connection path to execute the MakeQueryLayer tool. 2. Create the QueryLayer in ArcObjects without using the GeoProcessor as shown below: var factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory"); var wsf = Activator.CreateInstance(factoryType) as IWorkspaceFactory; var workspace = wsf.Open(propSet, 0) as ISqlWorkspace; var query = string.Format("SELECT {0} FROM {1}", "*", TableName); var queryDesc = workspace.GetQueryDescription(query); queryDesc.OIDFields = ObjectID; string name; workspace.CheckDatasetName(TableName, queryDesc, out name); var featClass = workspace.OpenQueryClass(name, queryDesc) as IFeatureClass;

Pasos para reproducir

ID del error: BUG-000088779

Software:

  • ArcObjects SDK

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga