Error on migrated New item form - SP 2019 to Online

I have started migrating forms from SP 2019 to Online. The first forms I am migrating are for a calendar. I have exported and then imported the forms using the forms designers to the migrated list.

The Edit and Display forms work as expected, however, I am receiving the following error when loading a New item form:

I have commented out all custom JavaScript to eliminate that.

Hello @Andrew,
How are you performing the migration? Are you using the import/export functionality from the form settings?

Hello @nikitat

Yes I'm exporting from the on-premise form designer and importing in the new designer

Hi @Andrew,
We would need some additional diagnostics from your side. Can you please contact us via support@plumsail.com and send us a HAR file and a screen recording?

For the screen recording, please include the browser's address bar.

To record a HAR file, follow these steps:

  1. In Edge browser, open the list with the erroneous form.
  2. Open DevTools by pressing Ctrl+Shift+I and switch to network tab.
  3. Refresh the page and then try to create a new list item.
  4. Wait until you receive the error message.
  5. Export the HAR file by pressing the export button, located at the top of the DevTools panel:

I've looked into it more and found that the 500 (Internal Server Error) line in the console above is due to the decodeUrl parameter being repeated, giving an incorrect list reference:

(decodedUrl='%2FLists%2FCalendarLists%2FCalendar')

Should be

(decodedUrl='%2FLists%2FCalendar')

In this case the new form is triggered when clicking on '+New' or double clicking the specific day's cell in the classic calendar UI. Hence the issue is likely to be associated with migrating and using a classic calendar UI in SharePoint online.

As I don't need to trigger the form in this way I have instead used the plumsail list web part and this correctly launches the new form.