Automation Error when Evaluating
Posted: Tue Jul 27, 2021 11:46 am
I'm getting "An unexpected error occurred while evaluting the conditions for process OE Audit". Any help would be appreciated. It runs successful some times, but fails with this error on Save some times. Is there anyplace to debug automation?
It is a fairly simple Automation where we want to assign an Audit Task if a new users entered the order.
First time an order is saved
when "Field is a specific value", {{Order.ReceivedDate}} >= 07/27/2021
and a code snippet that evaluates to true (below)
It is a fairly simple Automation where we want to assign an Audit Task if a new users entered the order.
First time an order is saved
when "Field is a specific value", {{Order.ReceivedDate}} >= 07/27/2021
and a code snippet that evaluates to true (below)
Code: Select all
from System import *
from SoftPro.ClientModel import *
from SoftPro.Select.Client import *
from SoftPro.OrderTracking.Client import *
from SoftPro.OrderTracking.Client.Orders import *
oePerson = Context.ReceivedBy.Name.lower()
def IsNewOE(oe):
if oe == 'domain\name1':
return True
elif oe == 'domain\name2':
return True
else:
return False
IsNewOE(oePerson)