Bloomberg Importer is quarantining files that have been downloaded.

book

Article ID: 100074113

calendar_today

Updated On:

Description

Error Message

2025-03-28 11:44:02,944 [6] INFO  Merge1.Protocols.Ftp.FtpDirectory - Downloaded 127.4 MB of 127.4 MB in 0:0:33 at 3.8 MB/s.
2025-03-28 11:44:02,944 [6] INFO  Merge1.Protocols.Ftp.FtpDownloader - File "/b11166.ib19.att.250311.tar.gz.gpg" successfully downloaded.
2025-03-28 11:44:02,944 [6] INFO  Merge1.Protocols.Ftp.FtpDownloader - Directory "/" successfully downloaded.
2025-03-28 11:44:02,944 [6] INFO  Merge1.Protocols.Ftp.FtpDownloader - Finished downloading.
2025-03-28 11:44:02,975 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Download finished. Downloader: FtpFileDownloader.
2025-03-28 11:44:02,975 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Finished downloading files
2025-03-28 11:44:02,990 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Started processing "D:\Bloomberg Files\Import" folder...
2025-03-28 11:44:03,022 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Checking if file D:\Bloomberg Files\Import\b11166.dscl.250306.xml.gpg is encrypted.
2025-03-28 11:44:03,022 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Decrypting file D:\Bloomberg Files\Import\b11166.dscl.250306.xml.gpg.
2025-03-28 11:44:03,022 [6] ERROR Merge1.Connectors.Bloomberg.BloombergConnector - Secret key for message not found.
System.ArgumentException: Secret key for message not found.

   at Merge1.Cryptography.Pgp.PgpDecryptor.DecryptFile[TStream](String encryptedFilePath, Func`2 outputStreamCreator) in C:\agent\_work\78\s\merge1_6\Libraries\Merge1.Cryptography\Pgp\PgpDecryptor.cs:line 102
   at Merge1.Cryptography.Pgp.PgpDecryptor.DecryptFile(String encryptedFilePath, String outputFolder) in C:\agent\_work\78\s\merge1_6\Libraries\Merge1.Cryptography\Pgp\PgpDecryptor.cs:line 39
2025-03-28 11:44:03,069 [6] ERROR Merge1.Connectors.Bloomberg.BloombergConnector - Could not decrypt file D:\Bloomberg Files\Import\b11165.dscl.250306.xml.gpg, moving to quarantine.
2025-03-28 11:44:03,272 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Checking if file D:\Bloomberg Files\Import\b11165.dscl.250307.xml.gpg is encrypted.
2025-03-28 11:44:03,272 [6] INFO  Merge1.Connectors.Bloomberg.BloombergConnector - Decrypting file D:\Bloomberg Files\Import\b11165.dscl.250307.xml.gpg.
2025-03-28 11:44:03,272 [6] ERROR Merge1.Connectors.Bloomberg.BloombergConnector - Secret key for message not found.
System.ArgumentException: Secret key for message not found.

Cause

This issue can occur when the PGP key that is configured in the importer does not match the PGP key that initially encrypted the files in question. 

For instance, an administrator may contact Bloomberg and request a new encryption key, then immediately configure the importer with the new key. As it can take up to 3 days for the new key to start encrypting files on the Bloomberg side, the old key will still be used during this period. 

Resolution

Configure the importer with the correct encryption key that was used when generating the files in question. 

Issue/Introduction

Bloomberg Importer is quarantining files that have been downloaded.