Forum Discussion
Inconsistent behavior in using Taxonomy API
Hi Paul -
I'm curious if you've made progress on this this. I am also seeing the error:
The HTTP service located at http://usr19769-643:32843/3115c78f4d804003b5964d1cb5b56042/MetadataWebService.svc is unavailable
In my case, I was using PnP PowerShell (Apply-PnPProvisioningTemplate) to deploy new Managed Metadata fields and anchor them to an existing term set. I was running this after creating a new site. I added a Sleep for 120 seconds after site creation and before applying the template. I still saw this error. Then I set it to sleep for 180 seconds and I did not see the error. I need to do more testing to see if 180 seconds is sufficient in all cases or if I'll need to implement retries as you have done.
Regards,
Tom Castiglia
- Merly CortezOct 17, 2018Copper Contributor
Hi Tom,
Having the sleep for 180 seconds fixed it for me too. Have you found any other way to get this working other than putting in some delay?
Thank you.
- paulpaschaJun 05, 2018Bronze Contributor
Hi Tom,
No real progress regarding this on my side. My code is full of retry-mechanisms (basically try-catch-retry) to work around the errors I've listed and the end-results are fine now…
Hope your workaround suffices too!
Regards,
Paul