The variable all have values, the mail message has attachments that the bot managed to capture in a previous step from the same mailmessage and I have no clue about what is wrong.
I am not trying to move the mailMessage to from one Mailbox to another, it is in the same Mailbox, just moving from the Inbox folder to the ToBeProcessed folder.
The strange thing is: It was working a few days ago and now it just stopped working without any change to the bot.
The activity is inside a “For Each” for an array of “List Of” after getting a list of emails from the Inbox folder through a “Get mail list”.
I have even tried to create a separated file with only the get mail list, for each and move mail activities, with all parameter hard-coded, still the same error.
Actually… It worked on the test file, but not on the actual code.
I have changed to move the email inside the “For Each Email”, but it gave me the same error as before.
Using the Local panel, I found out that the “SharedMailbox” field is being read as null, even though the field is filled in the activity. Here’s a comparison with the “Get Email By ID” activity:
I think the activity is actually bugged and reads the value of the variable into the incorrect field. I hope I can find a way around, cause I need to fix it asap.
I have tested a few additional changes and found out that the activity works if I write the shared mailbox address manually, “test@test.com” for example, and use the folder picker.
But if I use a variable, it is not working, and it is simply sad, because we shouldn’t use hard-coded information like this.
Was anyone able to resolve this issue with Move Mail : value cannot be null.
We are facing same issue with Microsoft Office365 version 2.7.22 and 2.7.23. When we pass the hardcoded values of Shared mailbox and folder path from the folder picker, it works fine. But when we pass the values using argument or variables (even tried from Advanced editor as someone suggested in this thread) the issue persists. The issue was not faced in the Office365 v2.6.25, only latest versions has issue.
Let me know if able to get past this or have some suggestions or ideas.
When you pass the variable make sure its not a subfolder. If its a subfolder you have to pass file path inside the variable. For example: if you folder name in variable (testVariable) is Test2 but it is inside folder Test1 . The variable value should be testVariable = “Test1\Test2”
I had the same issue when passing variable it was giving me null … its because you have to pass the folder structure in variable if its in subfolder… Hope this helps.
The activity works fine when not using the Shared mailbox. I see the screenshot has “Use shared mailbox” turned off.
Our requirement is to turn on the “use Shared mailbox” and then pass the properties of the shared mailbox like Shared mailbox name and the Folder path. The issue is while using this. Also, we are moving email to a subfolder and we are passing the full path including its parent folder.
Refer the screenshots and see that even though we passed those properties it is somehow not picked up by the activity while running. But when we hardcode the shared mailbox name and the folder path through folder picker it works.