Select to view content in your preferred language

Redeploy a Solution for ArcGIS Online

339
4
Jump to solution
09-13-2024 03:10 PM
PascoGIS
Emerging Contributor

Hello,

Is there any way to redeploy a solution to bring back features or layers that were either accidently deleted or disconnected from their original service layers?

We deployed the GIS Management Solution back in June and Sometime between then and now the Service Request Feature Layer disconnected from the GIS Activities Layer. I assume it may have been when I converted the survey123 from online to connect and re-published it with schema changes.

Current Solution.

PascoGIS_0-1726265266105.png

 

What its suppose to look like.

PascoGIS_1-1726265343994.png

 

Thank you very much!

0 Kudos
1 Solution

Accepted Solutions
PascoGIS
Emerging Contributor

@BrandiRank22 

I finally figured it out after reading up on some other stuff and your suggestion.

  • I created the view from GIS Activities, re-created the survey with correct geometry called out in the survey.
  • Added all my fields to the survey and then added those same fields to the GIS Activities layer so both layers had matching schemas.
  • Updated the Requests schema fields using the update view option in the layers setting tab (I always forget this thing exists).
  • Re-downloaded the survey (making sure to have a copy of the whole thing saved elsewhere just incase. This updated the forms schema to match.
  • Updated the submission URL on survery123 connects excel form for Requests to link back to the view layer and not the activities layer which it defaulted to when first downloading the survey which solved the submission URL error or I may have done this while trying to fix it. not sure.
  • Re-Published the survey

Done! Both layers are syncing data properly and when new records are created in the survey, we now see them on the Activities list.

Random Question as I saw it could not be done with the way the solution is built and I fear testing it and breaking the whole things all over again. Are we able to add multiple Geopoint with a repeat in the survey for a single entry? Our public Works office really loved that option because sometimes they have multiple assets that need to be corrected or added and so it was super helpful not having to submit a ticket for every single one.

Thank you very much for the help and leading me to the correct answer!

 

View solution in original post

4 Replies
BrandiRank22
Esri Contributor

@PascoGIS 

Redeploying the solution wouldn't necessarily be the best solution here I don't think.

Can you confirm for me - If you go to the folder "GIS Request Management" and view all the contents do you see the GIS_Requests view layer?  

0 Kudos
PascoGIS
Emerging Contributor

Hello!

The layer did still exist but I believe I overwrote it trying to fix the problem before I made this post.

I had discovered when I converted the survey form into a survey123 Connect form, I changed the Geopoint to a Geoshape with repeats which I assumed caused a conflict with the GIS Activities layer which still used points and thus it disconnected it entirely and made a whole new feature layer. I re-created the Request layer as a view from GIS Activities and tried using Geopoint instead without a repeat in the survey, but when ever I add a record, it is not synced over to the GIS Activities main feature layer. When I first tried publishing it, I kept getting an error about submission URL is not compatible with this survey.

I have already put in a ton of hours into the hub sites and design so I was hoping there was some way to redeploy the solution by having the missing layers re-added to the solutions main list of items just incase I am missing a component or setting somewhere.

Thank you very the help!

0 Kudos
BrandiRank22
Esri Contributor

@PascoGIS

Have no fear!  The GIS_Request was a view of the GIS_Activites.  No need to re-deploy.  You will need to recreate that view (could also be in your "recycle bin" if that was in AGOL when this happened) and then reference it in GIS Request Survey, etc. 
Re-deploying wont' save you time and will create a lot more items than you need.  🙂
See a post I added to this ArcGIS Solutions Community which has the solution diagram which may help with seeing how all the components line up!

0 Kudos
PascoGIS
Emerging Contributor

@BrandiRank22 

I finally figured it out after reading up on some other stuff and your suggestion.

  • I created the view from GIS Activities, re-created the survey with correct geometry called out in the survey.
  • Added all my fields to the survey and then added those same fields to the GIS Activities layer so both layers had matching schemas.
  • Updated the Requests schema fields using the update view option in the layers setting tab (I always forget this thing exists).
  • Re-downloaded the survey (making sure to have a copy of the whole thing saved elsewhere just incase. This updated the forms schema to match.
  • Updated the submission URL on survery123 connects excel form for Requests to link back to the view layer and not the activities layer which it defaulted to when first downloading the survey which solved the submission URL error or I may have done this while trying to fix it. not sure.
  • Re-Published the survey

Done! Both layers are syncing data properly and when new records are created in the survey, we now see them on the Activities list.

Random Question as I saw it could not be done with the way the solution is built and I fear testing it and breaking the whole things all over again. Are we able to add multiple Geopoint with a repeat in the survey for a single entry? Our public Works office really loved that option because sometimes they have multiple assets that need to be corrected or added and so it was super helpful not having to submit a ticket for every single one.

Thank you very much for the help and leading me to the correct answer!