<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting exception: &amp;quot;The shape must not have a M value.&amp;quot; in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750958#M9390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... just to clarify ...&lt;/P&gt;&lt;P&gt;The workaround described above won't result in the M values being available on the client. The features (with M) will be added to the feature service and those features will appear in the client table (when refreshed), but without the M coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the features into a GraphicsLayer would give you the ability to use the M values on the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 23:24:10 GMT</pubDate>
    <dc:creator>ThadTilton</dc:creator>
    <dc:date>2015-10-02T23:24:10Z</dc:date>
    <item>
      <title>Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750953#M9385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the WPF runtime SDK v 10.2.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. : ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked in my map, and it says that the layer I'm referencing supports M values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this particular problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 17:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750953#M9385</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-09-29T17:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750954#M9386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you post the entire section of code where you create a new feature, set the geometry and add to the table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 08:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750954#M9386</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2015-09-30T08:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750955#M9387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I sure can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The graphic being generated is a poly line. And when I disable adding the M value, and I open the data in ArcMap (ArcMap is on a separate computer, so there's no chance it's interfering) the shape field says "Polyline M" for every item in the attributes table. I took this to mean that it &lt;EM&gt;should&lt;/EM&gt; support having custom measure values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, the exception happens (according to my stack trace) in some internal Esri function called InsertRow, which I assume hits the native code because the stack ends there until it re-enters with a method called HandleException (or something like that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty important to our application, we desperately need to be able to set custom measure values for the poly lines, or else our data ends up being wrong in some places. As you can imagine, this would greatly annoy our clients to no end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other note, you may notice in the code that adds the features back to the table that I'm calling .Wait() for each task. This is necessary for our tasks that build the table data. I don't expect that it would cause this issue (considering it works just fine before adding an M value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code to create the feature:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private GeodatabaseFeature CreateFeature(DynamicMapFeature feature, ServiceFeatureTable table)
{
GeodatabaseFeature result = table.CreateNew();

foreach (KeyValuePair&amp;lt;string, object&amp;gt; attrib in feature.Attributes)
{
&amp;nbsp; result.Attributes[attrib.Key] = attrib.Value;
}

var points = new List&amp;lt;MapPoint&amp;gt;();
var latLongBuffer = new StringBuilder(32);
MapPointBuilder builder = new MapPointBuilder(_spatialReference);

foreach (DynamicMapPoint point in feature.MapPoints)
{
&amp;nbsp; if (point.IsLatLong)
&amp;nbsp; {
&amp;nbsp; latLongBuffer.Length = 0;
&amp;nbsp; latLongBuffer.Append(point.X);
&amp;nbsp; latLongBuffer.Append(", ");
&amp;nbsp; latLongBuffer.Append(point.Y);

&amp;nbsp; MapPoint mapPoint = ConvertCoordinate.FromDecimalDegrees(latLongBuffer.ToString(), new SpatialReference(26910));

&amp;nbsp; builder.X = mapPoint.X;
&amp;nbsp; builder.Y = mapPoint.Y;
&amp;nbsp; }
&amp;nbsp; else
&amp;nbsp; {
&amp;nbsp; builder = new MapPointBuilder(point.X, point.Y, builder.SpatialReference);
&amp;nbsp; }

&amp;nbsp; // This isn't working.&amp;nbsp; Why?
&amp;nbsp; /*if (point.HasZ)
&amp;nbsp; {
&amp;nbsp; builder.Z = point.Z;
&amp;nbsp; }*/

&amp;nbsp; // This isn't either, but we REALLY need this or else our facility information will be incorrect.
&amp;nbsp; if (point.HasMeasure)
&amp;nbsp; {
&amp;nbsp; builder.M = point.Measure;
&amp;nbsp; }

&amp;nbsp; points.Add(builder.ToGeometry());
}

switch (feature.GeometryType)
{
&amp;nbsp; case FeatureGeometryType.Polygon:
&amp;nbsp; result.Geometry = new Polygon(points, builder.SpatialReference);
&amp;nbsp; break;
&amp;nbsp; case FeatureGeometryType.Polyline:
&amp;nbsp; result.Geometry = new Polyline(points, builder.SpatialReference);
&amp;nbsp; break;
&amp;nbsp; case FeatureGeometryType.Point:
&amp;nbsp; result.Geometry = new Multipoint(points, builder.SpatialReference);
&amp;nbsp; break;
}

return result;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code to add a feature back to the table:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ServiceFeatureTable table = _featureTables[bufferIndex];
// At an earlier preparation stage the feature creation code gets put into the _featureBuffers array 
// like so: _featureBuffers[index] = CreateFeature(...);
GeodatabaseFeature[] features = _featureBuffers[bufferIndex];

Task addTask = table.AddAsync(features);

&lt;SPAN style="text-decoration: underline; font-size: 9pt; line-height: 12pt;"&gt;&lt;STRONG&gt;// This is where it fails&lt;/STRONG&gt;&lt;/SPAN&gt;
&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;addTask.Wait();&lt;/SPAN&gt;


Task&amp;lt;FeatureEditResult&amp;gt; syncTask = table.ApplyEditsAsync(false);


syncTask.Wait();


_itemsProcessed = Interlocked.Add(ref _itemsProcessed, syncTask.Result.AddResults.Count(item =&amp;gt; item.Success));


var state = new DynamicJobState(string.Format(Resources.DYNMAP_PROG_FEATURE_PROGRESS,
&amp;nbsp; _layerName,
&amp;nbsp; _itemsProcessed,
&amp;nbsp; TotalFeatureCount,
&amp;nbsp; (decimal)ItemsProcessed / TotalFeatureCount),
&amp;nbsp; ItemsProcessed, TotalFeatureCount);
_progressModel.SetJobState(ref state);


return syncTask.Result;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750955#M9387</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2021-12-12T07:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750956#M9388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been any progress on this since I submitted my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 13:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750956#M9388</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-10-02T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750957#M9389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike -&lt;/P&gt;&lt;P&gt;I gave this a try on my end, and experienced the same issue. I took a closer look and I think I've found the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;When you add a feature layer from a feature service, a local table is created for working with the features on the client. The user can make edits to this table and you can push those edits back up when you want to commit edits to the parent feature service. Attempting to add a new feature with M-values fails when calling FeatureTable.AddAsync. This is an edit to the table on the client. Without successfully making those edits, you can't push the edits to the service (FeatureTable.ApplyEditsAsync, ie).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;I cracked open the local (SqlLite) table and found that the shape field was not configured to use M values for feature coordinates. When looking at the traffic in Fiddler when the service is accessed (and used to create the local table), I can see the request for features does not include "returnM=true", so the features come back without those values. For display efficiency, it's better to exclude extra coordinate information for features (Z or M values, ie) if it's not needed. Unfortunately, there is no way to request that information be included when you need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created an issue (bug) for this, and we can start to address it for a future release. The fix will likely include the ability to specify M or Z values be returned when you need them. By default, these values will probably continue to be excluded for performance reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;One way you can work around the problem is to make the edits directly to the feature service by sending a REST request straight to the service. The service expects features defined as JSON and fortunately, the Graphic class has "FromJson" and "ToJson" methods that greatly simplify that. After a feature is successfully added to the feature service, you can refresh your (local) ServiceFeatureTable to see the update on the client. If you need to manage a set of edits on the client and push them to the feature service later, you might use a GraphicsLayer locally to manage those edits.&lt;/P&gt;&lt;P&gt;I've enclosed a project that uses a helper class ("RestRequest") to apply edits to the feature service and then refreshes the local table to see the edit. Give it a look when you have a chance, hopefully this will be a viable solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thad Tilton, Product Engineer, ArcGIS Runtime SDK for .NET&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 22:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750957#M9389</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2015-10-02T22:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750958#M9390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... just to clarify ...&lt;/P&gt;&lt;P&gt;The workaround described above won't result in the M values being available on the client. The features (with M) will be added to the feature service and those features will appear in the client table (when refreshed), but without the M coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the features into a GraphicsLayer would give you the ability to use the M values on the client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 23:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750958#M9390</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2015-10-02T23:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750959#M9391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to try and integrate this workaround immediately. I'm not too worried about being able to retrieve the M values, just sending them to the local feature service is all I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm doing is generating our centerline data, and then running the MakeRouteEventLayer tool on it via a geo processing package so I can integrate our non-spatial measurement data into the centerline on the map. So as long as the MakeRouteEventLayer can see my custom M values when generating my layers, I should be good to go. Currently I've got it set up in a model to run CreateRoutes on the centerline before MakeRouteEventLayer, but this results in our data being offset by a certain amount. Our clients give us custom measures along their lines so that we can put this data in the correct spot, and hence why I need to be able to set the M value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll report back after I've tested it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750959#M9391</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-10-05T13:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750960#M9392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thad, I would buy you many beers if I could.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The centerline is now storing its measure values and the MakeRouteEventLayer tool is accurately showing our data where it should be.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if only I could modify a geo processing package to connect to an arbitrary database, I'd be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750960#M9392</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-10-05T19:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750961#M9393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And just like that, what was working is now giving me more issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as I mentioned before, I'm using the MakeRouteEventLayer to add non-spatial data that's routed along the centerline.&amp;nbsp; This works great in ArcMap.&amp;nbsp; However, from my code... not so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's what I had prior to correcting the M value issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Query the service feature table for the centerline, and retrive all the IDs and geometry within an Envelope.&lt;/LI&gt;&lt;LI&gt;Retrieve the event data from the SQL server linked by the IDs returned from the aforementioned query&lt;UL&gt;&lt;LI&gt;Convert this data into a feature set for passing to the geoprocessor.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Execute my geoprocessor, passing in the centerline data, and the event data as parameters (Centerline is a Feature Set parameter, and the event data is a record set parameter).&lt;/LI&gt;&lt;LI&gt;Get a feature set returned from the geo processor&lt;/LI&gt;&lt;LI&gt;Add the features as graphics (not a fan of that, I'm going to try and change this to a feature service table).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And prior to adding the M values, this all worked swimmingly (albeit, horrendously slow) except that the measures were off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have my M values, I can't really use the first step any more because the M values are not returned to the client (as you mentioned). Ideally, what I'd &lt;EM&gt;really&lt;/EM&gt; like to do is reference the layer directly in the geoprocessing package; that'd circumvent the issue entirely. Unfortunately, I have no idea how to do that, or even if it's possible? Am I able to reference a layer (that exists in my map package) in the geo processor package without that package needing to contain a snapshot of the layer data? This is because we are working with live data here, and snap shotting just won't cut it unfortunately. Or am I wrong in thinking that the packages take snap shots of data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 00:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750961#M9393</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-10-06T00:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750962#M9394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mike,&lt;/P&gt;&lt;P&gt;How about if you queried the feature service for the features you need (after the Ms are updated)? If you set "ReturnM = true", you'll get the M coordinates included in the result. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #569cd6;"&gt;public&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;async&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;Task&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;FeatureSet&lt;/SPAN&gt;&lt;SPAN style="color: #b4b4b4;"&gt;&amp;gt;&lt;/SPAN&gt; GetFeaturesFromService(&lt;SPAN style="color: #4ec9b0;"&gt;Geometry&lt;/SPAN&gt; filterGeometry, &lt;SPAN style="color: #569cd6;"&gt;string&lt;/SPAN&gt; where, &lt;SPAN style="color: #569cd6;"&gt;bool&lt;/SPAN&gt; includeM, &lt;SPAN style="color: #569cd6;"&gt;bool&lt;/SPAN&gt; includeZ)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; queryTask &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;QueryTask&lt;/SPAN&gt;(&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;Uri&lt;/SPAN&gt;(_serviceUrl));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; filter &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt; &lt;SPAN style="color: #4ec9b0;"&gt;Query&lt;/SPAN&gt;(where);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;ReturnGeometry &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;ReturnM &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; includeM;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;ReturnZ &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; includeZ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filter&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;Geometry &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; filterGeometry;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt; result &lt;SPAN style="color: #b4b4b4;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #569cd6;"&gt;await&lt;/SPAN&gt; queryTask&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;ExecuteAsync(filter);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #569cd6;"&gt;return&lt;/SPAN&gt; result&lt;SPAN style="color: #b4b4b4;"&gt;.&lt;/SPAN&gt;FeatureSet;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750962#M9394</guid>
      <dc:creator>ThadTilton</dc:creator>
      <dc:date>2015-10-09T16:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Getting exception: "The shape must not have a M value."</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750963#M9395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that, I already figured out that the QueryTask will send back the M values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, after I was able to do all that, I ran into an issue with the geoprocessing model/package that I had built to route my non spatial event data. Just can't win sometimes eh?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I posted about the issue here &lt;A href="https://community.esri.com/thread/166538"&gt;Getting exception: " Error code '400' : 'Unable to complete operation.'\Error executing tool.: ERROR 000816: The tool is…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help again, it's much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 19:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/getting-exception-quot-the-shape-must-not-have-a-m/m-p/750963#M9395</guid>
      <dc:creator>MikeWinsor</dc:creator>
      <dc:date>2015-10-09T19:15:35Z</dc:date>
    </item>
  </channel>
</rss>

