If you use .File.UniqueID , see this post, some potential issues are detailed and some work-around are suggested
.File.UniqueID