Esri / ago-assistant

A swiss army knife for your ArcGIS Online and Portal for ArcGIS accounts
https://ago-assistant.esri.com/
Apache License 2.0
152 stars 89 forks source link

Copy Content Option Fails with Service Defintion Error #249

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm attempting to copy a Hosted Feature Service with the 'Full' option from one folder to another within the same AGOL account. Note that the Feature Service has a number of relationship classes within it and some media attachments.

However the operation fails with the error 'Failed - Check Console'. Looking at the web console the errors are as follows:

_Unable to add feature service definition.

Invalid definition for System.Collections.Generic.List`1[ESRI.ArcGIS.SDS.Metadata.LayerCoreInfo]

Exception has been thrown by the target of an invocation._

I acknowledge this is an experiemental service, but is this type of copy operation possible with this product or is it not possible to copy across Features with relationships?

slibby commented 6 years ago

@FsenyahPHE unfortunately there are a number of issues with related tables and more complicated feature services. An option for now would be to export your feature service to a file geodatabase and re-upload (and publish it) from that file geodatabase.

are you able to provide a zip of that file geodatabase for us to test with?

ghost commented 6 years ago

@slibby Thanks. The GDB export - re-upload - publish workflow seems to work great, maintaining the stucture of the form and importantly attachments. Many thanks!