Smart Edit Widget Copy Features

1980
13
Jump to solution
01-18-2022 09:21 AM
AaronNash__GISP
New Contributor III

Hi Everyone, 

For what we are trying to do the smart edit widget also does everything, except when we try to copy polyline features it will only allow us to create a multipart polyline. Is there a way to copy features that are not multipart? If we have 5 polylines we would like to copy and append all 5. 

any help would be appreciated

thanks in advance

0 Kudos
13 Replies
AlixVezina
Esri Regular Contributor

I am not sure what the downstream issues of deleting the spatial index in SQL will be, but it is not recommended. Perhaps it would be better to resolve the issue from the Smart Editor's widget end?

I have a similar case example below, where I am editing a service with versioned data. As you can see the issue should be resolved in the latest version of the widget if you use the widget from the developer edition 2.23, while it is still present in Portal 10.9.1. You can add it to your portal as a custom widget: Add custom widgets—ArcGIS Web AppBuilder | Documentation for ArcGIS Enterprise

unique index fields.png

If the issue is still present with the latest version of the widget against your versioned service, then we would need to take a closer look at your data schema to better understand what is causing it. If that is the case please contact Esri Support so they can help narrow down the source of the issue. Thank you!

0 Kudos
AaronNash__GISP
New Contributor III

Thank you for the reply, so we are on the WAB Developer 2.23 version smart editor and did some testing to try and isolate the widget behavior, all data tested in this scenario is polylines and we are copying to a polyline feature class. 

  • Create Features button present
    • unversioned feature class
    • unversioned feature class with globalID's 
    • versioned feature class without globalID's
  • Create features button NOT present
    • versioned feature class with globalID's (this is the scenario we are trying to use)

We will create a support case with ESRI and see if we can find some additional troubleshooting steps. 

0 Kudos
AlixVezina
Esri Regular Contributor

@AaronNash__GISP  There may be one more hands-on workaround if you are willing to modify the code in the dev edition 2.23. The field tied to the unique index you have identified above would need to be skipped in the code. The change would need to be made in the Widget.js file in the section starting on line 8709, in the custom widget you will be importing to your Portal.

AlixVezina_0-1642610346927.png

 

0 Kudos
AaronNash__GISP
New Contributor III

again, thank you very much for your help on this issue. We bypassed the validation code and were able to resolve our issue, the create feature button is now available on a polyline feature class that is versioned with globalIds. We will continue to test and see if any other issues persist.