Forum Discussion

singhsandeep's avatar
singhsandeep
Frequent Visitor
3 years ago

Found "process cannot access file because it is being used by another process" error logs in Gateway

Hello Team, 

 

I hope you are doing well. 

 

Recently, I've started observing the below error logs in the GatewayError log files. 

 

DM.EnterpriseGateway Error: 0 : 2023-04-06T11:00:54.1116238Z DM.EnterpriseGateway     329b1fec-6098-4a55-abb4-db7ead257241                1e062342-f730-4817-bf48-1f964690a090 MDSR      4d3a58a8-2a15-4a6d-8cef-653d32fe4cdc          1a62f6c6-399c-4098-9961-303fae99498e                2004f4ec-db84-45da-9a4c-6e3ace8563d0               85A6AA5F [DM.GatewayCore] Error serializing response: System.IO.IOException: The process cannot access the file 'C:\Users\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway\mnb2aj2g.f1i' because it is being used by another process.

 

 

At different times, the file name is different under the same folder as above. Sometimes the file is GatewayInfotemp.temp.log. 

 

This behaviour has been causing failure to our data refresh from data source type Folder which is on a file share. 

 

 

f4ffa18e-3cc5-4d62-9f7d-3221f6866d41,1e062342-f730-4817-bf48-1f964690a090,"[""{\""kind\"":\""Folder\"",\""path\"":\""\\\\\\\\usdcvfs10\\\\departments\\\\Managed Shares\\\\JDA\\\\Global\""}""]",1a62f6c6-399c-4098-9961-303fae99498e,2023-04-06T11:00:48.5508444Z,12943,Refresh,189,1845,,163544,2023-04-06T11:00:50.5916880Z,2041,N,The process cannot access the file 'C:\Users\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway\yeor2vvr.xll' because it is being used by another process.

f4ffa18e-3cc5-4d62-9f7d-3221f6866d41,96e6e1ad-d810-4ebf-8461-4b0d6cd3b6cf,"[""{\""kind\"":\""Folder\"",\""path\"":\""\\\\\\\\usdcvfs10\\\\departments\\\\Managed Shares\\\\JDA\\\\Global\""}""]",adab57b1-694e-414d-89f5-5c3d8abb1421,2023-04-06T15:00:25.7271646Z,9549,Refresh,,,,,,,N,The process cannot access the file 'C:\Users\PBIEgwService\AppData\Local\Microsoft\On-premises data gateway\rythqzix.x2v' because it is being used by another process.

 

 

 

The version of the Power BI Gateway service is 3000.166.9 (March 2023). I restarted the service a couple of times but didn't help solve the problem. However, the issue is intermittent. But it always fail when the file is being used by another process it seems like. 

 

Please let me know if you have any experience dealing with this kind of issue. Any help/pointers will be appreciated. 

 

Thank you for your time and guidance in advance. 

1 Reply

  • All of the March versions seem to be iffy. "Downgrade"  to 162.10