How to Fix Malformed SOM Expression Errors in Acrobat PDF Forms
Question details
The user is unable to open a specific PDF form due to a scripting error message and needs a way to resolve the issue to view or fill out the document.

- Product
- Adobe Acrobat
- Device & OS
- Windows
- Scenario
- Opening and attempting to view or fill out an interactive PDF form.
- Observed behavior
- Adobe Acrobat displays the error 'Malformed SOM expression: form 1[0].#subform[0].' when the PDF is opened. Standard troubleshooting, such as reinstalling or updating Acrobat, does not fix the issue.
Verify whether this error occurs with all PDF files or just one specific form. This will help confirm that the issue lies with the individual file's embedded scripts rather than your PDF reader software.
Contact the PDF Form Creator
This error is typically embedded in the PDF's LiveCycle or XFA form scripting rather than being an application issue. Reaching out to the creator is the most effective solution.
A SOM (Scripting Object Model) expression error indicates a syntax issue in the embedded JavaScript of the PDF form itself. Because you did not author the file, you cannot correct the underlying code, and reinstalling your PDF reader will not bypass the file's internal errors.
Determine the organization, website, or individual from whom you downloaded or received the problematic PDF form.
Contact the author's support team and provide the exact error message: 'Malformed SOM expression: form 1[0].#subform[0].'.
Ask the creator to provide a fixed version of the PDF or an alternative standard PDF format that does not rely on complex XFA scripting.

Inspect and Fix SOM References (For Form Creators)
If you created the PDF form, you must open your design software to locate and correct the malformed syntax.
Open and Manage PDFs Seamlessly with WPS Office
Avoid complex script execution errors by using WPS Office to view, fill, and manage your standard PDF documents. WPS PDF offers a lightweight, fast, and highly compatible reading experience.
- 1. Download and install: Visit the official WPS Office website to download and install the free suite on your Windows PC.
- 2. Open WPS PDF: Launch the application and select the 'PDF' tab from the main interface.
- 3. View your documents: Click 'Open' to select your PDF files and enjoy a streamlined, error-free reading and editing experience.

Frequently Asked Questions
What does 'Malformed SOM expression' mean?
A SOM (Scripting Object Model) expression is a syntax used in Adobe XFA forms to reference objects, values, or properties. A 'malformed' error means there is a typo, syntax error, or broken reference in the PDF form's underlying JavaScript.
Will reinstalling Adobe Acrobat fix this error?
No. Reinstalling or updating Adobe Acrobat usually does not resolve this issue because the error is embedded directly within the code of the specific PDF file, not the Acrobat application itself.
Can I bypass the SOM expression error to just print the form?
You may be able to bypass the script execution by temporarily disabling JavaScript in Acrobat. Go to Edit > Preferences > JavaScript, uncheck 'Enable Acrobat JavaScript', and try opening the document again to view or print the static fields.




