Getting exception: "The shape must not have a M value."

7226
10
Jump to solution
09-29-2015 10:03 AM
MikeWinsor
New Contributor III

Using the WPF runtime SDK v 10.2.6

I have a ServiceFeatureTable, and I'm adding new poly line features to it. When I was adding poly lines with only the X and Y assigned to the MapPoint values, everything worked great.

Now I need to set the M value on the MapPoint in the poly line. Unfortunately, every time I call AddAsync, it gives me an exception "The shape must not have a M value. : ".

I've looked in my map, and it says that the layer I'm referencing supports M values.

Does anyone know how to solve this particular problem?

Thanks

0 Kudos
10 Replies
MikeWinsor
New Contributor III

Thad, I would buy you many beers if I could.

The workaround works even better than I hoped (it actually cut 6 minutes off of my map generation time... down from 16 minutes to 10 minutes for the biggest layer).

The centerline is now storing its measure values and the MakeRouteEventLayer tool is accurately showing our data where it should be. 

Now, if only I could modify a geo processing package to connect to an arbitrary database, I'd be set.

Thanks again!

0 Kudos