Showing posts with label o365. Show all posts
Showing posts with label o365. Show all posts

Thursday, January 7, 2021

Web.GetFileByServerRelativeUrl throws “Value does not fall within expected range”?

 SP Online site stored in Documents, When we trying to adding/retrieving documents but in the delete flow If you get an error during retrieval of a File object.


var relativeUrl = "/sites/documentsite/Documents/images.jpg";
we have to specific or construct the full URL.