Limitation With Multiple Calls to Function?

Limitation With Multiple Calls to Function?

I have an HTML view that creates a table with 15 x 10 cells. Most of these cells contain a number that is called from a function. If I include this function-call (line 20), the view fails to load. If I remove it, it works. If I call it just form one cell, it returns a number.

  1. htmlpage SUBSTATS()
  2. <%{
  3.     TABLE = "<table width='400' border='1' cellpadding='1' cellspacing='1'><tbody><tr><td>Mailing List</td><td>Total Subscribers</td>";
  4.     for each sec_list in LISTS  [LIST_TYPE = "Secondary"]
  5.     {
  6.         TABLE = TABLE + "<td>" + sec_list.LIST_NAME + "</td>";
  7.     }
  8.     TABLE = TABLE + "</tr>";
  9.     for each r in LISTS  [LIST_TYPE == "Primary"]
  10.     {
  11.         primary_total = SUBSCRIBERS[LISTS.contains(r.LIST_CODE)].count();
  12.         TABLE = TABLE + "<tr><td>" + r.LIST_NAME + "</td><td>" + primary_total + "</td>";
  13.         for each x in LISTS  [LIST_TYPE = "Secondary"]
  14.         {
  15.             LIST1 = List:String();
  16.             LIST1.add(r.LIST_CODE);
  17.             LIST2 = List:String();
  18.             LIST2.add(x.LIST_CODE);
  19.             //TABLE = TABLE + "<td>" + thisapp.COUNT_SUBSCRIBERS(LIST1, LIST2) + "</td>";
  20.             TABLE = TABLE + "<td>**W/O Function**</td>";
  21.         }
  22.         TABLE = TABLE + "</tr>";
  23.     }
  24.     TABLE = TABLE + "</tbody></table>";%>
  25. <%=TABLE%>
  26. <%}%>
If I comment-in line 20 and comment-out 21, it fails.

App buzzap/ncsd shared to support.

Cheers,
John Whitney