"Failed to logon" in workflow

workflow threw an exception for the following reason : failed to logon to microsoft dynamics ax