Error using SCP command

Hi -
I've a UNIX script which contains a scp command to copy a file to another server: scp <source path> <destination server:/path>
(scp dir1/file1.dat server2:/dir1/subdir1)

The job which is running this script is getting failed with error message "Remote copy Failed - Error Code: 7". When I'm checking the destination server I'm finding the whole file is successfully copied. I also checked manual page of scp and saw error code:7 means permission issue.

I'm still not been able to find out what's the reason of this message! Not sure where this "permission issue" lies!

Please help me to proceed further with this.

Regards,
Sandy