I have an external task which uploads all the workflow related variables to the database using perl dbi. On my environment everything is working fine but when i moved my code to the client server i found that the task is failing. When i run the same script from command prompt and passing it jobid, taskid as arguments the task doesnt fail. When i run this script as part of workflow it fails at dbi->connect($dsn) but the same executes when the script is executed from command line.Could it be that the user who is the owner of this task doesnt have much rights on the database. Still i come back to the same problem if its a role issue then the user should not be able to execute this command from command line without an error. Please guide me.
If it would have the problem it should not have been working fine on my development environment. The problem arouse when i migrated my code to my client's environment. On my dev env the code is still working file,inserting and updating database.