Error count 3 usually refers to syntax error,
Check your code you might missing sone ',' or ';' in your script.
To get detail logging Open your application in qlikview desktop. --> go to document properties -->In general tab select generate log file. And you can diagonose from there.
Hope it helps