This content has been marked as final. Show 4 replies
I'm not able to reproduce this behavior using 10.0 or our current builds. A couple of questions that will help narrow this down:
- Have you confirmed that the ModelName is set in the 9.3.1 SP2 geodatabase?
- Are you using ArcGIS 10.0 without any patches or hot fixes?
- Can you supply the code you are using to retrieve the ModelName, I may be doing something differently in my repro case.
Finally, what type of ArcSDE database are you using; Oracle, SQL Server, etc? What is the size of the database? We may need to get the database in house to reproduce the issue.
I'll email you off-line
I can also reproduce this with a File geodatabase.
I have an ArcGIS 9.3.1 File geodatabase, and the ModelName of teatureclasses and tables is populated.
When I use ArcCatalog 10.0 to create a new ArcGIS 10.0 File geodatabase, then copy the data from the ArcGIS 9.3.1 File geodatabase, and paste it into the new ArcGIS 10.0 File geodatabase, all the Modelnames are blank in the ArcGIS 10.0 File geodatabase.
It does not appear to be exclusively an ArcSDE issue.
ESRI was able to reproduce the issue, but apparently the IModelInfo.Modelname was not blank in the databases.
Something broke in the 9.x to 10.0 upgrade, when the casting an IDatasetName object to IModelInfo, as in this example:
If TypeOf pDatasetName Is Geodatabase.IModelInfo Then
pModelInfo = pDatasetName
sTable = pModelInfo.ModelName.ToString
Debug.Print("Modelname: " & stable)
ESRI found that if you open the IDatasetName objects as an IDataset object, and then cast from the IDataset to IModelName; it should print out the ModelName correctly.
This issue is logged as NIM061873 and ESRI will be addressing this issue in SP2 for 10.0