Wow! I bet you didn't expect to see this...

  Invalid Parameter Value

The loop tag in numeric step mode requires valid numbers for first and last parameters.

This is the HTML code that was being processed:

<mgiLoop first="1" last="" step="1">

<mgiIf lhs="&mgiLoopIndex;" 
relationship="lessThanOrEqualTo" rhs="9">

   <mgiSet name="formatted_index">
   0&mgiLoopIndex;
   </mgiSet>
 
<mgiElse>

   <mgiSet name="formatted_index">
   &mgiLoopIndex;
   </mgiSet>

</mgiIf>

<mgiSet name="var_search">
event_dates='*|<mgiGet name="thisyear">.<mgiGet name="thismonth">.<mgiGet name="formatted_index">|*' ORDER BY event_time ASC
</mgiSet>

<mgiSet name="var_smlinkpath">
day.mgi?year=<mgiGet name="thisyear">&month=<mgiGet name="thismonth">&day=<mgiGet name="formatted_index">
</mgiSet>

   <mgiIf lhs={mgiGet name="formatted_index"} relationship="equals" rhs={mgiGet name="today"}>
      <td bgcolor="#FFFF99" valign="top" width="92">
   <mgiElse>
      <td valign="top" width="92"> 
   </mgiIf>

                <p class="days" align="right"><a href={mgiGet name="var_smlinkpath"}>&mgiLoopIndex;</a></p>
               
	            <table width="99%" border="0" cellpadding="2" cellspacing="0">
      
      <mgiSearchDatabase databaseName="calendar_data" searchString={mgiGet name="var_search"}>
      
                <mgiSet name="hour">
                <mgiMath>
                <mgiString mode="split" delimiter=":" index="1" quoteResult="No">
                   &mgiDBFieldEvent_time;
                </mgiString> + 0
                </mgiMath>
                </mgiSet>
                
                <mgiSet name="minute">
                <mgiString mode="split" delimiter=":" index="2" quoteResult="No">
                   &mgiDBFieldEvent_time;
                </mgiString>
                </mgiSet>
                
                <mgiIf lhs={mgiGet name="hour"} relationship="lessThanOrEqualTo" rhs="11">
                  <mgiSet name="ampm">
                   a
                  </mgiSet>
                <mgiElse>
                  <mgiSet name="ampm">
                   p
                  </mgiSet>
                </mgiIf>
                
                <mgiIf lhs={mgiGet name="hour"} relationship="greaterThanOrEqualTo" rhs="13">
                  <mgiSet name="hour">
                  <mgiMath>
                   <mgiGet name="hour"> - 12
                  </mgiMath>
                  </mgiSet>
                </mgiIf>
                
                <mgiSet name="complete_time">
                <mgiGet name="hour">:<mgiGet name="minute"><mgiGet name="ampm">
                </mgiSet>
                
                <mgiIf lhs="&mgiDBFieldLink_color;" relationship="isNotEmpty">
                
                <mgiSet name="colored_event">
                <font color="&mgiDBFieldLink_color;">&mgiDBFieldEvent;</font>
                </mgiSet>
                
                <mgiElse>
                
                <mgiSet name="colored_event">
                &mgiDBFieldEvent;
                </mgiSet>
                
                </mgiIf>
                
<mgiIf lhs="&mgiDBFieldEvent_time;" relationship="Equals" rhs="00:01">

                  <tr> 
                    <td bgcolor="#CCCCCC" valign="top" colspan="2">
                    <div class="calendaritem" align="center"><b>&mgiDBFieldEvent;</b></div></td>
                  </tr>

<mgiElse>

      <mgiSet name="var_bigpath">
      MM_openBrWindow('event.mgi?event=&mgiDBFieldId;','eventdetail','scrollbars=yes,resizable=yes,width=300,height=400')
      </mgiSet>

                  <tr> 
                    <td valign="top" class="calendaritem"> 
                      <div align="right"><mgiGet name="complete_time"></div>
                    </td>
                    <td valign="top" class="calendaritem">
                    <a href="#" onClick={mgiGet name="var_bigpath"}><mgiGet name="colored_event"></a></td>
                  </tr>
                  
</mgiIf>
      
                  
       </mgiSearchDatabase>
       
                </table>
              </td>
              
              
<mgiSet name="linebreak">
<mgiMath><mgiGet name="var_startpos"> + &mgiLoopIndex;</mgiMath>
</mgiSet>
      
   <mgiSwitch value={mgiGet name="linebreak"}>
    
    <mgiCase value="8">
 	 </tr>
	  <tr valign="top"> 
    </mgiCase>

    <mgiCase value="15">
 	 </tr>
 	 <tr valign="top"> 
    </mgiCase>

    <mgiCase value="22">
 	 </tr>
	  <tr valign="top"> 
    </mgiCase>

    <mgiCase value="29">
 	 </tr>
	  <tr valign="top"> 
    </mgiCase>
    
    <mgiCase value="36">
 	 </tr>
	  <tr valign="top"> 
    </mgiCase>

   </mgiSwitch>
   
</mgiLoop>

  Try this...

Make sure that the first and last parameters are supplied with valid numbers. This problem usually occurs when an embedded tag returns a blank value.