<?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: System.Exception: Invalid argument : Invalid graphic ID! in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579199#M7064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a reproducible app to see the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 17:59:26 GMT</pubDate>
    <dc:creator>AsserSwelam1</dc:creator>
    <dc:date>2015-05-21T17:59:26Z</dc:date>
    <item>
      <title>System.Exception: Invalid argument : Invalid graphic ID!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579197#M7062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm curious is anyone has seen this exception before and had any ideas on resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;Basically we periodically create and remove graphics in a GraphicsOverlay, something akin to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add:&lt;/P&gt;&lt;P&gt;MapPoint pt = new MapPoint(lon, lat, elev, SpatialReferences.Wgs84);&lt;/P&gt;&lt;P&gt;pt = GeometryEngine.Project(pt, myMapRefSsytem) as MapPoint;&lt;/P&gt;&lt;P&gt;Graphic g = new PictureMarkerSymbol();&lt;/P&gt;&lt;P&gt;g.SetSourceAsync(new Uri(iconAnno.IconPath));&lt;/P&gt;&lt;P&gt;myGraphicsOverlay.Graphics.Add(g);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove:&lt;/P&gt;&lt;P&gt;myGraphicsOverlay.Graphics.Remove(f.Gfx);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579197#M7062</guid>
      <dc:creator>RobertKennedy</dc:creator>
      <dc:date>2015-05-21T17:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exception: Invalid argument : Invalid graphic ID!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579198#M7063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently submitted early.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, that typically works fine, but occasionally the arcgis API throws the exception listed below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System.Exception: Invalid argument : Invalid graphic ID!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.Interop.HandleException(Boolean retVal)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayer.RemoveGraphics(Int32[] ids)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.RemoveGraphicsInternal(RemovalInfo removals)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at RuntimeCoreNet.CoreGraphicsLayerWrapper.UpdatePendingGraphics()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase.MapBatchProcess()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Esri.ArcGISRuntime.Controls.ViewBase._batchUpdateTimer_Tick(Object sender, Object e)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherOperation.InvokeImpl()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.DispatcherOperation.Invoke()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.ProcessQueue()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Application.Run(Form mainForm)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at MyApp.Program.Main() in e:\Fuse\Desktop\ESRIMap\source\MyApp\MyMain\Program.cs:line 198&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; at System.Threading.ThreadHelper.ThreadStart()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579198#M7063</guid>
      <dc:creator>RobertKennedy</dc:creator>
      <dc:date>2015-05-21T17:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exception: Invalid argument : Invalid graphic ID!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579199#M7064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach a reproducible app to see the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 17:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579199#M7064</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2015-05-21T17:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exception: Invalid argument : Invalid graphic ID!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579200#M7065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Asser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure thing, I was hoping to see if I'd get any quick responses before needing to pull it out of our product and into a stand alone app, but I can certainly look into that.&amp;nbsp; I'll keep you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bobby &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 10:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579200#M7065</guid>
      <dc:creator>RobertKennedy</dc:creator>
      <dc:date>2015-05-22T10:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: System.Exception: Invalid argument : Invalid graphic ID!</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579201#M7066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bobby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have fixed a couple of issues recently which might give rise to this exception - which is why we are keen to test your scenario on the latest internal build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sharing one layer instance between multiple active MapViews?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 11:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/system-exception-invalid-argument-invalid-graphic/m-p/579201#M7066</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2015-05-22T11:14:40Z</dc:date>
    </item>
  </channel>
</rss>

