I had this problem today but I just went to the file is was referencing, unchecked it as "Read Only" by right clicking the file, and going in the properties section. Since for some reason it could not write to that file this time. After the sorting was done I checked it back to being only read only.