[Solved] KeyNotFound exception going from Form pag...
# help-with-umbraco
c
V13.6.0 UF13.4.0 Anyone know why a UF multipage form that was working locally 10 mins ago should suddenly fail when clicking "next" to go to it's second page? Error on the page is :- An unhandled exception occurred while processing the request. KeyNotFoundException: The given key '90a4c335-34a4-4243-a727-a5b6f1766820' was not present in the dictionary. System.Collections.Generic.Dictionary.get_Item(TKey key) I can see it's a Password type field on page 2 in the formName.config file. If I delete it's id, it returns exactly the same when the form is saved, but it still errors. Here's the field's uSync config:
Copy code
{
  "caption": "Password",
  "tooltip": null,
  "placeholder": null,
  "cssClass": null,
  "alias": "password",
  "id": "90a4c335-34a4-4243-a727-a5b6f1766820",
  "fieldTypeId": "fb37bc60-d41e-11de-aeae-37c155d89593",
  "prevalueSourceId": "00000000-0000-0000-0000-000000000000",
  "dataSourceFieldKey": null,
  "containsSensitiveData": true,
  "mandatory": false,
  "regex": "",
  "requiredErrorMessage": null,
  "invalidErrorMessage": null,
  "condition": {
    "id": "fc94f2c6-fff1-47d8-9fdd-2352e88eaf5e",
    "enabled": false,
    "actionType": "Show",
    "logicType": "All",
    "rules": []
  },
  "settings": {
    "Placeholder": "",
    "ShowLabel": "True"
  },
  "preValues": [],
  "allowedUploadTypes": null,
  "allowMultipleFileUploads": true
}
I've tried clearing cookies, purging caches, restarting (error is only on localhost) but nothing fixes it. Would be grateful for advice.
Where is the dictionary it's talking about, is it accessible or buried in a dll somewhere? I've tried deleting the Umbraco/Data/Temp folder but it still gives an error.
In the end I had to delete the whole form (it was a big form), delete Umbraco/Data/Temp and reinstall it via uSync. Then removed it from the RTE, saved the page then put the form back in the RTE. Now working. No idea why it got screwed up.
3 Views