Select to view content in your preferred language

Custom Web Tool to Append data to Hosted Feature Layers

252
3
02-04-2025 11:00 AM
Labels (1)
ArtNaylor
New Contributor

Hello!

I am trying to use the Analysis Widget with a Custom Web Tool I created in Model Builder to append data to a hosted feature layer from a shapefile/feature layer supplied the user.

When the tool runs in Pro, I can refresh my experience site and see the appends have been made. When I upload the tool and try to run it in an Analysis Widget within the Experience, no appends are made. I assumed this might be related to the reference/copy data option but no success after trying both.

Can anyone confirm that what I am attempting to do is possible, and if so where I could be going wrong? I cannot share the Experience or data as it is sensitive data, but I can try to give a more in-depth explanation if needed.

Thanks!

0 Kudos
3 Replies
Wei_Ying
Esri Regular Contributor

Hi @ArtNaylor ,

Thanks for your feedback. Did you turn on the auto refresh option for your hosted feature layer in ExB?
Also did your custom web tool indicate a successful execution in the Analysis widget when you run? 

0 Kudos
GISUser74305830
Regular Contributor

I'm trying to do this exact same thing, with a slight modification:

 

  1. Custom Web Tool #1 (works successfully) 
    1. User has a CSV file with lat/long
    2. They click on tool and point to the CSV as input
    3. Tool does XY to point and then adds it to the ExB map as a layer - Temp Point Layer
  2. Custom Web Tool #2 (doesn't work)
    1. User clicks on tool and points to Temp Point Layer
    2. tool should append this layer to a hard-coded master layer
    3. tool fails

any ideas?

0 Kudos
Wei_Ying
Esri Regular Contributor

@GISUser74305830 To better target whether it is an issue of the custom tool itself, or it is the widget issue. 
Can you try the following:
1. Run the same tool in Web AppBuilder and see if it success? 
2. If you are using Enterprise, you may also run the custom tool from map viewer and see if that works there. 
3. Also may run the tool from the rest service side by submit the job directly from service. See if that work?

Thanks,
Wei

0 Kudos