<?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: Point gets added without Attachments using ArcGIS Runtime Xamarin (100.14.1) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1222247#M11431</link>
    <description>&lt;P&gt;I have not been able to reproduce this, although without the full code / repro my repro would be different from your exact case.&lt;/P&gt;&lt;P&gt;I recommend taking a look at our sample code for&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/Forms/Shared/Samples/Data/EditFeatureAttachments/EditFeatureAttachments.xaml.cs" target="_blank" rel="noopener"&gt;EditFeatureAttachments&lt;/A&gt;&amp;nbsp;and comparing that with your app logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 23:13:49 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2022-10-14T23:13:49Z</dc:date>
    <item>
      <title>Point gets added without Attachments using ArcGIS Runtime Xamarin (100.14.1)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1219775#M11411</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ArcGIS Runtime 100.14.1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-07 at 5.30.24 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53063i641AC39431D4B466/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-10-07 at 5.30.24 PM.png" alt="Screenshot 2022-10-07 at 5.30.24 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have a public ArcGIS Feature Server with Attachments enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the rest interface I am able to add attachments to existing points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dummy Sample URL:&amp;nbsp;&lt;A href="https://envugeo.com/arcgis/rest/services/RangeViewProd/RVDataCollection/FeatureServer/0/18447/addAttachment" target="_blank" rel="noopener"&gt;https://domain.com/arcgis/rest/services/ProdFolder/DataCollect/FeatureServer/0/1/addAttachment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However in my Runtime code I am using&amp;nbsp;&lt;SPAN&gt;AddAttachmentAsync with all the correct parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I do not get any exceptions and the point gets added successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I check the Map in ArcGIS Online map viewer I do not see the attachments. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-07 at 5.32.40 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53064i18E75CE64EB05841/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-10-07 at 5.32.40 PM.png" alt="Screenshot 2022-10-07 at 5.32.40 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is this a known issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be very helpful.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public async void AddAttachmentImageInFeature()
        {
            try
            {
                var popupResult = new AddAttachmentModel { filemodelList = null, };
                var result = await Navigation.ShowPopupAsync(new AddAttachmentsPopUpPage(popupResult));
                if (result != null)
                {
                    UserDialogs.Instance.ShowLoading();
                    if (_selectedFeature.CanEditAttachments)
                    {
                        try
                        {
                            foreach (var item in result.filemodelList)
                                await _selectedFeature.AddAttachmentAsync(item.filename, item.contenttype, item.applicationData);
                            ServiceFeatureTable serviceTable = (ServiceFeatureTable)_selectedFeature.FeatureTable;
                            await serviceTable.ApplyEditsAsync();
                            _selectedFeature.Refresh();
                            feature.Refresh();
                            UserDialogs.Instance.HideLoading();
                            await Xamarin.Forms.Application.Current.MainPage.DisplayAlert("Success!", "Successfully added feature and attachment", "OK");
                        }
                        catch (Exception e)
                        {
                            Console.WriteLine(e);
                        }
                    }
                    // Create and remove a graphic from the geometry the user drew
                    if (Helpers.Constant.selectedLayer.name == "AOI Polygon" || Helpers.Constant.selectedLayer.name == "AOI Lines")
                    {
                        Graphic graphic = CreateGraphic(Polygonegeometry);
                        _sketchOverlay.Graphics.Clear();
                        _sketchOverlayforfeature.Graphics.Clear();
                    }
                    CompleteButton.IsVisible = false;
                    AddButton.IsVisible = false;
                    UnduButton.IsVisible = false;
                    IsDrawStart = false;
                    linePoints.Clear();
                }
                else
                {
                    // Create and remove a graphic from the geometry the user drew
                    if (Helpers.Constant.selectedLayer.name == "AOI Polygon" || Helpers.Constant.selectedLayer.name == "AOI Lines")
                    {
                        Graphic graphic = CreateGraphic(Polygonegeometry);
                        _sketchOverlay.Graphics.Clear();
                        _sketchOverlayforfeature.Graphics.Clear();
                    }
                    _selectedFeature.Refresh();
                    feature.Refresh();
                    CompleteButton.IsVisible = false;
                    AddButton.IsVisible = false;
                    UnduButton.IsVisible = false;
                    IsDrawStart = false;
                    linePoints.Clear();
                }
            }
            catch (Exception exception)
            {
                await Xamarin.Forms.Application.Current.MainPage.DisplayAlert("Error adding attachment", exception.ToString(), "OK");
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gurminder&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1219775#M11411</guid>
      <dc:creator>GurminderBharani3</dc:creator>
      <dc:date>2022-10-10T11:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Point gets added without Attachments using ArcGIS Runtime Xamarin (100.14.1)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1219959#M11413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you share the code where you're creating/updating the feature and attachment, adding to the table, and applying the edits to the service?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 16:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1219959#M11413</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-10-07T16:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Point gets added without Attachments using ArcGIS Runtime Xamarin (100.14.1)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1220321#M11419</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3014"&gt;@MichaelBranscomb&lt;/a&gt;&amp;nbsp;I have updated my post with the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1220321#M11419</guid>
      <dc:creator>GurminderBharani3</dc:creator>
      <dc:date>2022-10-10T11:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Point gets added without Attachments using ArcGIS Runtime Xamarin (100.14.1)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1222247#M11431</link>
      <description>&lt;P&gt;I have not been able to reproduce this, although without the full code / repro my repro would be different from your exact case.&lt;/P&gt;&lt;P&gt;I recommend taking a look at our sample code for&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/main/src/Forms/Shared/Samples/Data/EditFeatureAttachments/EditFeatureAttachments.xaml.cs" target="_blank" rel="noopener"&gt;EditFeatureAttachments&lt;/A&gt;&amp;nbsp;and comparing that with your app logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 23:13:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/point-gets-added-without-attachments-using-arcgis/m-p/1222247#M11431</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-10-14T23:13:49Z</dc:date>
    </item>
  </channel>
</rss>

