<?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: Feature edition errors in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349791#M8293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert for your answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want any visual editor. Because of that I put it in the declaration section.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2012 12:23:35 GMT</pubDate>
    <dc:creator>ab1</dc:creator>
    <dc:date>2012-12-28T12:23:35Z</dc:date>
    <item>
      <title>Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349787#M8289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a feature editor, of a puntual feature layer, in a flex 3.1 client. The feature layer is served by a feature service in ArcGIS Server 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to update or delete features (I didn't try creation), I get errors eventhough the changes are made in the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The errors are like these :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.&amp;nbsp; at com.esri.ags.components::Editor/saveUnsavedAttributes()&lt;C&gt;&amp;nbsp; at com.esri.ags.components::Editor/attributeInspector_saveFeatureHandler()&lt;C&gt;&amp;nbsp; at flash.events::EventDispatcher/dispatchEventFunction()&amp;nbsp; at flash.events::EventDispatcher/dispatchEvent()&amp;nbsp; at mx.core::UIComponent/dispatchEvent()&lt;E&gt;&amp;nbsp; at com.esri.ags.components::AttributeInspector/dispatchSaveFeatureEvent()&lt;C&gt;&amp;nbsp; at Function/http://adobe.com/AS3/2006/builtin::apply()&amp;nbsp; at mx.core::UIComponent/callLaterDispatcher2()&lt;E&gt;&amp;nbsp; at mx.core::UIComponent/callLaterDispatcher()&lt;E&gt;&amp;nbsp;&amp;nbsp; TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.&amp;nbsp; at com.esri.ags.components::Editor/featureLayer_editsCompleteHandler()&lt;C&gt;&amp;nbsp; at flash.events::EventDispatcher/dispatchEventFunction()&amp;nbsp; at flash.events::EventDispatcher/dispatchEvent()&amp;nbsp; at mx.core::UIComponent/dispatchEvent()&lt;E&gt;&amp;nbsp; at com.esri.ags.layers::FeatureLayer/http://www.esri.com/2008/ags/internal::editHandler()&lt;C&gt;&amp;nbsp; at mx.rpc::AsyncResponder/result()&lt;E&gt;&amp;nbsp; at com.esri.ags.tasks::FeatureLayerTask/handleApplyEdits()&lt;C&gt;&amp;nbsp; at Function/http://adobe.com/AS3/2006/builtin::call()&amp;nbsp; at com.esri.ags.tasks::BaseTask/handleResultEvent()&lt;C&gt;&amp;nbsp; at mx.rpc::AsyncResponder/result()&lt;E&gt;&amp;nbsp; at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()&lt;E&gt;&amp;nbsp; at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()&lt;E&gt;&amp;nbsp; at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&lt;E&gt;&amp;nbsp; at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()&lt;E&gt;&amp;nbsp; at mx.rpc::Responder/result()&lt;E&gt;&amp;nbsp; at mx.rpc::AsyncRequest/acknowledge()&lt;E&gt;&amp;nbsp; at DirectHTTPMessageResponder/completeHandler()&lt;E&gt;&amp;nbsp; at flash.events::EventDispatcher/dispatchEventFunction()&amp;nbsp; at flash.events::EventDispatcher/dispatchEvent()&amp;nbsp; at flash.net::URLLoader/onComplete()&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/E&gt;&lt;/C&gt;&lt;/C&gt;&lt;/E&gt;&lt;/C&gt;&lt;/E&gt;&lt;/C&gt;&lt;/E&gt;&lt;/E&gt;&lt;/C&gt;&lt;/E&gt;&lt;/C&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code I have declared the editor inside the &amp;lt;fx:Declarations&amp;gt; along with a geometry service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Editor id="mainEditor" map="{mainMap}" geometryService="{geometryService}" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I assigned the following method to 'initialize' attribute of the application:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;protected function application_initializeHandler(event:FlexEvent):void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; mainEditor.featureLayers = [arrets]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;where "arrets" is the name of the feature layer I want to edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any idea of why the errors appear?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 09:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349787#M8289</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2012-12-28T09:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349788#M8290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Layachi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Can you show how your are adding your layer in your code? Does your FeatureLayers url end with FeatureServer/# ? Is the layer you are attempting to edit coming for an SDE enterprise geodatabase?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 11:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349788#M8290</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-28T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349789#M8291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Can you show how your are adding your layer in your code?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;esri:FeatureLayer id="arrets" url="http://serverIP:8399/arcgis/rest/services/myService/FeatureServer/0" /&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Is the layer you are attempting to edit coming for an SDE enterprise geodatabase?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it's coming from a SDE geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 11:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349789#M8291</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2012-12-28T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349790#M8292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Layachi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; If your editor is &lt;/SPAN&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;SPAN&gt; suppose to be in your declarations section as it is a visual component.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 12:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349790#M8292</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-28T12:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349791#M8293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert for your answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want any visual editor. Because of that I put it in the declaration section.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 12:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349791#M8293</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2012-12-28T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349792#M8294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Layachi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Then you need to look at the Edit without editor sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq00000043000000.htm" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq00000043000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or Just set the editors visibility to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 12:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349792#M8294</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-12-28T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Feature edition errors</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349793#M8295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I put the editor inside a window and put visible="false".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; I get no errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Robert &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 13:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-edition-errors/m-p/349793#M8295</guid>
      <dc:creator>ab1</dc:creator>
      <dc:date>2012-12-28T13:14:40Z</dc:date>
    </item>
  </channel>
</rss>

