Report ArcGIS Enterprise/ArcGIS Online Item Dependencies

29068
76
04-15-2020 12:29 PM

Report ArcGIS Enterprise/ArcGIS Online Item Dependencies

This tool will create a report on the dependencies for a service or a web map.  This can be helpful to see what web maps/applications will be affected by making changes, or deleting, a particular item.  When creating a report for feature services, the tool will report which web maps and web applications are consuming the service.  When creating a report for a web map, the tool will report which web applications are consuming the web map.  

A CSV file is created from this tool.  Below is an example report created for 2 feature services, Cities and NYPD_Crimes:

The Cities service is found in 2 web maps, Cities Web Map and Airports Web Map.  The Airports Web Map also has an application created from it called Airports Web App.

The NYPD_Crimes service is only found in 1 web map, NYPD Crimes Web Map.

 

See the video below for a demonstration:

 

Note:  this tool was created using the ArcGIS API for Python, and can only be executed within ArcGIS Pro, not ArcMap.

Update 8/2/21:  tool now works with ArcGIS Online.  The ArcGIS Online version can take a significant amount of time.  It's dependent on the number of users you have in your ArcGIS Online organization, as the tool iterates through each Creator user type and checks their web maps/web appbuilder applications.

Update 10/19/22:  tool will report Experience Builder and Dashboard applications.  A 'sleep' parameter has been added to the ArcGIS Online version to help avoid too many requests to ArcGIS Online, resulting in the tool to fail.

Update 9/5/23:  whether you are creating a report from ArcGIS Online, or Portal for ArcGIS, a single tool can be used.  A sleep parameter is no longer required if running against ArcGIS Online.

Update 10/6/23:  can now select multiple users

Update 7/17/24:  support for Image Services

Update 7/29/24:  support for Story Map applications, and for stand-alone services in Experience Builder applications and Dashboards

Update 7/11/25: supported with ArcGIS API for Python 2.4.1 (Item Dependency.zip), ArcGIS API for Python 2.4 and earlier (i.e. ArcGIS Pro 3.4 and earlier) download the Item Dependency - Python API 2.4. and Earlier.zip

Update 8/26/25: GP services are supported with ArcGIS API for Python 2.4.1 (Item Dependency.zip).  It will report WAB and Experience App Builder applications referencing the GP service URL

Attachments
Comments
AbiDhakal
Frequent Contributor

@JakeSkinner  - Thank you, Jake. It worked right and the tool is great!

jakek
by
Regular Contributor

@JakeSkinner Jake this a great tool.  What we noticed yesterday is that it may not be recognizing single sign on (SSO) for AGOL.  I'm an admin on AGOL in my organization where SSO was implemented a while back.  When I enter the AGOL URL, it looks good then a red X shows on that parameter when I put in my credentials.  Any ideas?  Let me know if you need more info or screenshots, etc.

Thank you for spending the time to develop it and keep it updated.  Much appreciated.

JakeSkinner
Esri Esteemed Contributor

@jakek are you using a SAML IDP (i.e. Entra, Okta)?  Unfortunately, SAML is not currently supported.  You will need to use a built-in account, or an Active Directory account.  If using an Active Directory account, windows authentication cannot be enabled at the web adaptor level.

jakek
by
Regular Contributor

@JakeSkinner Ok I'll see about taking another route to get there.  Thank you again.

AryamanBhattacharya_BeansAI
Occasional Contributor

The tool is exactly what GIS admins need! It is super useful and works like a charm @JakeSkinner ! 

I had one suggestion/feedback though. Do you think it will be possible to include a 'Select All' option for both the 'Source User' and 'User content' parameters ? 

Thanks in advance! 

JakeSkinner
Esri Esteemed Contributor

@AryamanBhattacharya_BeansAI this already exists.  Click the arrow next to the Source User/User Content parameter:

JakeSkinner_3-1725032778709.png

 

Then click the top checkbox to select all:

JakeSkinner_2-1725032759453.png

 

 

MatthewMalone
Frequent Contributor

This tool is SO HELPFUL when undergoing planning to remove/replace any key feature layer.  I appreciate you putting this toolbox out here for all to use!

Cheers!

-Matt

P.S. I'm running the tool with Pro 3.4 on AGO services and it runs 3-4 times as fast as the version I first used back in 2021!

GMcG_Geo
New Contributor

Thanks for the tool ..its really helpful, however I'm having problems running the tool in the latest version of Pro (3.5.2). I had it running previously but I now get an error message when it tries to populate the User Content field  (but error message appears next to the ArcGIS Online/Portal URL field):

GuyMcGarvaEDINA_0-1752151770529.png

Any help/info appreciated...

JakeSkinner
Esri Esteemed Contributor

@GMcG_Geo I updated the tool to be supported with ArcGIS API for Python 2.4.1.  Re-download the latest version and you should be good now.

GMcG_Geo
New Contributor

Thanks @JakeSkinner that works great now!

emilymcbroomdenton
New Explorer

Hi! We are trying to use this tool and looking for the parameters for the toolbox if you can provide a  screen shot. 

When I pull the python script into a toolbox and try to open it I receive this error message,

"Reading tool has failed. Error HRESULT E_FAIL has been returned from a call to a COM component."

Thanks for your help! 

JakeSkinner
Esri Esteemed Contributor

@emilymcbroomdenton take a look at a few posts up and you'll see a screen shot.  Also, the video will demonstrate the entire workflow.  

Are you attempting this for Enterprise or ArcGIS Online?

Sibe
by
Occasional Contributor

@Jake I'm running into the exact same issue as @emilymcbroomdenton . I'm attempting to use this for Enterprise. 

JakeSkinner
Esri Esteemed Contributor

@Sibe what version of ArcGIS Enterprise and ArcGIS Pro are you running?

Sibe
by
Occasional Contributor

@Jake ArcGIS Enterprise 11.1 and ArcGIS Pro 3.3.0

JakeSkinner
Esri Esteemed Contributor

@Sibe I just uploaded an earlier version (Item Dependency - Python API 2.4 and Earlier.zip) that should work with your version of Pro.

Sibe
by
Occasional Contributor

@JakeSkinnerThanks! I tried that, but I’m still getting an error. Any idea what else I could check?Schermafbeelding 2025-08-06 153739.png

JakeSkinner
Esri Esteemed Contributor

@Sibe do you get this after you enter your username/password?  If so, are you using a SAML account?  This is currently not supported, only built-in and Active Directory accounts.

Sibe
by
Occasional Contributor

@JakeSkinnerThanks, it’s working now.

rcGIS
by
Frequent Contributor

Hello @JakeSkinner, first, many thanks for making this tool available (and for keeping it up to date); it's very useful.

While using it, in 'User content', I don't see the ArcGIS Enterprise published geoprocessing services appear. Is this expected? I'm also looking for an overview of which geoprocessing services are being used in the different ArcGIS Enterprise portal web apps (GP services added as a widget).

JakeSkinner
Esri Esteemed Contributor

@rcGIS I've updated the code to include GP services.  You can download the Item_Dependency.zip and you should be good to go.

rcGIS
by
Frequent Contributor

Hi @JakeSkinner, thanks for the quick update & reponse. I realized I can't test it yet since I'm still at ArcGIS Enterprise 11.3 and ArcGIS Pro 3.3.

JakeSkinner
Esri Esteemed Contributor

@rcGIS download the Item_Dependency.zip and use that with your existing script tool by right-clicking on the script tool > Properties > Execution tab:

JakeSkinner_0-1756299269131.png

The differences between the Item_Dependency.zip and the Item Dependency - Python API 2.4. and Earlier.zip is only the Validation within the toolbox.

rcGIS
by
Frequent Contributor

@JakeSkinner, I tested your suggestion but under 'User Content' I still don't see the GP services. I have used an AD user with admin role, and I'm also the item owner of those GP services in the Portal. I used ArcGIS Pro 3.3 and the ArcGIS Enterprise is the 11.3; in the ArcGIS Pro Package Manager I see arcgis 2.3.0.

Reading this above, "GP services are supported with ArcGIS API for Python 2.4.1", I probably need to be using a newer version of the ArcGIS Python API for the script to work as expected (?). I will test once we have upgraded to 3.5/11.5 (not yet planned).

Context: In the Esri Developer docs I see: The ArcGIS API for Python 2.4.0 release is supported with ArcGIS Pro 3.4 and later cloned environments, and ArcGIS Enterprise 11.4 and later.

JakeSkinner
Esri Esteemed Contributor

@rcGIS that was my mistake, there are changes to the Validation.  You can easily add this with the following steps:

1.  Right-click on the script > Properties > Validation

2.  Update the following lines:

elif 'Map Service' in str(item.typeKeywords) or 'Feature Service' in str(item.typeKeywords) or 'Image Service' in str(item.typeKeywords) and 'Hosted Service' not in str(item.typeKeywords):

with:

elif 'Map Service' in str(item.typeKeywords) or 'Feature Service' in str(item.typeKeywords) or 'Image Service' in str(item.typeKeywords) or 'Geoprocessing Service' in str(item.typeKeywords) and 'Hosted Service' not in str(item.typeKeywords):

May be difficult to see above, but you're just adding the following:

or 'Geoprocessing Service' in str(item.typeKeywords)

JakeSkinner_0-1756378069130.png

 

MarkWILSON_LLS
Occasional Contributor

well done @JakeSkinner  and thankyou.

Ive got MFA enabled on my account. Is there anyway the script can refer to my AGOL login in pro or feed the AGOL MFA into the script? 

Ive built my own dependency report via ArcGIS Python API but havent got the dependancy linkages working correctly.

 

thanks

mw

Version history
Last update:
‎08-27-2025 05:59 AM
Updated by:
Contributors