web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Intermittent error 502...
Power Automate
Unanswered

Intermittent error 502 'The local device name is already in use'

(0) ShareShare
ReportReport
Posted on by 12

Hi,

 

I have a flow for one of my clients which starts by creating a subsite in SPO from a template after an item is added to a SPO list. Sometimes - not always - the action returns a 502 BadGateway error with the message:

 

"The local device name is already in use. (Exception from HRESULT: 0x80070055)\r\nclientRequestId: 1ed14b79-cd60-425e-99f6-b0f8085b2b8e\r\nserviceRequestId: 0104bd9e-50d7-8000-a6fb-e989a4ef95b4"
 
The action has the following configuration:
1.jpg

Retry policy is set to none so I can trap the 504 error when the action takes longer than 120s to return after an additional delay with its 'configure run after' set for success, failed and timed out.

 

When it fails with 502 the result is:

2.jpg

 

3.jpg

Headers:

Pragma: no-cache
x-ms-request-id: 0104bd9e-50d7-8000-a6fb-e989a4ef95b4
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Timing-Allow-Origin: *
x-ms-apihub-cached-response: true
Cache-Control: no-store, no-cache
Date: Tue, 05 Feb 2019 14:33:39 GMT
Set-Cookie: ARRAffinity=f4c9d7678d483c59c6591ee7ac9cee291acdcebda37e73a76f523837ae44913b;Path=/;HttpOnly;Domain=sharepointonline-we.azconn-we.p.azurewebsites.net
Content-Length: 664
Content-Type: application/json
Expires: -1

 

Body:

{
"error": {
"code": 502,
"source": "flow-apim-europe-001-northeurope-01.azure-apim.net",
"clientRequestId": "1ed14b79-cd60-425e-99f6-b0f8085b2b8e",
"message": "BadGateway",
"innerError": {
"message": "The local device name is already in use. (Exception from HRESULT: 0x80070055)\r\nclientRequestId: 1ed14b79-cd60-425e-99f6-b0f8085b2b8e\r\nserviceRequestId: 0104bd9e-50d7-8000-a6fb-e989a4ef95b4",
"status": 502,
"source": "https://*************.sharepoint.com/sites/************/_api/web/webinfos/add",
"errors": [
"-2147024811",
"Microsoft.SharePoint.SPException"
]
}
}
}

 

The message is different when a site with the same URL already exists, so I know that is not the reason.

I reran this flow with the same values and it worked fine - hence this is an intermittent problem.

Any ideas what 'The local device name is already in use.' could mean and how to treat it?

 

Thanks

 

 
Categories:
  • rayg Profile Picture
    2 on at

     

    I suspect this is related to the site template's use of features or content types. Which template have you specified? While "local device name is already in use" really is about network devices, I believe SharePoint is throwing an exception related to duplicate use of a GUID somewhere in the new site creation process. We have been using CSOM for years to create SPO subsites with an http web service call from within an SP 2013 workflow. BUT, today it is FAILING with the same error you report: "The local device name is already in use. (Exception from HRESULT: 0x80070055). 

  • lostgical Profile Picture
    45 on at

    Any update on this error? We're using Flow to generate subsites and had to turn on 3 site features for the template to work in with Flow. Now the subsite is generated, but the HTTP call still errors with (causing Flow run fail):

     

    502 - BadGateway 

    "message": "The Web site address \"/sites/TestLite/SPO-8\" is already in use.\r\nclientRequestId: 33d57f88-8961-4377-ae5e-ddf657d5bdb9\r\nserviceRequestId: 8a03019f-7091-9000-704f-4810adb737fe"
    In MS doc, it says 502 error is temporary or transient, did you error(s) go away on its own?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard