cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message: Could not execute code stage because exception thrown by code stage: Object variable or With block variable not set

HariC
Level 3

Hello,

I am using the new outlook Email VBO - V 10.2.4. I created the new object to save email as draft by using the send email code by removing the mail.send. 

I am getting the following error message randomly for the same input

"Could not execute code stage because exception thrown by code stage: Object variable or With block variable not set."



------------------------------
Hari C
Developer
AIG
America/Chicago
------------------------------
4 REPLIES 4

SteveBoggs
Staff
Staff

Hi Hari,

This error usually occurs when there are no 'Inputs Parameter' values assigned to an action. Have you ensured you've assigned an input value to at least one of the Input Parameters?



------------------------------
Steve Boggs
Senior Product Support Engineer
Blue Prism
Austin, TX
------------------------------

harish.m
MVP

Hi Hari,

Check below thread

https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=dbf20a10-9487-4e70-9da5-e29e4594fc21&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&tab=d...



------------------------------
-----------------------
If I answered your query. Please mark it as the "Best Answer"

Harish M
Lead developer
America/New_York TX
------------------------------
----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

Yes, I have input values. 



------------------------------
Hari C
Developer
AIG
America/Chicago
------------------------------

Mukeshh_k
MVP

Hi Hari- bit strange - I do have the latest VBO and I am not facing any such errors while saving the draft in outlook. Its usually occurs when variable or object reference is not set to valid object or are not getting initialised properly.

17260.png
17261.png



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS, England, United Kingdom, GB
------------------------------

Regards,

Mukesh Kumar