Copied to clipboard

Flag this post as spam?

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


  • Elisha 9 posts 99 karma points
    Jul 13, 2021 @ 11:27
    Elisha
    0

    Can't delete Umbraco Form

    When trying to delete a form, I'm getting error 500 in DeleteByGuid function:

    enter image description here enter image description here

    enter image description here

  • Brendan Rice 538 posts 1102 karma points
    Jul 13, 2021 @ 12:06
    Brendan Rice
    0

    It sounds like the json that represents the form is malformed.

    Try look in the following location at the json forms files and get the matching form id (a5b003...):

    \App_Data\UmbracoForms\Data\forms
    

    The error seems to be saying there is an extra character in the form id, maybe look at the id and see if it matches the GUID pattern:

    xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    Also expand out the name in the network tab and post it here (the 500 message URL from the screengrab)

    Hope this helps.

  • Elisha 9 posts 99 karma points
    Jul 13, 2021 @ 12:17
    Elisha
    0

    Hi, thanks for your response! I located the corresponding json file and checked its validity - it has valid json structure: here is the json: enter image description here

    line 10, position 1

    @Brendan Rice,

    Request URL: https://siinew.ewavetest.com/umbraco/backoffice/UmbracoForms/Form/DeleteByGuid?guid=a5b003ae-8671-45fa-8fae-8a36cc8ecfd9

  • Brendan Rice 538 posts 1102 karma points
    Jul 13, 2021 @ 12:29
    Brendan Rice
    0

    That looks like the fieldSets id you're look at.

    Collapse the "pages" node in the editor and look for the id. Post an image.

  • Elisha 9 posts 99 karma points
    Jul 13, 2021 @ 12:31
    Elisha
    0

    enter image description here

  • Brendan Rice 538 posts 1102 karma points
    Jul 13, 2021 @ 12:42
    Brendan Rice
    0

    The json looks fine, weird.

    Try remove that file from the folder and restart the app/admin area.

    Umbraco forms are kept in the file system by default.

  • Elisha 9 posts 99 karma points
    Jul 13, 2021 @ 13:23
    Elisha
    100

    SOLVED: Before deleting the form it was necessary to delete any custom workflows that were associated with that form and only after that I was able to delete the form itself.

    enter image description here

    I don't know if that should work this way, haven't find anything like that in documentation.

Please Sign in or register to post replies

Write your reply to:

Draft