Skip to content

[BUG] Get-PnPFile fails with "File does not exist" after the Entra ID app was removed and I created a local tenant app #4286

Answered by ktlayton
ktlayton asked this question in General
Discussion options

You must be logged in to vote

@gautamdsheth, I figured out the issue. It turns out that after changing line where the script connected to the specific site, the cut and paste left out the specific site when connecting. I believe this is why the version 1.12 was throwing the "File does not exist error" and why the version 2.12 was throwing the "access denied" error. Once I changed the code to connect to the specific site as it previously did it started working...... feeling rather embarrassed :)

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
13 replies
@gautamdsheth
Comment options

@ktlayton
Comment options

@gautamdsheth
Comment options

@ktlayton
Comment options

Answer selected by gautamdsheth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #4281 on September 13, 2024 09:51.