Hello,
Im trying to create a Team from a list in SharePoint using power automate. The idea is there is a common structure we use for our teams including files. So the goal is our program admin adds the project to a list. This triggers the automation process to create a teams and sharepoint site. Once that is completed it would copy the folder structure from a base sharepoint site and apply it to the new one.
The way it works is First they put information into a list.

This creates the team.
From here it goes out to share point and try's to create folders into SharePoint to follow our organization structure.

However it doesn't work and says 404 on the SharePoint site.
I get the following error
{ "error": { "code": 404, "source": "power-apis-usgov001-sovereign.azure-apihub.us", "clientRequestId": "cf597957-e1fa-4b31-bcb3-625230382202", "message": "The response is not in a JSON format.", "innerError": "404 FILE NOT FOUND" } }

When i head out to the sites address directly I also get a 404

However if I head out into teams and click the file tab it takes a long time to load and the site gets created then everything can work.

I also noticed that if I create a site then create a teams it will create a site anyway but with a different name eg
I create a site with power automate called test when I create a teams team called test it will create a site called test2

At this point im not exactly sure what to do.