Invalid Parameters Passed into the Utility!
Required  parameters:
application DBID appid
dbid of the Master or Parent table msdb
Document Template Record ID# tpid
File Name fn
Template DBID tpdbid
Template Record ID# tpid
master table query : msqry
Check that you have either msid or msqry!