Error when looping over list

Looping over a series of lists created from form fields
generates an error when one of the fields on the form has been left
blank. The form is a list of event dates, start times and end
times. One event can have a number of times.
When the end time is uncertain, we want to leave it blank.
However, doing so shortens the list created from #form.endtime# so
that the lists don't match and there's an error message:
"Invalid list index 2.
In function ListGetAt(list, index [, delimiters]), the value
of index, 2, is not a valid as the first argument (this list has 1
elements). Valid indexes are in the range 1 through the number of
elements in the list."
How do you get around this problem? Tx.

yoman,
No need for separate forms. Use a counter to number each
group of field names
<input name="EventDateID1" ...>
<input name="EventDate1" ...>
<input name="EventDateID2" ...>
<input name="EventDate2" ...>
Then loop through the form fields on your action page
<cfloop from="1" to="#form.maxCounter#"
index="counter">
<cfset EventDateID = form["EventDateID#counter#">
<cfset EventDate = form["EventDate#counter#">
... rest of fields
<cfquery name="UpdateFeatures" datasource="#dsn#">
UPDATE EventDates
SET EventDate = '#EventDate#', ....
WHERE EventDateID = #EventDateID#
</cfquery>
</cfloop>
You should validate the values and/or use cfqueryparam

Similar Messages

  • Integration Builder - runtime data cache - Error when creating cache list

    All,
    When I go into the Integration Builder --> Administration --> Runtime tab --> Data Cache
    I get a message saying "Error when creating cache list".
    All cache areas look ok and I do not see any other error.
    Also, RFC INTEGRATION_DIRECTORY_HMI looks good.
    Please advise.
    Thanks a lot.

    Hi,
      Use transaction SXI_CACHE to update the Integration Directory cache. Alternatively, you can use the following URLs to update the CPA cache. Use XIDIRUSER to refresh the cache.
    For complete cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=full
    For delta cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=delta
    If this does not solve the issue, check transaction SLDCHECK to ensure that connection to SLD is available. If the connection fails, check the configuration in the transaction SLDAPICUST. Make sure that the password maintained is correct and the maintained service user is not locked.
    Now in the Integration Repository go to Environment u2192 Clear SLD Data Cache. Also go to Integration Directoy and clear the cache using menu Environment u2192 Clear SLD Data Cache.
    Open the XI Start Page and click on Administration. On the Repository tab, choose Cache Overview. Refresh the cache using the buttons/icons on the right. Use XIDIRUSER to refresh the cache. Carry out cache refresh in the same way on the Directory and Runtime tabs.
    regards,
    ganesh.

  • JCS-122017 Error When refreshing Application List

    JCS-122017 Error When refreshing Application List
    This issue started occurring when we migrated CPS from M28 to M33
    We currently have M33.45 in Dev and are still experiencing the same error when refreshing the application list.
    To replicate the issue, I can login, click applications, click the redwood folder, then click the refresh button within CPS and receive the below error.
    [Errors found]      11:35:27 AM: JCS-122017: Trying to use non-attached object Application:2,472
    Has anyone else had this issue, this appears to happen to all of the application lists when refreshing
    JCS-122017: Trying to use non-attached object Application:2,472
         at com.redwood.scheduler.model.BaseSchedulerEntityImpl.checkHasSession(BaseSchedulerEntityImpl.java:853)
         at com.redwood.scheduler.model.BaseSchedulerEntityImpl.checkCanRead(BaseSchedulerEntityImpl.java:859)
         at com.redwood.scheduler.model.NamedRootObjectImpl.getName(NamedRootObjectImpl.java:143)
         at com.redwood.scheduler.ui.meta.page.MetaOverviewPage.getTabName(MetaOverviewPage.java:227)
         at com.redwood.scheduler.ui.meta.page.MetaTabPage.setTabPageNameType(MetaTabPage.java:94)
         at com.redwood.scheduler.ui.meta.MetaTabPageSetNameAction.performModelAction(MetaTabPageSetNameAction.java:49)
         at com.redwood.scheduler.ui.meta.MetaModelAction$ModelActionImpl.performModelAction(MetaModelAction.java:62)
         at com.redwood.scheduler.ui.model.impl.FormImpl.modelActions(FormImpl.java:730)
         at com.redwood.scheduler.ui.model.impl.LifeCycle.run(LifeCycle.java:226)
         at com.redwood.scheduler.ui.servlet.Servlet.handleRequest(Servlet.java:98)
         at com.redwood.scheduler.ui.servlet.Servlet.doPost(Servlet.java:54)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.redwood.scheduler.module.impl.ModuleFilter.doFilter(ModuleFilter.java:157)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.redwood.scheduler.security.filter.SecurityFilter.doFilter(SecurityFilter.java:613)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.redwood.scheduler.servlet.RequestCharsetFilter.doFilter(RequestCharsetFilter.java:197)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:384)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    The error is in the admin guide
    No timezone could be found to calculate this TimeWindowElement. This means
    that the object that includes the TimeWindow should set the TimeZone to use
    for the calculation of the TimeWindow, or a TimeZone must be set on the
    TimeWindow or TimeWindowElement.
    I do not see how this would occur within the application list.
    Thanks,
    Edited by: Nick Katsoulis on Jan 17, 2012 6:39 PM

    Hi Nick,
    I think you have already received this info via OSS - In case anyone else encounters this same problem - This issue will be fixed in a future version of CPS, planned for the M33-April release.
    David

  • Error when creating cache list

    Hi,
    We have installed SAP PI 7.1 on AIX 5.3.
    When we check Data cache Overview (RWB-- Administration) we are getting an error "Error when creating cache list"
    Also
    While trying to  Test Cache Connectivity Test under RWB--->Component Monitoring,
    we are facing the below issue "Cache notification from Integration Directory failed: Error when notifying cache receiver Unable to notify integration runtime (Java) of data changes
    For input string: "ngsvawrk211.uk.corporg.net" Attempt to fetch cache data from Integration Directory not yet started or still in process".
    Please help me to resovle this issue.
    Thanks
    Deepu

    HI,
    Is this problem solved ?
    Plz let me know if you have find any solution for this.
    Thanks & Regards,
    Mahesh

  • Error When Processing Picking List Script.

    Hi Experts,
    I have created Script for Picking List,
    I am getting the below error when processing ...
    Error Info...   VN 073: Errors occurred while processing output
    Its working fine when Standard Script SD_PICK_SINGLE is used ..
    Pls Help.
    Regards

    Hi Raghu,
    Before processing your picking list form make sure you have created a output type for it and you have assigned your form name and program name to that output type. you can see this in TCODE: NACE
    Thanks,
    Pritesh

  • Error when creating Task List: No Consolidation System found

    All-
    Configuring my Retrofit Scenario. My Project Landscape is maintained as following:
    Dev(100) --> QA (200) --> Prod (300) with Retrofit (XXX)
    Dev(XXX) --> QA 250
    I am getting this error when I try to refresh the project or create a Task List
    *No consolidation system found for <SID>-250 (project RETROFIT3)
    Message no. /TMWFLOW/TRACK_N806*
    If my QA client (250) is already maintained as a QA logical component. What else is missing?

    Hi,
    I have done something similar and getting error /TMWFLOW/TRACK_N806
    My Transport route looks something like
    System GND ZGND > 300 System GNQ 300> 300 System GNP
    Its a standard 3 system landscape with transport routes configured as mentioned above. I followed the write up as mentioned and have kept only one transport route but how do i create a transport route from GND-140 to GNQ-300 .
    The layer ZGND has been associated with client 140 which is the development client here. The layer ZGND is the consolidation layer, how else should i associate it with the client 140.
    Please advice.
    Regards
    Ankan

  • Unknown API error - when hoovering over new DVD's at Redbox

    Loaded Firefox 4 yesterday and this morning when checking out new releases at Redbox I got this error "unknown API error" while hoovering over new releases. If you hoover over a DVD it details what the DVD is about but, instead of the details I got the above error. Prior to Firefox 4 release (earlier versions of Firefox) I did not get this error, and I do not get this error in IE 8 or IE 8 (64-bit edition) - unfortunately.

    Redbox says related to browsers not being updated; I don't think that is the case...must be a problem with Redbox..doesn't happen on any other of the numerous sites I visit...

  • Why error when looping a sheets collection and setting the visible property?

    I get an error on line 5 when running the following code:
    1Sub ShowSheets(vSheets() As Variant)
    2
    3 Dim i As Long
    4 For i = LBound(vSheets, 1) To UBound(vSheets, 1)
    5 ThisWorkbook.Sheets(vSheets(i, 1)).Visible = xlSheetVisible
    6 Next i
    7
    8End Sub
    The error code I get is:
    Run-time error '-2147417848 (80010108)':
    Method 'Visible' of object '_Worksheet' failed
    I only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping. Instead it occurs when the first worksheet object after the chart object is looping.
    What is the cause of this error?

    Hi JP3O,
    >> only get the error when at least one of the sheets is a chart. But the error does not occur when the chart object is looping<<
    I am trying to reproduce this issue however failed. From the error message, it seems that the visible couldn't set when you call the sub.
    How the code was executed? Would you mind sharing more detail about this secnario?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Checkboxes remain set when looping over screen

    Hi there,
    I have got a problem with some checkboxes on a BSP with MVC.
    I am creating an extension for cProjects within a single tabStrip.
    My BSP constist of several checkboxes and I want to loop over this screen for some times to collect data. For every call of the BSP I create a new instance, set page attributes and call the view in DO_REQUEST. The page attributes cause some checkboxes to be set. This works fine so far.
    My problem is that checkboxes that were selected on the previous screen remain selected.
    I think this happens because the checkboxes have the same names as those on previous screens.
    How can I disable this behaviour? I would appreciate your help.

    Hi Raja,
    thanks for your friendly welcome!
    My BSP is already stateless. It is for assigning test
    types to components in a production project and for
    assigning standards to these test types. So there are
    some nested groups with checkboxes.
    First I loop over some existing test types and standards which will be displayed as 'checked' and the checkboxes are disabled. This works great so far.
    <%@page language="abap" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <xhtmlb:overflowContainer>
      <htmlb:button id      = "test_comp_next"
                    text    = "Next"
                    tooltip = "Go to next step in Task Wizard"
                    onClick = "test_comp_next"
                    design  = "EMPHASIZED" />
      <br />
      <htmlb:textView text   = "Component Validation"
                      design = "EMPHASIZED" />
      <br />
      <htmlb:group>
        <htmlb:groupHeader>
      <htmlb:textView text   = "<%= ms_component-task_descr %>"
                      design = "EMPHASIZED" />
        </htmlb:groupHeader>
        <htmlb:groupBody>
          <table cellpadding="5" valign="TOP" >
          <tr>
          <%
      mv_counter = 0.
      loop at mt_test_types_available into ms_test_type_available.
      read table mt_test_types into ms_test_type with key task_type = ms_test_type_available-test_type.
      if ms_test_type is not initial.
      mv_counter = mv_counter + 1.
          %>
          <td valign="TOP">
          <htmlb:group width="110px" >
            <htmlb:groupHeader>
          <htmlb:textView text   = "<%= ms_test_type-task_type %>"
                          design = "EMPHASIZED" />
            </htmlb:groupHeader>
            <htmlb:groupBody>
              <%
      loop at mt_standards_available into ms_standard_available.
      if ms_standard_available-test_type = ms_test_type-task_type and ms_component-task_type = ms_standard_available-task_type.
      read table mt_standards into ms_standard with key task_type = ms_standard_available-product_std parent_guid = ms_test_type-task_guid.
      if ms_standard is not initial.
              %>
              <htmlb:checkbox id       = "<%= ms_standard-task_type %><%= mv_counter %>"
                              text     = "<%= ms_standard-task_type %>"
                              checked  = "TRUE"
                              disabled = "TRUE" />
              <br />
              <%
      clear ms_standard.
    After displaying the already existing standards I also display other standards that are available for a component and might be selected.
    else.
              %>
              <htmlb:checkbox id   = "<%= ms_standard_available-product_std %><%= mv_counter %>"
                              text = "<%= ms_standard_available-product_std %>"
                              key  = "<%= ms_test_type-task_type %>" />
              <br />
              <%
      endif.
      endif.
      endloop.
              %>
              </td>
            </htmlb:groupBody>
          </htmlb:group>
          <%
      else.
    After that I also loop over test types that are not existing yet. They and their corresponding standards can be selected in addition.
    mv_counter = mv_counter + 1.
          %>
          <td valign="TOP">
          <htmlb:group width="110px" >
            <htmlb:groupHeader>
          <htmlb:textView text   = "<%= ms_test_type_available-test_type %>"
                          design = "EMPHASIZED" />
            </htmlb:groupHeader>
            <htmlb:groupBody>
              <%
      loop at mt_standards_available into ms_standard_available.
      if ms_standard_available-test_type = ms_test_type_available-test_type and ms_component-task_type = ms_standard_available-task_type.
              %>
              <htmlb:checkbox id   = "<%= ms_standard_available-product_std %><%= mv_counter %>"
                              text = "<%= ms_standard_available-product_std %>"
                              key  = "<%= ms_test_type_available-test_type %>" />
              <br />
              <%
      endif.
      endloop.
              %>
              </td>
            </htmlb:groupBody>
          </htmlb:group>
          </td>
          <%
      endif.
      endloop.
          %>
          </tr>
          </table>
        </htmlb:groupBody>
      </htmlb:group>
    </xhtmlb:overflowContainer>
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky
    Sorry I have got some problems with formatting my code.
    Message was edited by:
            Stefan Grosskinsky
    Message was edited by:
            Stefan Grosskinsky

  • Error when using navigation list

    hi all;
    i'm using jdeveloper10.1.2 i created a jsp page which contain two cascading lists it worked fine,i copied the application to another pc when i try to run this page on jdeveloper i get this error at runtime
    javax.servlet.jsp.JspException: Failed to obtain specified collection at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:222)
    how i can solve this problem.???

    Verify that you're using the same version of Struts with both deployments. Check if strust.jar file size is the same. This looks like struts version issue.
    Noel.

  • Microsoft Visual C++Runtime Library Runtime Error when refreshing plugin list

    when i refresh the effects list, i get this runtime error:
    Microsoft Visual C++Runtime Library
    Runtime Errror
    Program: C:Program Files\Adobe\Adobe Audition 3.0\Audition.exe
    R6025
    -pure virtual function call
    what do i do about this. if anyone has any ideas to suggest dont be afraid to let me know. thnx in advance

    Point audition at another folder into which you put your plugins one at a time until you find the one that gives the problem. Or you can do a hashing thing (copy half in, see if it's ok, if not, delete half, try again, etc etc).

  • Error when activating Task List

    When activating the Task List in PROJECT_SOLAR_ADMIN, I receive the error
         - "Phase change from 'Created' to 'Development without Release' is not possible". 
    When I do a check on the Project, the only red light i get is for the following two jobs, and i'm not sure if this is the issue?  And if so, what i have missed in order to resolve it.
         - Error in background job for program /TMWFLOW/CMSSYSCOL2 error message No active job found
         - Error in background job for program RSGET_SMSY error message No active job found
    Thank you for any assistance,
    Margo

    Margo,
    We had similar issues with Phase change, but did not get the messages you are getting.
    I don't know the version of SM you are in, but as of 7.0 you can change the status of the project in transaction CRM_DNO_MONITOR.
    Exceute transaction CRM_DNO_MONITOR
    --> Select the Service desk created for your project and CLICK on "Details" button.
    -->Go to change Mode
    -->Click on Actions Button
    --> select the appropriate stage
    IMPORTANT:
    Click on save button.
    The phase selectedis updated AFTER YOU SAVE only.
    Regards
    Vijay

  • Error when hoovering over charts

    Hi, <o:p></o:p>
    I have problem with a Power Bi report I have created. The report contains 8 Power View report which contains tables and charts. I have
    the latest Silverlight version installed on my computer. When I hoover over a chart I get the following error:<o:p></o:p>
    MS.Internal.WrappedException: [Arg_COMException]
    Arguments: 
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.00&File=mscorlib.dll&Key=Arg_COMException --->
    System.Exception: [Arg_COMException]
    Arguments: 
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.00&File=mscorlib.dll&Key=Arg_COMException
       at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
       --- End of inner exception stack trace ---<o:p></o:p>
    Anyone who have experienced something similar and have solved the problem?
    <o:p>Regards</o:p>
    <o:p>Cecilia</o:p>

    HI,
    try changing in your OS the settings Formats in "Region and Language" with those English (USA).
    Regards.
    Gianluca Pinelli

  • Write Protection Error when Uploading track list to IPod 4G

    Hi,
    When I upload tracks to my Ipod playlist from the library I get a message
    saying that the device is protected and unable to sync even though it has
    been able to transfer 1 or 2 tracks. I then have to close down Itunes (without
    ejecting the ipod) then re open Itunes and then I am able to transfer some more
    tracks and some times all remaining tracks can be transfered with out a problem,
    until I import another CD then all starts over again.
    Does any one have a solution to this?
    Thanks
    Lord Arioch

    If anyone could help me overcome this error it would greatly be appreciated. Java questions here concern programming, not product support.
    Connection reset by peer: socket write errorThat says that the server, where the file comes from, closed the connection.
    The most likely possibilities
    1. The client software is not correctly communicating with the server. Solution: fix the client
    2. The server is not correctly handling this request. Solution: fix the server
    3. The server doesn't want to talk the the client. Solution: fix both the server and the client.
    From the above unless you are in a position to fix something then you do not have an option.
    If you yourself cannot fix either of those then this is a vendor problem and you must contact the vendor (creator) of the software client and/or server. You would do that somewhere besides this site.

  • Error when creating Task List in ChaRM

    I am getting this error after I activate Change Request Management and attempt to create a task list.
    Error writing to table /TMWFLOW/PROJCTC
    Message No. /TMWFLOW/TASKLIST177
    There is no long text. Please advise

    Configuring ChaRM in a new client, entries in the table above already existed for the maintenance cycle the new client was trying to generate. deleted entries form database.

Maybe you are looking for