Gen. Posting Type must not be in Gen. Journal line journal template name ="journal batch name=",line no='0'

Tools>>Debugger>> Active (Active should be selected, TRUE) and break point FALSE

Do this and then do your transaction (Sales Order posting) again, debugger will point to code which is giving this error message.