Need some help on bringing back a form that seems to not render anymore. Other forms opens and renders fine but this particular one doesnt.
Using the latest Contour on 7.1.8, one of the form upon clicking doesnt show the designer. Export doesnt show the fields that was created before.
When i check the log, the following exception shown.
Anyone knows which table holds the tooltip section in the UF tables, perhaps editor entered a special character that breaks it?
55] WARN umbraco.macro - [Thread 40] Error loading MacroEngine script (file: MvcRenderContourForm.cshtml, Type: ''. Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Umbraco.Forms.Core.Services.RecordService.Open(Boolean triggerworkfows) in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Core\Services\RecordService\RecordService.cs:line 107
at Umbraco.Forms.Mvc.Controllers.FormRenderController.ContourForm() in f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Mvc\Controllers\FormRenderController.cs:line 80
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.
This error is due to the 'index 'paramater not being in the array.
using string[] s = ["a","b","c"]; as an example.
If you call s[3] the same error message will come up.
In this case the length of the array is 3 but we are requesting the 4th index value in the array.
Arrays always start at a index of 0.
I suspect that this is the case with one of the dropdowns or list that is built at run time.
Please can you post the content of these cshtml files to assist in the debugging process.
d:\WWWroot\INTRANET\MacroScripts\MvcRenderContourForm.cshtml
f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Mvc\Controllers\FormRenderController.cs
Cant open the Form
Need some help on bringing back a form that seems to not render anymore. Other forms opens and renders fine but this particular one doesnt.
Using the latest Contour on 7.1.8, one of the form upon clicking doesnt show the designer. Export doesnt show the fields that was created before.
When i check the log, the following exception shown. Anyone knows which table holds the tooltip section in the UF tables, perhaps editor entered a special character that breaks it?
Hi keilo,
This error is due to the 'index 'paramater not being in the array.
using
string[] s = ["a","b","c"];
as an example.If you call
s[3]
the same error message will come up. In this case the length of the array is 3 but we are requesting the 4th index value in the array.Arrays always start at a index of 0.
I suspect that this is the case with one of the dropdowns or list that is built at run time.
Please can you post the content of these cshtml files to assist in the debugging process. d:\WWWroot\INTRANET\MacroScripts\MvcRenderContourForm.cshtml f:\TeamCity\buildAgent\work\fd622d7f786e1305\Umbraco.Forms.Mvc\Controllers\FormRenderController.cs
is working on a reply...