Expand my Community achievements bar.

Malformed SOM expression

Avatar

Former Community Member
Hello,



I have been involved in developing forms for the past 6 months. Recently, for the past 3 weeks, we have encountered unusual errors in the forms.



(1) A couple of the forms, upon opening, there's a error message box popped up: "Xml parsing error: duplicate attribute (error code 8), line xxxxx, column xx of file". Tried to diagnose this problem, however, couldn't really come up with a conclusive diagnostic.



(2) There is a requirement that user can still use Adobe Reader 7.0.0 to view and print the forms. This requirement used to be satisfied, but now, there's a popup error message box saying "Malformed SOM expression: name[*]". Similar to the first problem, there wasn't any information in regards to this error message.



Things that we have done that might have caused this error:

(1) We have changed the schema that was used to build the form, to include "nillable" property in some elements in the schema. The modified schema is still valid and well-formed.



We have been scratching our heads in dealing with this problem. First of all, we do not really know what are those error messages mean? If any of you could point us to the right direction or provide any sort of information that could lead to resolution of this problem, we would be grateful.



Thanks

Alvin.
2 Replies

Avatar

Former Community Member
When I've seen the error message you describe (or at least something similar), it's always quoted a file path and file name for something located in my Temp folder under Local Settings (I'm using Windows).

I got this kind of error message telling me there was 'junk encountered after pdf element' or something. Obviously not the same as you but an XML Parsing Error all the same.

I managed to find the .xdp file it was quoting, hiding away in my Temp folder - I opened it in Notepad and sure enough I could see that some spurious HTML had been added to the bottom.

I shan't bore you with the details of how I fixed it and why that was happening in the first place...

Basically, all I'm saying is, look for the file that's hopefully being quoted in your error message. Open the file up in a text editor and have a look. Sounds like "duplicate attribute" might mean there's 2 of something where only 1 is expected. Maybe open the file up in an XML editor (e.g. XML Spy) and see if you can validate it against your schema?



Good luck.

Avatar

Former Community Member
And the reason for looking for the file as described is because Windows was obviously creating a temporary version of the downloaded XDP to allow Adobe Reader to launch and read it. So looking at the content of the temp file showed what was being picked up by Adobe Reader.