calling expect script in ksh is failing via cron

I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around it?

Based on the only information you are giving, I will try to look for a problem with environment variable(s) not set when cron runs it.
If you have no idea which one is causing problem, a wild guess would be to add your .profile in your script.

some of the things you can consider Adding PATH to the script.
in expect script call spawn process with complete path. all ENV variables examples SHELL etc to be hardcoded ...

Well these are some things I had to fix to run my expect script from cron/autosys