I have a document which is two folders deep in a document library. When I try and use Set-PnPFileCheckedIn with a Url like "/Documents/Incorporation/Objections/incorporation objection.docx" I get an error :-

" Set-PnPFileCheckedIn : Server relative urls must start with SPWeb.ServerRelativeUrl" 

if I add in -Web /sites/board/archives I get the same error.  If I change the -Web parameter to be sites/board/archives I get the error message

  "Set-PnPFileCheckedIn : File Not Found."

  Anybody any ideas ?   Thanks   Nigel


It looks like a problem with a space in the url between incorporation and objection

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.