6 Replies Latest reply on Aug 25, 2015 11:30 AM by BnJnPnS

    Long file names causing problems with metadata updates?


      I am running Lightroom CC (2015) on W7 SP1.  I imported some photos of a 2-hour event from that another person had loaded on to their PC.  They must have changed their camera batteries halfway through the show, because about half of the capture times were 5 hours ahead of the real times.


      I went to Metadata -> Edit Capture Date and Time to alter the time on 8 of the pictures.  I selected all the pictures and tried to apply -5 hours to the capture time.  It only changed the time on the first photo.  When I selected the second photo and tried it individually, it subtracted ANOTHER 5 hours off of the first photo!!!  After fixing up the first photo and moving it completely out of the folder, I tried again.  It STILL subtracted another 5 hours from the first photo, even though it was not selected and was completely out of the folder (both in the catalog and on disc).  Yikes!


      Finally, I noticed that the button on the "Edit capture date and time" window always said "Change", never "Change All" , even when I had multiple files selected.  Lightroom didn't seem to recognize these photos as separate files.  It could only "see" one of them, and that's the one it kept updating, no matter where it was located.


      I noticed that the file names the other person used when they had copied the photos onto their computer were very long, (39 characters) and the only differentiating part were three digits in characters 37-38-39.  I deleted all the photos and re-imported them, giving them much shorter names.  When I went to add the tags back on, I couldn't add tags to any of the files.  Lightroom thought it was working OK, but it wasn't actually adding any tags.  After I exited LR and started it up again, everything suddenly started working much better (with the shorter file names).  The tags all went on without a hitch, and I was able to easily make all the capture time adjustments en masse.


      My theory is that the long files names assigned to the files I imported had something to do with these bizarre behaviors, and that once the metadata updater process got "confused", it never recovered until I renamed, reimported, and also stopped running LR and restarted it.  Sounds simple looking back, but it took quite a while to figure out!!!


      Does anybody know if there is a practical limit to file name sizes in LR that's shorter than the Windows 7 limit?  For example, maybe the metadata update process has a buffer for holding the file name is limited to 32 or 36 characters?  Either of those limits would have rendered all of my imported files indistinguishable from each other.

        • 1. Re: Long file names causing problems with metadata updates?
          Ian Lyons MVP & Adobe Community Professional

          In Library Loupe view it's the most selected  photos that your changes are applied to. So, make sure that you're working in Library 'Grid' view, not Loupe view.

          • 2. Re: Long file names causing problems with metadata updates?
            BnJnPnS Level 1

            Yup.  I was in Grid view the whole time because I was trying to change metadata in multiple photos.  But even when I selected only one photo from the grid view and went into "Edit Capture Date Time" sub-window with the selected photo's thumbnail showing in that sub-window, it still failed to change that photo's capture time and instead changed the capture time on a completely different file that wasn't even part of the original grid view and was not being displayed in the "Edit Capture Date and Time" sub-window!


            The only thing that fixed it was shortening the file names so that the sequence numbers that differentiated them weren't so far away from the beginning of the file name.  Just wondered if anyone knew what the "practical" LR limit was for length of filenames.

            • 3. Re: Long file names causing problems with metadata updates?
              trshaner Adobe Community Professional & MVP

              Does the complete path name exceed the 260 character Windows limit?


              Naming Files, Paths, and Namespaces (Windows)

              • 4. Re: Long file names causing problems with metadata updates?
                BnJnPnS Level 1

                No, they are much shorter than 260 characters.  As I mentioned in my original post, all of the file names were 39 characters long.  But they all had the same 36-character string as a prefix, with the only differentiating characters being 3-digit sequence numbers in characters 37-38-39.  They actually imported from the thumb-drive into LR and Windows 7 just fine.  It was only when I tried to update their metadata that I ran into problems.

                • 5. Re: Long file names causing problems with metadata updates?
                  trshaner Adobe Community Professional & MVP

                  Try copying one of the files from the USB drive using Windows Explorer to your desktop. Import the file from your desktop into LR and see if you can now edit the capture time.

                  • 6. Re: Long file names causing problems with metadata updates?
                    BnJnPnS Level 1

                    Hi trshaner:


                    I copied all 58 photos from the USB drive to a folder on my C: drive.  That all went fine so there is no issue with the length of the file path+names, or Windows would have barfed during the copy.  In fact, I've discovered that the source of this problem is occurring during the Lightroom import and has nothing to do with file name length, although that initially appeared to be a factor.  So technically, this thread should be shut down.  But if you're interested in what I discovered... read on.


                    After I made the copies from USB drive to my hard drive (and before any Lightroom import), I was using the properties function from Windows Explorer to look at the "Taken Date and Time" for some of these photos.  When viewed from Windows Explorer, they were ALL correct !!! This was the case on both the USB drive and the copies on my hard drive.


                    Then I went into Lightroom to import them from my hard drive.  After setting up Imports from my hard drive several times, I discovered that Lightroom was shifting the "time taken" forward by 5 hours on different subsets of the 58 files each time I started an import.  WEIRD!!  Sometimes it would be just the last 5 photos, sometimes just the last 6.  Other times the "time shifters" would be scattered in small groups throughout the 58 photo files.  It seems to somewhat random as to how many and which photos get their time-taken shifted with each new import attempt.


                    If I go ahead and finish importing some of these "time shifters", they come into the catalog just fine (except for the wrong taken time).  But if I immediately try to alter the "time taken" in the metadata, I get all the weird symptoms that I described in my original write up, such as adding an hour to the third photo actually adds an hour to the first photo, even though the first photo is not selected..  However, if I immediately exit LR after the import and then run it again, all the taken-times are still wrong, but the metadata updates work normally like you'd expect.


                    I have found some other threads about people getting their date taken shifted by x hours, sometimes even 5 hours exactly, but it's usually related to time zone settings in their cameras while they're traveling.  Since my situation is random from one import to the next, and all these photos were taken at the same location in a two-hour span anyway, that's not the case here.  But the photos weren't taken on my camera, and I don't know what that camera was putting into its metadata and EXIF data, etc.


                    So... I don't think this one is worth any more of our time!  Thanks for your thoughts.