HTTP requests handling files giving random (and incorrect) "Access denied" errors

%3CLINGO-SUB%20id%3D%22lingo-sub-1852374%22%20slang%3D%22en-US%22%3EHTTP%20requests%20handling%20files%20giving%20random%20(and%20incorrect)%20%22Access%20denied%22%20errors%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852374%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20experiencing%20mysterious%20issues%20with%20my%20Logic%20Apps%20flow%20since%20yesterday.%20The%20flow%20does%20many%2C%20many%20things%20but%20all%20of%20the%20problems%20have%20something%20to%20do%20with%20files.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20%3CSTRONG%3EMany%20of%20my%20file%20related%20HTTP%20requests%20suddenly%20stopped%20working%2C%20giving%20me%20%22access%20denied%22%20even%20though%20nothing%20in%20the%20flow%20had%20changed.%3C%2FSTRONG%3E%20I%20was%20using%20application%20rights%20and%20Active%20Directory%20OAuth%20as%20an%20authentication%20type.%20I%20solved%20this%20problem%20by%20using%20delegated%20rights%20and%20the%20authentication%20type%20Raw.%20So%20this%20one%20is%20somehow%20solved%2C%20though%20I%20think%20there%20is%20a%20deeper%20problem%20somewhere%20since%20it%20has%20been%20working%20for%20months%20until%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20%3CSTRONG%3EI%20have%20a%20loop%20that%20renames%20ten%20files%20using%20PATCH.%20Out%20of%20the%20ten%2C%20roughly%20half%20of%20the%20files%20get%20renamed%20and%20the%20rest%20give%20me%20%22access%20denied%22.%3C%2FSTRONG%3E%20Mind%20you%2C%20it%20is%20the%20same%20HTTP%20request%20in%20all%20of%20these%20cases%2C%20using%20the%20very%20same%20method%20of%20authentication.%20All%20of%20these%20files%20are%20in%20the%20same%20folder%2C%20have%20no%20unique%20user%20rights%20and%20have%20not%20been%20checked%20out.%20It%20is%20also%20completely%20random%20which%20files%20get%20renamed%20and%20which%20give%20access%20denied.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20examples%20are%20from%20the%20same%20run%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Access%20denied.PNG%22%20style%3D%22width%3A%20615px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231365iC5580DC39DE654E9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Access%20denied.PNG%22%20alt%3D%22Access%20denied%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAccess%20denied%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22no%20error.PNG%22%20style%3D%22width%3A%20615px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231366i788B2A722D4BE08D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22no%20error.PNG%22%20alt%3D%22No%20error%2C%20business%20as%20usual%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ENo%20error%2C%20business%20as%20usual%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20flow%20is%20very%20critical%20to%20my%20client%2C%20and%20I%20am%20out%20of%20ideas%20how%20to%20fix%20it%20since%20the%20same%20requests%20works%20and...%20does%20not.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20else%20experienced%20the%20same%20mysterious%20problem%2C%20or%20have%20any%20ideas%20of%20what%20I%20could%20try%20to%20fix%20this%20file%20renaming%20problem%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1852374%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I have been experiencing mysterious issues with my Logic Apps flow since yesterday. The flow does many, many things but all of the problems have something to do with files. 

 

1. Many of my file related HTTP requests suddenly stopped working, giving me "access denied" even though nothing in the flow had changed. I was using application rights and Active Directory OAuth as an authentication type. I solved this problem by using delegated rights and the authentication type Raw. So this one is somehow solved, though I think there is a deeper problem somewhere since it has been working for months until this.

 

2. I have a loop that renames ten files using PATCH. Out of the ten, roughly half of the files get renamed and the rest give me "access denied". Mind you, it is the same HTTP request in all of these cases, using the very same method of authentication. All of these files are in the same folder, have no unique user rights and have not been checked out. It is also completely random which files get renamed and which give access denied.

 

These examples are from the same run:

 

Access deniedAccess deniedNo error, business as usualNo error, business as usual

 

This flow is very critical to my client, and I am out of ideas how to fix it since the same requests works and... does not. 

 

Has anyone else experienced the same mysterious problem, or have any ideas of what I could try to fix this file renaming problem?

0 Replies