Videos cannot be uploaded to SharePoint

Markus Kolbeck
Markus' Blog
Published in
1 min readOct 6, 2015

If videos cannot be uploaded to SharePoint and you get a System.ArgumentException with invalid field name, you might want to check if the Site Collection feature “Video and Rich Media” is enabled on your site.

Error Description

Strangely enough, when uploading videos to a SharePoint Asset Library, the upload dialogue throws the exception “Sorry, something went wrong” — “An unexpected error has occurred.” but the file is actually uploaded to SharePoint.

The ULS logs tell you, that the following error occurred:

System.ArgumentException: Invalid Field Name. {1f300f90-c9d2–41f5–8ebb-7f2829a4c977} /sites/<your site>/Videos at Microsoft.SharePoint.SPFieldCollection.GetFieldById(Guid fieldId, Boolean bThrowException)

The field or Site Column mentioned here is called VideoSetDefaultEncoding and part of the Content Type “Video” which inherits its columns from the Content Type “System Media Collection”.

They all do not exist on your Site Collection I assume.

Solution

You have to make sure that the site collection feature “Video and Rich Media” is enabled on Site Collection level.

In my case I also had to delete and recreate the asset library where I wanted to upload the video files.

--

--