Hi all,
I’ve written a PS script that works perfectly in the sandbox tenant, but when I run it in Production I’m getting a 500 error.
When running the same API call in Postman (Prod) it either takes +10s to run, or I get this error:
“detailCode”: “500.1.503 Downstream service unavailable”,
Any suggestions on why its tanking in PROD ? I’ve tried adding ‘-TimeoutSec 60’ to the API, but that doesn’t help
This error you are getting is related to the search result size. I would suggest try to add some filter to limit the search and see if you are still getting the error.
It has been filtered down to retrieve just the information required.
I did stick a limit=100 on the API for Prod, and that worked. So maybe some pagination is required.
But still, Sandbox is the same size as Prod.
Great ! it could be some configuration at tenant level. I would recommend to create a support case .