Problem
The Klai formgen.vue runtime reported a missing clearValidationErrors method across many pages after deploying from Development to Testing. The schema appeared identical between environments.
Troubleshooting
- Check schema elements for missing or incorrect
typekeys and malformed or empty JSON objects. - If the problematic element is not obvious, copy the page and remove roughly half of the schema at a time (binary dissection) until the offending section is isolated.
- Verify that the source and target environments use the same base code version.
Workaround
Reset the base code version to V2 and then set it back to V3 before deploying. This resolved the issue, suggesting that the deployment process did not correctly apply the selected base code version. For future staging or production deployments, set the desired base code version first and then deploy.
Thread Attachments
Original Slack Thread
User U06Q27Y8TL6: More context from MCP:
I couldn’t resolve the missing `clearValidationErrors` method through the app schema: the failing call is in Klai’s `formgen.vue` runtime, and I found no editable implementation in Testing’s page or site actions.
User U06Q27Y8TL6: Any insight on the above?
User U06Q27Y8TL6: <@UBBJX2EHM> any ideas for the deployment issue?
User UBBJX2EHM: The clear validators error is most certainly a bad schema element. Either missing type key, or a wrong one.
Is the test end new?
Is the barcode version the same?
When are the offending page? I would have a quick look at the schema for any bad or empty elements - bad JSON objects
User UBBJX2EHM: You can also try removing half the schema on the page, copy the page 1st, and do a binary dissection to find out where it is
User U06Q27Y8TL6: It is almost all pages and the test env is not new.
The base code version was not the same when deploying but it warned me and then asked me if updating to new base code was ok, which I agreed to.
User UBBJX2EHM: Did you confirm it is the same?
User U06Q27Y8TL6: testing env:
User U06Q27Y8TL6: dev env:
User U06Q27Y8TL6: MCP says that all schema code is identical
User U06Q27Y8TL6: Digging a bit deeper with MCP, its says to report this to you in support:
Ask Klai to check Testing’s runtime provisioning and confirm whether it can serve the build that works in Development. The deployment preview says another Development → Testing deploy copies pages and site settings while retaining Testing’s environment settings, so verify the served bundle separately.
User U06Q27Y8TL6: <@UBBJX2EHM> I set the base code back to V2, then set it back to V3 and this seems to have solved it. So whatever it does on deployment in changing the base code version doesn’t seem to work.
For deployments to our staging and production I will set the base code first and then deploy.
User UBBJX2EHM: Hmmm interesting. Will report this to investigate.

