frankframework / frankframework

The Frank!Framework is an easy-to-use, stateless integration framework which allows (transactional) messages to be modified and exchanged between different systems.
https://frankframework.org
Apache License 2.0
131 stars 78 forks source link

ExchangeMailListener gives Cannot convert filename [<randomstring@randomstring.eurprd02.prod.outlook.com>] into an ItemId: (ServiceResponseException) Id is malformed. #2988

Closed ricardovh closed 2 years ago

ricardovh commented 2 years ago

❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗

Describe the issue When using an ExchangeMailListener with checkForDuplicates=true on the receiver, mails cannot be processed with a ServiceResponseException. I investigated with Laurens, and removing the checkForDuplicates solves the issue.

It seems that the issue is that the messageId contains the randomstring@randomstring.eurprd02.prod.outlook.com instead of the filename.

Setting messageIdPropertyKey to filename (which should result in the correct ID), gives a different error however: Caused by: nl.nn.adapterframework.filesystem.FileSystemException: Cannot convert filename [....] into an ItemId: (ServiceResponseException) The specified object was not found in the store., The process failed to get the correct properties.

Reporter Ricardo

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem.

Configuration

Please provide the configuration of the Pipe or Receiver with the problem.

Input

Please provide an example of the input message. 
Alternatively, provide a Ladybug report.

Environment

7.6.4, 7.7

Additional Environment

Additional Context Add any other context about the problem here. (f.e. ladybug report / test adapter with larva test)

gvanbrakel commented 2 years ago

It appears to me that you are trying to use the messageId as the filename. messageIdPropertyKey should not be set to solve this issue. It might be necessary to change messageType, but that should also not be necessary. It could be that you are using the wrong session key to retrieve the filename.