laptop and a wrench

Bug

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

Zuletzt veröffentlicht: November 9, 2015 ArcObjects SDK
Bug-ID-Nummer BUG-000088779
EingereichtJune 30, 2015
Zuletzt geändertJune 5, 2024
Gilt fürArcObjects SDK
Gefunden in Version10.2
BetriebssystemWindows OS
Betriebssystemversion7.0 64 Bit
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Workaround

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;

Schritte zur Reproduzierung

Bug-ID: BUG-000088779

Software:

  • ArcObjects SDK

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln