Select to view content in your preferred language

How to revert changes saved to your app's draft

415
1
03-31-2026 01:39 PM
Labels (2)
AlixVezina
Esri Regular Contributor
5 1 415

Have you ever made some experimental changes to a published app in the builder, solemnly promising to yourself that you would not click Save… and then—oops—you clicked Save anyway🤦

Now a cold dread washes over you. Your published app—the one happily living its best life out in the world—is still working exactly as expected. But the version in the builder? A total disaster. Nothing makes sense anymore, and you have no idea where to even begin putting it back together.

Good news: All is not lost. No need to panic. You can still save the day.

Note: This is a last resort workaround and may return some unexpected results.

___

Here's an example of a published app. This app had two pages: Trails and Resources.

Screenshot 2026-03-30 143519.png

I deleted the Resources page and "accidently" hit Save. Now my app state has Unpublished changes.

Screenshot 2026-03-30 143725.png

Here’s how to revert the changes saved in the draft, to bring it back in sync with the published app:

Warning: follow the steps meticulously to avoid overwriting the published app with the draft app! 

  1. Take a deep breath
  2. Go to the ArcGIS Assistant
  3. Sign in to your account with ArcGIS Online or ArcGIS Enterprise, where your app resides
  4. Find your app in your Content
  5. Click the item to open the details, and click View item JSON
    item json.png
  6. Click the Data tab, then select and copy all the code (note: this is the code from the published app state)
    data-json.png
  7.  Go to Resources and open the config/config.json file (note: this is the code from the draft app state)
    config-json.png
  8. Click Edit Resources
  9. Select all the code and paste the code you copied in step 6
  10. Click Save
  11. Cross your fingers
  12. Go back to your app builder, hit refresh, and verify that your app changes have been reverted
    Screenshot 2026-03-30 143519.png
  13. Celebrate! 🎉

 

Known issues with this workaround:

  • Some text styling, such as font size, may not be preserved.

___

Tip

Need to make changes to an app directly in the code? You can use the ArcGIS Assistant to modify the JSON for both the builder (draft) app and the published app. Make sure you apply your code changes to both the file under JSON Editor > Data, and the config.json file from the Resources tab for them to be reflected in both places!

1 Comment
Contributors
About the Author
Alix is a senior product engineer on Esri's ArcGIS Solutions Web Development team, where she delivers innovative web mapping tools for various industries. She's passionate about customer success and combines her knowledge and experience to help solve problems and empower others to develop impactful applications that provide essential functionality.