Question

What is the correct workflow for overwriting a published layer in ArcGIS Portal on a weekly automatic basis?

  • 5 August 2022
  • 2 replies
  • 122 views

I would like to overwrite a feature class in our ArcGIS Enterprise database into our online Portal on a weekly basis. I have attempted this in ArcGIS ModelBuilder but there is only the option to "Replace web layer".

 

I have seen a few people use AttributeRemover and AttributeManager to overwrite a published web layer but I would like to know if there is a best-practice workflow to this.

 

Thanks!


2 replies

Userlevel 2
Badge +10

Hi @hayleyl​ great question! The easiest way to overwrite a published layer in ArcGIS Portal would be to use the ArcGIS Portal Feature Service Writer. After you've added the Writer to your workspace, you can set your Writer parameters as follows:

  • Feature Operation: Update
  • Feature Type Handling: Truncate Existing (this will remove all existing records, effectively overwriting the layer)
  • Update Spatial Column(s): Yes

Be careful to ensure that you've specified the correct feature service, as well as the correct layer in the Writer parameters.

imageIf you're getting stuck on anything to do with ArcGIS Portal, please take a look at this article: https://community.safe.com/s/article/Tutorial-Getting-Started-with-ArcGIS-Online-and-Portal

 

To run this on a weekly basis, I recommend setting up a Schedule on FME Server. There's a great article on how to set up Schedules here: https://community.safe.com/s/article/schedule-a-workspace-to-run-with-fme-server-1

 

Hi @hayleyl​ great question! The easiest way to overwrite a published layer in ArcGIS Portal would be to use the ArcGIS Portal Feature Service Writer. After you've added the Writer to your workspace, you can set your Writer parameters as follows:

  • Feature Operation: Update
  • Feature Type Handling: Truncate Existing (this will remove all existing records, effectively overwriting the layer)
  • Update Spatial Column(s): Yes

Be careful to ensure that you've specified the correct feature service, as well as the correct layer in the Writer parameters.

imageIf you're getting stuck on anything to do with ArcGIS Portal, please take a look at this article: https://community.safe.com/s/article/Tutorial-Getting-Started-with-ArcGIS-Online-and-Portal

 

To run this on a weekly basis, I recommend setting up a Schedule on FME Server. There's a great article on how to set up Schedules here: https://community.safe.com/s/article/schedule-a-workspace-to-run-with-fme-server-1

 

That is perfect, thank you so much!

Reply