<?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: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875324#M29084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update - it looks like "sourceSchemaChangesAllowed" dictates whether the&amp;nbsp;&lt;EM&gt;view&lt;/EM&gt;&lt;EM&gt; layer&lt;/EM&gt; is able to change the schema, not whether the view layer locks the schema from being changed by Survey123 Connect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still totally at a loss here. Deleting all views layers and maps referencing the service allowed me to republish with new fields, but it's not something we want to do again. I would really appreciate a workaround here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 19:34:07 GMT</pubDate>
    <dc:creator>PhilipQueen</dc:creator>
    <dc:date>2019-02-07T19:34:07Z</dc:date>
    <item>
      <title>Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875322#M29082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My team has created a large Survey123 form which I am the owner/publisher of. We have created various view layers associated with the data from the form, and are currently in the processing of making an Operations Dashboard for the data. We would like to add 5 calculations to the feature service to help our reporting in the dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is I cannot publish the updated survey with the new fields. I get the usual warning about adding fields, but then the "Error 400: Unable to add feature service layer definition" when I hit "Publish Survey." I have attached screenshots of the warning and the error. I am able to publish the same form as a new survey, so I know I don't have duplicate or improper field names. The issue is republishing the survey would mean redoing a lot of work creating the views and dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another user who had this issue last month said deleting the view layers associated with the data fixed this publishing error. Is it true that the views we have created could be "locking" the feature service schema from changing? If so, is there a workaround?&amp;nbsp;And if not, what else could be the issue here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:44:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875322#M29082</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-06T16:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875323#M29083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After doing more&amp;nbsp;digging, it looks like the service definition has the properties&amp;nbsp;&lt;EM&gt;"sourceSchemaChangesAllowed" : false&amp;nbsp;&lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;"hasViews": true&lt;/EM&gt;. I'm not sure if those are related, but would it cause issues to set&amp;nbsp;&lt;EM&gt;"sourceSchemaChangesAllowed" :&amp;nbsp;true&lt;/EM&gt;? There is no way to click it on or off, so it would be something of a 'crack'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875323#M29083</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-06T17:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875324#M29084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update - it looks like "sourceSchemaChangesAllowed" dictates whether the&amp;nbsp;&lt;EM&gt;view&lt;/EM&gt;&lt;EM&gt; layer&lt;/EM&gt; is able to change the schema, not whether the view layer locks the schema from being changed by Survey123 Connect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still totally at a loss here. Deleting all views layers and maps referencing the service allowed me to republish with new fields, but it's not something we want to do again. I would really appreciate a workaround here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 19:34:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875324#M29084</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-07T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875325#M29085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes at this time Connect cannot alter a form with a view as teh editing endpoint. &amp;nbsp;In this situation, you can add the fields to the feature service manually, check to make sure they've been added to the view definition and then update the form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 00:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875325#M29085</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-02-08T00:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875326#M29086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you James! It is good to know that is a setting, and that there is a viable workaround.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 13:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875326#M29086</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-08T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875327#M29087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌ I tried this method (adding fields through the data tab before publishing) on a copy of my survey that had dummy data, views, and an Ops Dashboard and it worked great. But when I went to do it on my real survey, the "Add Field" button was gone from both the table and field views of the Data tab. I also tried adding a field through Pro, and it returned an error (&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;error 000852: Cannot add field &amp;lt;value&amp;gt; to &amp;lt;value&amp;gt; (&lt;/SPAN&gt;&lt;A data-auth="NotApplicable" href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00851-00875-000852.htm" rel="noopener noreferrer" style="background-color: #ffffff; border: 0px; font-size: 14.6667px;" target="_blank"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00851-00875-000852.htm&lt;/A&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;)). Do you have any idea what could be causing this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 17:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875327#M29087</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-15T17:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875328#M29088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are one of the views created using multiple layers? &amp;nbsp;It appears that once a multiple layer view is created, neither of the participating layers can have their schema updated. &amp;nbsp;In particular, if you visit the REST endpoint/service URL of the survey layer, you should see a property called 'Source Schema Changes Allowed'm which is probably set to false in your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875328#M29088</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-02-27T18:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can Views Cause Error 400: Unable to Add Feature Service Layer Definition?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875329#M29089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for following up on this, it's good to know that multiple layer views cause this setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to correctly diagnose what went wrong in our case. We had created our views with a script that set "Source Schema Changes Allowed" to false and locked our schema. This property for the hosted feature layer is calculated from all of the view layers, so if one view layer has it set to false you can't change your schema. This explained why we initially couldn't change the property in our hosted feature later through REST. But we also couldn't change the property to true in any of the view layers through REST, until Khaled Hassen told us that 'hasStaticData' has to be set to the opposite boolean value as "Source Schema Changes Allowed" - so to change the latter to true you have to set the former to false at the same time for the update to take. So we were able to make all of the changes and then add the fields we needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully typing this all out here helps someone solve this issue a little quicker than it took our team. Thanks again James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 19:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/can-views-cause-error-400-unable-to-add-feature/m-p/875329#M29089</guid>
      <dc:creator>PhilipQueen</dc:creator>
      <dc:date>2019-02-27T19:01:40Z</dc:date>
    </item>
  </channel>
</rss>

