Select to view content in your preferred language

Invalid definition for 'SourceSchemaChangesAllowed' error

71
0
yesterday
Labels (1)
AdamMesser1
Frequent Contributor

Was trying to update an ArcGIS Online hosted feature service definition. This service was created by publishing a Survey 123 Connect form, where both the hosted feature service and the *_form view were created. To allow our internal systems to access and query the feature service, we need to update the service definition to change the allowAnonymousToQuery and allowAnonymousToUpdate values to true. When clicking on Update Service Definition, the "Invalid definition for 'SourceSchemaChangesAllowed'." and "Invalid definition for System.Boolean" errors are returned. In researching this it appears the SourceSchema variable is only valid for the View, which I was able to update successfully. However, for the source feature service, you actually don't even have to change anything to get the error. You can click update and the errors appear immediately. The only way to update the allowAnonymous values was to remove all references to sourceSchema before clicking to update the definition. 

Is this a bug? 

Hopefully this helps anyone else with the same issue. Anything not changed is returned the next time you update, so removing the SourceSchemaChangesAllowed entries does not remove them. You will have to remove them each time you need to update the service definition. Please provide suggestions if there is a better way to approach this.

0 Replies