Setting Document Metadata from EXIF Metadata

I have a PDF with custom metadata.

The document sandbox correctly evaluates {{ document.file_latest.file_metadata_value_of.exiftool__custominvoicenumber }}.

However, in a workflow state action Edit Metadata, the same does not evaluate {{ workflow_instance.document.file_latest.file_metadata_value_of.exiftool__custominvoicenumber }}.

https://forum.mayan-edms.com/t/what-is-file-metadata/952

But… if I put the Edit Metadata action on the second state (not the initial state), then document metadata does get set from EXIF metadata.

I am assuming that EXIF metadata is not available on ‘document created’?

I am assuming that EXIF metadata is not available on ‘document created’?

Yes, that is correct.

In order to support scaling to millions of documents, most operations in Mayan are asynchronous working as background tasks in advanced task dependencies pipelines.

To fix your workflow have it transition to the second state using a transition trigger from the event “File metadata.Document file file metadata processing finished”.

2 Likes

Thanks for the transition tip.

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.