ATAS (Active Scan) always gives ERROR

Not able to do Active Scan of AP in the visinity using AT Command. Command always replies with ERROR

ATAS - ERROR

Tried both in Command mode and API mode.

Device info:

Xbee S6B SMT module
Fw Version :2026

The command will report Error if the module is already associated with an Access point. You may need to issue the NR command first in order to use the AS command.

Thanks a lot!

I will update here once I try the same.