Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Almström 33 posts 159 karma points
    Sep 21, 2016 @ 13:27
    Martin Almström
    0

    Error when creating new form

    Our customer is getting this error when creating a new umbraco form in the backoffice.

    They can edit existing forms (including workflow).

    One strange thing is that when they edit a form a new form is created called "null" with EmptyGuid as id (00000000-0000-0000-0000-000000000000).

    Running UmbracoCMS 7.4.3 and UmbracoForms 4.3.2

    Error that occures when trying to create a new form. Happens when they hit Save.

    EXCEPTION DETAILS:
        System.NullReferenceException: Object reference not set to an instance of an object.
        STACKTRACE:
        at Umbraco.Forms.Web.Editors.FormController.<>c__DisplayClassf.<SaveForm>b__8(Form x)
           at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
           at Umbraco.Forms.Web.Editors.FormController.SaveForm(FormDesign formData)
           at lambda_method(Closure , Object , Object[] )
           at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
           at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
    
  • Kenneth Solberg 227 posts 418 karma points
    Oct 20, 2016 @ 12:55
    Kenneth Solberg
    0

    Hi, we're experience the same problem. Did you solve it?

  • Martin Almström 33 posts 159 karma points
    Oct 20, 2016 @ 13:08
    Martin Almström
    0

    No, we still have this issue.

  • Roelof Nijholt 7 posts 77 karma points c-trib
    Nov 29, 2016 @ 14:26
    Roelof Nijholt
    0

    Hi Martin and Kenneth,

    We have the exact same issue with one of our customers. Has any of you found a solution in the mean time?

  • Martin Almström 33 posts 159 karma points
    Nov 29, 2016 @ 16:35
    Martin Almström
    1

    Hi Roelof!

    The problem for us was that we had placed the data-folder under UmbracoForms on another drive, to secure it from deploy overwrites. Then we had just made a virtual folder pointing at that share.

    When using this approach, as we do with media and logs, UmbracoForms just stops working. It starts to create EmptyGuid-files and throwing strange errors.

    This is a serious issue, for us, not saving the form-data in database, since we use automatic deploys with Octopus Deploy and need to keep user generated data out of the web root folder. But thats another story...

    Hope this could be of any help to you.

    Regards, Martin

  • Roelof Nijholt 7 posts 77 karma points c-trib
    Nov 29, 2016 @ 16:47
    Roelof Nijholt
    0

    Hi Martin!

    I did use the same virtual folder approach here, and suspected this might be the cause, but when I reverted this situation the problem persisted. Might have forgotten to restart perhaps, or something else, have to look into that. We have the same requirements regarding automatic deployment, so I'm sorry to hear the virtual directory approach doesn't work, as it does for media. Anyway, many thanks for answering!

    Best regards, Roelof

  • Kenneth Solberg 227 posts 418 karma points
    Nov 29, 2016 @ 18:53
    Kenneth Solberg
    1

    Hi Roelof, in my case there was a form with no name set & was null. Simply setting a name on the affected form fixed the problem.

  • Roelof Nijholt 7 posts 77 karma points c-trib
    Dec 01, 2016 @ 10:02
    Roelof Nijholt
    0

    Hi Kenneth,

    It appears we had both a virtual data folder and a null form in the list of forms. Going back to the physical data folder did not work, but simply naming that null form did fix it! So thanks for taking the time to answer!

    best regards, Roelof

  • James Jackson-South 489 posts 1747 karma points c-trib
    Dec 05, 2016 @ 01:23
    James Jackson-South
    0

    Getting the same issue here but not using a virtual folder and no un-named forms.

    Tearing my hair out with frustration!

  • Roelof Nijholt 7 posts 77 karma points c-trib
    Dec 05, 2016 @ 08:04
    Roelof Nijholt
    0

    Hi James,

    You could try saving each form individually. Perhaps a workflow json file is gone missing or something. Or perhaps you could try an upgrade (if available). That might restore things gone wrong. Our case, where a form without a name is preventing creation of a new form, was also rather unexpected.

Please Sign in or register to post replies

Write your reply to:

Draft