why are you getting this error?

answer: because you need to select a the default scanner. to do this simply go to :

file > Create PDF > From Scanner > Configure Presets

a new window will open, the first field is scanner, it will say: please select a device. just select you scanner connected to your computer