The Script Failed Due To Call Depth Overflow

Why is the upgrade script is failing with error 'The Script failed due to call depth overflow'?

This issue generally occurs if there is a recursive call being made in the PowerShell script. To solve this, perform

  1. Verify that there are no changed made to the script
  2. Check if a custom deployment script has been created to call the installation script and in that if there is a recursive call happening
  3. Ensure that all the path in the custom script is correct or set correctly.
For example - Invoking same .ps1 file from the script which was going in loop.