I found the answer its the cron issue or we can say path issue , problem was when i was running script manually than i was in my script directory than the encrypted file was build in the directory as i run the script.sh but in corn the working directory is by default /home/ubuntu/ and in my script the rsync have the path of my script directory so rsync cant find the file there and that make it fail so i updated script from just having file name like this
file="$data_${date}.enc"
to
loc="/home/ubuntu/scripts/automated_datasender"
file="${loc}/data_${date}.enc"
now the rsync can find the file.