The error was occurring due to the action setup where it says LINKTOFORM() changing it to LINKTOROW solved the error