Opened 16 years ago

Last modified 13 years ago

#745 closed defect

Error Theming Layer using data source with feature joins — at Version 1

Reported by: CivilEng Owned by:
Priority: high Milestone:
Component: Web API Version: 2.0.1
Severity: critical Keywords: Theming, feature joins
Cc: brucedechant External ID:

Description (last modified by jbirch)

The error is raised when individual distribution is requested.

MgFeatureAggregateOptions aggregateOptions = new MgFeatureAggregateOptions();
aggregateOptions.AddFeatureProperty(UFunctions.GetParameter(this.args, "PROPERTYNAME"));
aggregateOptions.SelectDistinct(true);

// this line raises the exception
dataReader = featureService.SelectAggregate(resId, layer.GetFeatureClassName(), aggregateOptions);

Error: Index is out of range.
StackTrace:
- MgFeatureServiceHandler.ProcessOperation line 83 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\FeatureServiceHandler.cpp
  - MgOpSelectFeaturesSpatial.Execute line 110 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\OpSelectFeaturesSpatial.cpp
  - MgServerSelectFeatures.SelectFeatures line 249 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\server\src\services\feature\ServerSelectFeatures.cpp
  - GetItem line 81 file d:\buildforgeprojects\mapguide_open_source_v2.0\build_27.16\mgdev\common\foundation\System/DisposableCollection.cpp Index is out of range.

I am attaching mgp file and access database in order to replicate the error. the mgp contains the flexible(fusion) and basic layout. Both layouts invoke to thememain.aspx (It's the same that comes with the dotnetviewersample).

I have tested for manage and unmanage data source, just as SHP, SDF, and SQL2008 providers.

Change History (3)

by CivilEng, 16 years ago

Attachment: dataCH.mdb added

comment:1 by jbirch, 16 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.