Error message about the ".ocdata" file in Nextcloud

Error message:

Your data directory is invalid. Make sure that a ".ocdata" file exists in the root directory of the data directory.


Solution:

>Basic Settings> Webcron

The error message goes away, even if you then set the setting back to AJAX