Unexpected runtime error

The runtime has encountered an unexpected error.

Error source

Page Name:/Corsi_web.xsp
Control Id: _id33

Exception

Error while executing JavaScript computed expression
Script interpreter error, line=11, col=48: [TypeError] Method NotesDatabase.getDocumentByUNID(Array) not found, or illegal parameters

JavaScript code

   1: var array = new Array();
   2: 
   3: server = session.getServerName();
   4: var docp = database.getProfileDocument("(Profile)", null);
   5: var temp = new Array(server, docp.getItemValueString("db_anagrafica"))
   6: key = @DbLookup(temp,"vw107",context.getUrlParameter("man"),3);
   7: var temp1 = new Array(server, key)
   8: idfiera = @DbColumn(temp1,"vw020",4)
   9: if (!idfiera.equals("")){
  10: 	var dbfiera : NotesDatabase = sessionAsSigner.getDatabase(server, key, false)
  11: 	var docfiera : NotesDocument = dbfiera.getDocumentByUNID(idfiera)
  12: 	
  13: 	if (docfiera.getItemValueString("cong_corsi").equals("AT")){
  14: 		array.push("convegni/formazione")
  15: 		array.push("showcooking")
  16: 		array.push("laboratori/presentazioni")
  17: 		array.push("eventi")
  18: 		array.push("workshop")
  19: 		array.push("altre attività")
  20: 	} else {
  21: 		array.push("corso")
  22: 		array.push("dimostrazione")
  23: 		array.push("attività presso stand")
  24: 	}
  25: }
  26: return array

Stack Trace