Invalid structure data for section ... after updating to 3.5.x

Hello all,

we started building a Kirby website before the release of 3.5. and used the kirby-builder plugin to create a more “complex” page structure. admittedly, we have not been able to work on the website for a while.
now version 3.5. has been released and the builder has moved into the core.
I think we have done the “migration”, but there seem to be problems now.
after i made a small content change, the following error message appears and the text file for the content has changed as follows.
Kirby \ Exception \ InvalidArgumentException (error.invalidArgument)
Invalid structure data for “sectionfields” field on parent “Home”

before:

Mybuilder:

- 
  sectionfields:
    - 
      text: Ab hier geht der ContentBuilder los
      identifier: ""
      class: ""
      paddingtop: ""
      paddingright: ""
      paddingbottom: ""
      paddingleft: ""
      margintop: ""
      marginright: ""
      marginbottom: ""
      marginleft: ""
      style: ""
      container: ""
      grid: 'false'
      bgcolor: ""
      bgimg: [ ]
      parallax: 'false'
      animation: ""
      bgvideo: ""
      _key: bodytext
      _uid: bodytext_1602016526581_3589
      csssettings: null
      paddingsettings: null
      marginsettings: null
      stylesettings: null
      bgsettings: null
      effectsettings: null
  identifier: ""
  class: ""
  paddingtop: ""
  paddingright: ""
  paddingbottom: ""
  paddingleft: ""
  style: ""
  container: container
  grid: 'false'
  bgcolor: ""
  bgimg: [ ]
  parallax: 'false'
  animation: ""
  bgvideo: ""
  _key: section
  _uid: section_1602016524185_3391
  csssettings: null
  paddingsettings: null
  stylesettings: null
  bgsettings: null
  effectsettings: null

after:

Mybuilder: [{"content":{"sectionfields":"[{\"content\":{\"text\":\"Ab hier geht der ContentBuilder los\",\"identifier\":\"\",\"class\":\"\",\"paddingtop\":\"pt-1\",\"paddingright\":\"\",\"paddingbottom\":\"pr-1\",\"paddingleft\":\"\",\"margintop\":\"\",\"marginright\":\"\",\"marginbottom\":\"\",\"marginleft\":\"\",\"style\":\"\",\"container\":\"\",\"grid\":\"false\",\"bgcolor\":\"\",\"bgimg\":[],\"parallax\":\"false\",\"animation\":\"\",\"bgvideo\":\"\",\"start\":\"\",\"breite\":\"\",\"zeile\":\"\",\"ausrichtung\":\"\",\"anzeige\":\"\",\"startsm\":\"\",\"breitesm\":\"\",\"zeilesm\":\"\",\"ausrichtungsm\":\"\",\"anzeigesm\":\"\",\"startmd\":\"\",\"breitemd\":\"\",\"zeilemd\":\"\",\"ausrichtungmd\":\"\",\"anzeigemd\":\"\",\"startlg\":\"\",\"breitelg\":\"\",\"zeilelg\":\"\",\"ausrichtunglg\":\"\",\"anzeigelg\":\"\",\"startxl\":\"\",\"breitexl\":\"\",\"zeilexl\":\"\",\"ausrichtungxl\":\"\",\"anzeigexl\":\"\",\"startxxl\":\"\",\"breitexxl\":\"\",\"zeilexxl\":\"\",\"ausrichtungxxl\":\"\",\"anzeigexxl\":\"\"},\"id\":\"d08218f4-931d-4973-ae24-f9f1f7cf61ab\",\"isHidden\":false,\"type\":\"bodytext\"}]","identifier":"","class":"","paddingtop":"","paddingright":"","paddingbottom":"","paddingleft":"","style":"","container":"container","grid":"false","bgcolor":"","bgimg":[],"parallax":"false","animation":"","bgvideo":""},"id":"38524251-8e18-4e16-bc85-117dd764b9bf","isHidden":false,"type":"section"}]

Does anyone have an idea what the problem is and how we can solve it?
Thank you!

Somehow, the original structure looks off (unless that’s a copy/paste error, but the indentation is somehow wrong) and therefore probably the resulting json after bodytext.

Hi Sonja,

thanks for your reply.
I don’t quite understand what you mean.
the “before” structure works fine. after updating und saving the page the error appears.

do you think it is a good way to update an “old” system with kirby-builder or do you think it is better to start from scratch with kirby 3.5.x

its kind of frustrating, because we had a working system before upgrading. now, we cannot change any content without having this error.

any ideas how we can fix this error?

my content builder yaml looks like this. i think there must be something wrong. maybe with fields-> sectionfields->fieldsets?

icon: text
columns:
  left:
    width: 2/3
    fields:
      builder:
        label: Seiteninhalt
        type: blocks
        #columns: 1 # Optional. If set to 2 or more, the builder blocks will be places in a grid.
        #max: 10 # Optional. Limits the number of builder blocks that can be added.
        fieldsets:
          section:
            label: Section {{identifier}}
            tabs:
              content:
                label: Inhalt
                icon: edit
                fields:
                  sectionfields:
                    type: blocks
                    label: Section Content
                    fieldsets:
                      bodytext: blocks/bodytext
                      img: blocks/img
                      wrapper: blocks/wrapper
              settings: 
                extends: fields/sectionSettings
          #quote: blocks/quote
          bodytext: blocks/bodytext
          #events: blocks/events
          img: blocks/img
  right:
    width: 1/3
    sections:
      content:
        type: fields
        fields:
          bodyClass: 
            type: select
            options:
              bg-primary
              bg-dark
              bg-light
            label: CSS Klasse für <body>
      files:
        type: files
        headline: Dateien