<?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: How to get the proper reason for Edit Operation Failed.. error. in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066414#M6705</link>
    <description>&lt;P&gt;Yes, you are right. I know the reason. But I want to display the error on UI so needed the particular reason why the edit operation failed. I am able to get the error message as "Edit Operation failed.". But I want to display Edit operation failed due to a data type mismatch.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 15:17:28 GMT</pubDate>
    <dc:creator>TapasChakrabarty</dc:creator>
    <dc:date>2021-06-09T15:17:28Z</dc:date>
    <item>
      <title>How to get the proper reason for Edit Operation Failed.. error.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066268#M6702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to edit a Date field on the attribute table with some other data type. In this case, my EditOperation is getting failed which is correct. But when I try to capture the ErrorMessage of the EditOperation it shows me "Edit Operation Failed....". But I want a more specific error message as to why the Edit Operation failed. How can I get the specific reason for the Edit operation failed?&lt;/P&gt;&lt;P&gt;Below is my code snippet:&lt;/P&gt;&lt;P&gt;If Not (FieldValue = Nothing) Then&lt;BR /&gt;inspector(fieldName) = FieldValue.ToString()&lt;BR /&gt;Else&lt;BR /&gt;inspector(fieldName) = ""&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;EditOp.Modify(inspector)&lt;BR /&gt;Dim result = EditOp.Execute()&lt;BR /&gt;If Not result Then&lt;BR /&gt;exception = EditOp.ErrorMessage()&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDK 2.8, ArcGIS Pro 2.8, VS2019.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 06:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066268#M6702</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-09T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the proper reason for Edit Operation Failed.. error.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066409#M6704</link>
      <description>&lt;P&gt;I think the problem is caused when you assign a string data type to a date field.&amp;nbsp; Try to assign a DateTime type to date fields.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066409#M6704</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-09T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the proper reason for Edit Operation Failed.. error.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066414#M6705</link>
      <description>&lt;P&gt;Yes, you are right. I know the reason. But I want to display the error on UI so needed the particular reason why the edit operation failed. I am able to get the error message as "Edit Operation failed.". But I want to display Edit operation failed due to a data type mismatch.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066414#M6705</guid>
      <dc:creator>TapasChakrabarty</dc:creator>
      <dc:date>2021-06-09T15:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the proper reason for Edit Operation Failed.. error.</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066477#M6706</link>
      <description>&lt;P&gt;Unfortunately the underlying API doesn't return detailed error messages depending on the data source that is used for editing.&amp;nbsp; I will forward this post to the ArcGIS Pro's Dev Team to re-iterate that this is an issue.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-proper-reason-for-edit-operation/m-p/1066477#M6706</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-06-09T16:54:36Z</dc:date>
    </item>
  </channel>
</rss>

