April 20, 2010, 06:05 PM
cokeyngError saving transformation file
Hi All,
I got the following error when I try to save a transformation.
Could not load Error on line 1: Content is not allowed in prolog for {1}.{2}.
any idea what to check?
Thanks
Cokey
April 20, 2010, 07:03 PM
Dan SatchellClick on the Advanced Search link at the top of this forum page and search on "Content is not allowed in prolog" (you must first login to the IBI Tech Support site). The search will display a number of cases having to do with this error message. One of them might apply to your situation.
April 22, 2010, 05:26 AM
AdeHHi,
That's an XML parsing error of course, and usually means that your xml is missing an XML declaration.
I don't know how your tranform could be missing the declaration though...
Try looking at the template tab in transformer, and see if your transform's xml looks well formed?
April 23, 2010, 11:07 AM
cokeyngI think I find what the issue is, but don't understand how and why it happened.
The xml file that I used for input dictionary is split from a iterator object. I saved it as xml file for the following transform object. But the xml file itself has encoding="UTF-16". I also selected UTF-16 when specifying the file. As soon as I changed it back to UTF-8, it works just fine.
Any idea?
April 29, 2010, 05:24 PM
NanIn your transformer, When you select the filename in the "open" dialog box for Input, the last option will be encoding. Choose UTF-16. This should solve your problem and you need not change the file content.
Nan