function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jaw99KCGjaw99KCG 

Process Builder Chatter Event to User Fails

I want to post certain events on creation to a User's Chatter feed.
I use criteria Post to User, Selecting user from Record, [Event].Owner.id
I get an error:
 
Error
caused by element : FlowActionCall.myRule_1_SA1
caused by: The flow failed to access the value for myVariable_current.Owner.Id because it hasn't been set or assigned.

Not set or assigned? This happens even if I set the chatter post to happen 1hr after Event is created.

Any help appreciated, thanks.
Agustina GarciaAgustina Garcia
Have you checked if your variable has a value? I found something similar but with Account: https://help.salesforce.com/apex/HTViewSolution?id=000212174&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000212174&language=en_US)
jaw99KCGjaw99KCG
OK, but how could an Event not have an owner id? 
Agustina GarciaAgustina Garcia
Yes, you are right, it doesn't make sense. Do you have events enabled in your org? Maybe this is aprofile issue.

Also, I'm not sure if I have a differenty Org type, but I cannot find Owner.Id field. What about if you select CreatedById one? Actually who creates it is the owner.

User-added image
jaw99KCGjaw99KCG
When you select the Assigned to Id, it comes out in the process as [Event].OwnerId
jaw99KCGjaw99KCG
I have updated a trigger so this bug is not stopping me anymore
Agustina GarciaAgustina Garcia
That's true. Please, mark your latest answer as a solution. We have to take care because soemtimes customizations can make Standard feature fails, in your case, the trigger validation.