cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RichardMc
Level: Power Up

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

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

 

 
2 REPLIES 2
rayg
Level: Power Up

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

 

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
Level: Powered On

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

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?

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 316 members 4,577 guests
Please welcome our newest community members: