Error Message: Duplicate XMP Property

Started by Luc, March 16, 2011, 05:53:42 PM

Previous topic - Next topic

Luc

Hello:

For some time have I been using two programs that use ExifTool, namely ImageIngester Pro and GeoSetter, the second program being used to link GPS data from a separate .gpx tracks file to each photograph ingested with ImageIngester.

Just recently, however, the following error message showed up when trying to save GPS data in GeoSetter to the sidecar XMP file that was initially created by ImageIngester: "Error: [minor] Duplicate XMP property: mediapro:CatalogSets/rdf:Bag/rdf:li 10 - [location of file]." (See attachment.)

This error message occurs only when enabling the writing of metadata in ImageIngester (when disabled, II doesn't create separate XMP files), but didn't occur with earlier versions of ExifTool (XMP sidecars for photographs taken longer ago indeed don't show any "CatalogSets" data; unfortunately, I can't tell exactly which versions of ExifTool were used at the time of previous ingestions because GPS data aren't added to all of my photographs).

Because the error report states that "ExifTool reported errors/warnings on # of # images," I presume it's a bug in ExifTool, not one in either of the other programs.

I would appreciate it if this (minor) bug could be fixed. If it does appear to be a bug in either of the other programs, please let me know and I'll report it to their forums also.

Thank you for any advice or corrective action.

Luc

Phil Harvey

Hi Luc,

Quote from: LucN on March 16, 2011, 05:53:42 PM
Because the error report states that "ExifTool reported errors/warnings on # of # images," I presume it's a bug in ExifTool, not one in either of the other programs.

90% of the time (or more), errors like this are due to a bug in the other software.  ExifTool has been reading/writing XMP longer than most other software packages on the market.

If you can attach a sample .XMP file that demonstrates this error, I will analyze it to see where the problem is.

- Phil

P.S. The exiftool -m option may be used to force writing of files containing minor errors like this, but it is possible that some information will be lost if you do this.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Luc

Hi Phil:

Thanks for your quick reply.

Attached please find a sample XMP file that created the error message in GeoSetter.

For what it's worth, I've tried copying ExifTool versions 8.42, 8.50, and 8.51 into the ImageIngester and Geosetter program files (these are the only versions I have a copy of), but all with the same result. XMP files through 8/2010 didn't show any CatalogSets data, which only showed up in files as of 9/2010 (but without ever creating any problem; but again, I have no track of which version of ExifTool was used at the time, in either II or GeoSetter). The attached file, however, does show "<mediapro:CatalogSets> <rdf:Bag> <rdf:li></rdf:li> </rdf:Bag> </mediapro:CatalogSets>" twice, which made me presume it created the "duplicate XMP property" error message in GeoSetter.

Maybe GeoSetter is overly cautious (pardon the layman's explanation), in which case please let me know and I will contact them as well.

Again, thanks for your reply (and providing a great tool).

Luc

Phil Harvey

Hi Luc,

Yes.  The MediaPro information is duplicated in this image.  This should not happen, and is a problem with the software that wrote the file (ImageIngesterPro).

Luckily, both sets of MediaPro tags are empty.  So although the duplicate information will be removed, no useful information will be lost by rewriting this with the exiftool -m option.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Luc

Hello Phil:

Thanks again for your quick reply. The "ExifTool -m option" is beyond my computer skills, I'm afraid, but I'll get in touch with the ImageIngester to look into this from their side.

Best regards.

Luc

Phil Harvey

Hi Luc,

Since it is based on ExifTool, I imagine that there is a way to "Ignore Minor Errors" in Geosetter (although I have never used it so I can't say for sure).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).