The script failed due to call depth overflow. The call depth reached 1001 and the maximum is 1000.

piyush-kalra
Tera Contributor

Getting this error message while running Powershell script in ServiceNow (The script failed due to call depth overflow. The call depth reached 1001 and the maximum is 1000.)
Please suggest.

1 REPLY 1

Jace Benson
Mega Sage

Sounds like you have some loop.  Can you share your code?