[OpenVPMS Developers] 1.6b3 Read error when using Arc hetype/Import
I wanted to clone an archetype. There being no Copy function on the Administration|Archetypes screen, I thought 'no worries - I will export, edit and then import'. I successfully exported the archetype, edited it to change its name and display name, and then saved it under a different file name in the same download folder that it had been exported to.
I then went back to the Administration|Archetypes screen and clicked Import. It asked me for the file name and I browsed to it and selected it. I then pressed Send and got the Red Error pop up saying ???? Read Error ????
The first few lines of the error text are below. I have no idea whether this is a bug, or I am doing something wrong.
Regards, Tim
> >1.6-beta-3 >4887 >???ReadError??? > >org.openvpms.component.business.domain.im.archetype.descriptor.DescriptorException >???ReadError??? > > org.openvpms.component.business.domain.im.archetype.descriptor.DescriptorIOHelper.read(DescriptorIOHelper.java:57) > org.openvpms.component.business.domain.im.archetype.descriptor.ArchetypeDescriptors.read(ArchetypeDescriptors.java:112) > org.openvpms.web.app.admin.archetype.ArchetypeCRUDWindow.loadArchetypes(ArchetypeCRUDWindow.java:205) > org.openvpms.web.app.admin.archetype.ArchetypeCRUDWindow.upload(ArchetypeCRUDWindow.java:188) >
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf
Re: [OpenVPMS Developers] 1.6b3 Read error when using ...
This was my problem. My editor was adding the UTF-8 BOM (0xEFBBBF3C) at the start of the file - switching to UTF-8(No BOM) encoding fixed things. Its interesting that the dataload program will happily handle the BOM, but archload and the web app Archetype/Import function will not. [I switched the editor to UTF-8 when I had to create the the XML files to dataload macros containing chinese characters.]