Problem with copying image from one table to another

Hey,

I have two tables (let’s call it A and B). Both have the same picture field.

I create a new record in table B and link it with existing record in table A.

I have a script that when I link those records it copies the picture field from table A to table B.

It’s super easy and it looks something like this:
doo.model.pictureFieldB.setValue(doo.model.tableA.value.pictureFieldA)

For 2 years everything workied perfectly. Now I have a problem. When I try to download this copied picture from table B i get this:

Attachment download failed. Contact your application administrator. Exception of type ‘CorkSolutions.Tabidoo.CoreLib.Exceptions.AttachmentDownloadException’ was thrown. (FileId:‘95162902-2506-4186-a367-1ac2f8f085fa’, ApplicationId:‘f813d698-4dee-4f6e-a62b-2ce582884752’, IsDefinitionImage:False) | GridFS file not found: revision -1 of filename “95162902-2506-4186-a367-1ac2f8f085fa”.

This is the first time I got this message.

Is there another way to copy picture from table A to table B instead of showing the linked field from table A?

Hi,

Attachment download failed. Contact your application administrator. Exception of type ‘CorkSolutions.Tabidoo.CoreLib.Exceptions.AttachmentDownloadException’ was thrown. (FileId:‘95162902-2506-4186-a367-1ac2f8f085fa’, ApplicationId:‘f813d698-4dee-4f6e-a62b-2ce582884752’, IsDefinitionImage:False) | GridFS file not found: revision -1 of filename “95162902-2506-4186-a367-1ac2f8f085fa”.

information says that the file was not found. Has the file been deleted or changed?

Regards,