This error doesn't really affect anything, it's just annoying to look at, one click will pop up one, which can be solved by a python command, open the script editor , write it in the python column in the lower right corner of maya, and then click the triangle to run it. span
from pymel.core import *
maya.mel.eval('outlinerEditor -edit -selectCommand "" "outlinerPanel1";')