Copied to clipboard

Flag this post as spam?

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


  • Kyle 10 posts 90 karma points
    Jan 17, 2024 @ 22:29
    Kyle
    0

    Error publishing pages with Umbraco Forms after upgrade from 11 to 12

    I have a site that I recently upgraded from Umbraco 11 to Umbraco 12.3.6. Umbraco Forms is installed on this site and I upgraded that as well.

    Since the upgrade, I've been having issues saving pages that have Umbraco forms within them. Specifically, I have been getting this error:

    enter image description here

    It looks like every time the page saves, it is trying to insert a new record into this relations database between the page/form, and fails when there already is one.

    I have been able to get the pages to save by removing those records from the database, but the problem happens again the next time you save the page.

    Removing the form and re-adding it also does not fix this - any thoughts or solutions to this issue?

  • Luuk Peters 85 posts 330 karma points
    Jan 23, 2024 @ 15:10
    Luuk Peters
    100

    You get this error when you are using forms in nested content or block list. This is a bug: https://github.com/umbraco/Umbraco.Forms.Issues/issues/1129

    As far as I know, there is not a fix for this, but there is a work around. In Umbraco Forms 12.2.2 a new setting was introduced:

    https://docs.umbraco.com/umbraco-forms/v/12.forms.latest/developer/configuration#disablerelationtracking

    Setting this setting to true will fix the error. The relation tracking is for tracking on what pages a form is used. This functionality will be disabled. But at least you don't get the error anymore until it's fixed.

Please Sign in or register to post replies

Write your reply to:

Draft