Searching for a specific pattern in a log

Hello, I am searching for a specific pattern in a log every 5 minutes, and if it finds it, it sends me a notification Email. When I run it, and even though that the specific pattern doesn’t exist in the log, it sends me an Email.
Any ideas why? I am also attaching the log that my script searches into. This log indeed includes the pattern, but if I delete these lines, it still sends me Email.

Thank you in advance for your time

$file = "D:\...\logs\Server-startup.log"
    $cycletime = 10080
    $linestocheck = 30
    $startcheck = 0
    $lastcheck = (get-date).AddMinutes(-$cycletime)
    $regex = "\<Error\>\<(.+?\s.+?)\>\s.+Content is not allowed in prolog\.\s*$"
  While ($true){
         $startcheck = Get-Date
                     $writetime = Get-ItemProperty  $file | Select-Object LastWriteTime | Get-Date
                     if ($writetime -ge $lastcheck){
              $latestmatch = (Get-Date).AddMinutes(-20)    
              Get-Content -Path $file -Tail $linestocheck |
                 ForEach-Object {
                  if ($_-match $regex) {
                      $errordate = [datetime]$Matches[1]
                       if ($errordate -gt $latestmatch) {
                           $latestmatch = $errordate
                       }
                   }
              }
                         if ($latestmatch -gt $lastcheck){
                              $smtp = new-object Net.Mail.SmtpClient("techuser.mail")
    $objMailMessage = New-Object System.Net.Mail.MailMessage
    $objMailMessage.From = "support@iis.com"
    $objMailMessage.To.Add("support@iis.com")
    $objMailMessage.Subject = "ALERT IN PRODUCTION ( Application Server): 'Content is not allowed in prolog!'"
    $objMailMessage.Body = "ACTION TO BE TAKEN: Startup log  (Application Server) - 'Content is not allowed in prolog'
   
   Next steps:
 
-              Please check if Service (Agent) is still running on – Application Server.
-              Restart Agent service if necessary
-              Check Log and Startup Log on Application Server to verify the error
-              Consult with ... if necessary
-              Inform Service Manager (SM) or Team Lead
-              Restart the whole server if necessary."
    $smtp.send($objMailMessage)
                         }
"Write-Host 'Sending e-mail'"
                     $lastcheck = $startcheck
                    
                     Start-Sleep -Seconds ($cycletime * 60)
                    }
    }

The log looks like this:

<INFO><04-Dec-2020 08:26:39.801> -----------------------------------------------------------------------------------
<INFO><04-Dec-2020 08:26:39.801> Loading configured triggers and their actions for config file - /_trigger_config_.xml
<INFO><04-Dec-2020 08:26:39.801> -----------------------------------------------------------------------------------
<INFO><04-Dec-2020 08:26:39.801> ===================================================================================
<ERROR><04-Dec-2020 08:26:39.801> Exception processing TriggerConfigFiles folder :org.xml.sax.SAXParseException: Content is not allowed in prolog.
<INFO><04-Dec-2020 08:26:39.801> ===================================================================================
<INFO><04-Dec-2020 08:26:39.801> Loading cache: com.....sdk.trigger........TriggerCache
<INFO><04-Dec-2020 08:26:39.816> ===================================================================================
<INFO><04-Dec-2020 08:26:39.848> -----------------------------------------------------------------------------------
<INFO><04-Dec-2020 08:26:39.848> Loading configured ... trigger rules and event handlers for config file - /_trigger_config_.xml
<INFO><04-Dec-2020 08:26:39.848> -----------------------------------------------------------------------------------
<INFO><04-Dec-2020 08:26:39.848> ===================================================================================
<ERROR><04-Dec-2020 08:26:39.848> Exception processing TriggerConfigFiles folder for ... triggers: org.xml.sax.SAXParseException: Content is not allowed in prolog.
<INFO><04-Dec-2020 08:26:39.848> ===================================================================================
<INFO><04-Dec-2020 08:26:39.848> Loading cache synchronizers ...

<INFO><04-Dec-2020 08:26:40.395> ===================================================================================
<INFO><04-Dec-2020 08:26:40.395> ... STARTUP: completed
<INFO><04-Dec-2020 08:26:40.395> ===================================================================================


<INFO><05-Dec-2020 00:01:51.597> ===================================================================================
<INFO><05-Dec-2020 00:01:51.597> ... STARTUP: start
<INFO><05-Dec-2020 00:01:51.597> ===================================================================================

<INFO><05-Dec-2020 00:01:51.597> Loading bootstap data ...
<INFO><05-Dec-2020 00:01:53.769> Connecting to the services ...
<INFO><05-Dec-2020 00:01:54.316> Loading persistence modules ...
<INFO><05-Dec-2020 00:01:54.316> Loading global caches ...
<INFO><05-Dec-2020 00:01:54.316> Loading cache: com.........cache.BundleDefinitionCache
<INFO><05-Dec-2020 00:02:17.098> Loading cache: com.........cache.AssetTypeCache
<INFO><05-Dec-2020 00:02:21.818> Loading cache: com.....sdk.metadata.computation.ComputationHandlerDefinitionCache
<INFO><05-Dec-2020 00:02:21.865> Loading cache: com.....sdk.metadata.MetadataCache
<INFO><05-Dec-2020 00:02:22.130> Loading cache: com.........cache.ContentTypeCache
<INFO><05-Dec-2020 00:02:22.130> Loading cache: com.....sdk.metadata.ContentTypeAssociationCache
<INFO><05-Dec-2020 00:02:22.271> Loading cache: com.........cache.MimeTypeCache
<INFO><05-Dec-2020 00:02:22.302> Loading cache: com.........cache.FileExtensionCache
<INFO><05-Dec-2020 00:02:22.334> Loading cache: com.....sdk.admin.objectprofile.ObjectProfileCache
<INFO><05-Dec-2020 00:02:43.665> Loading cache: com.....sdk.admin.ErrorMessageCache
<INFO><05-Dec-2020 00:02:43.774> Loading cache: com.....sdk.admin.currency.CurrencyCache
<INFO><05-Dec-2020 00:03:09.498> Loading cache: com.....sdk.admin.registry.RegistryCache
<INFO><05-Dec-2020 00:03:09.545> ---Registry validators loaded.
<INFO><05-Dec-2020 00:03:09.545> ---No solutions validators found.
<INFO><05-Dec-2020 00:03:09.545> ---No custom validators found.
<INFO><05-Dec-2020 00:03:10.670> Loading cache: com.....sdk.admin.configuration.ConfigCache
<INFO><05-Dec-2020 00:03:10.670> Loading cache: com.....sdk.i18n.I18NLocaleCache
<INFO><05-Dec-2020 00:03:10.748> Loading cache: com.....sdk.i18n.I18NApplicationStringKeyCache
<INFO><05-Dec-2020 00:03:12.101> Loading cache: com.....sdk.i18n.I18NErrorStringCache
<INFO><05-Dec-2020 00:03:13.495> Loading cache: com.....sdk.i18n.I18NApplicationStringCache
<INFO><05-Dec-2020 00:03:24.029> Loading cache: com.....sdk.i18n.I18NObjectStringCache
<INFO><05-Dec-2020 00:03:55.928> Loading cache: com.........cache.UserGroupCache
<INFO><05-Dec-2020 00:06:09.627> Loading cache: com.....sdk.repository.LabelCache
<INFO><05-Dec-2020 00:06:10.518> Loading cache: com.....sdk.search.definition.QueryDefinitionCache
<INFO><05-Dec-2020 00:06:36.580> Loading cache: com.....sdk.metadata.dependency.DependencyCache
<INFO><05-Dec-2020 00:06:48.035> Loading cache: com.....sdk.admin.system.SubSystemCache
<INFO><05-Dec-2020 00:06:48.160> Loading cache: com.........clientapi.channel.PageSpecCache
<INFO><05-Dec-2020 00:06:48.160> Loading cache: com.....sdk.admin.objectprofile.cache.ObjectProfileResourceAssociationCache
<INFO><05-Dec-2020 00:06:48.160> Loading cache: com.....sdk.admin.objectprofile.cache.ObjectProfileActorAssociationCache
<INFO><05-Dec-2020 00:06:49.441> Loading cache: com.....sdk.admin.RLSFLSRulesCache
<INFO><05-Dec-2020 00:06:50.004> Loading cache: com.........api.service.local.respview.RespViewCache
<INFO><05-Dec-2020 00:06:51.724> Loading cache: com.........api.service.local.workflow.WFProcessDefinitionCache
<INFO><05-Dec-2020 00:06:52.731> Loading cache: com.....sdk.trigger.TriggerDefinitionCache
<INFO><05-Dec-2020 00:06:52.762> ===================================================================================
<INFO><05-Dec-2020 00:06:52.762> Loading SYSTEM triggers and actions ...
<INFO><05-Dec-2020 00:06:52.762> -----------------------------------------------------------------------------------
<INFO><05-Dec-2020 00:06:52.778> TRIGGERS:
<INFO><05-Dec-2020 00:06:52.778> 	system.content.type.match - com.....sdk.trigger.object.ContentTypeMatchTrigger

<INFO><05-Dec-2020 00:06:52.778> ACTIONS:

<INFO><05-Dec-2020 00:06:52.778> VALIDATORS:
<INFO><05-Dec-2020 00:06:52.778> 	create.object - com.....sdk.trigger.object.CreateOperationValidator
<INFO><05-Dec-2020 00:06:52.778> 	update.object - com.....sdk.trigger.object.UpdateOperationValidator
<INFO><05-Dec-2020 00:06:52.778> -----------------------------------------------------------------------------------

<INFO><05-Dec-2020 00:06:54.247> -----------------------------------------------------------------------------------
<INFO><05-Dec-2020 00:06:54.247> Loading configured triggers and their actions for config file - /_trigger_config_.xml
<INFO><05-Dec-2020 00:06:54.247> -----------------------------------------------------------------------------------
<INFO><05-Dec-2020 00:06:54.387> Number of triggers = 23

<INFO><05-Dec-2020 00:06:54.387> Trigger #1
<INFO><05-Dec-2020 00:06:54.387> 	Name        = EntityCreate
<INFO><05-Dec-2020 00:06:54.387> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.387> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.387> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.387> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.387> 		Attribute: content.type = Entity
<INFO><05-Dec-2020 00:06:54.387> 	Action: ....custom.........trigger.action....SetDynamicExchangeRateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: currency.fields = ...Entity.... Profit,...Entity.Threshold
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: registry.entry.key = /.../Applications/.../...

<INFO><05-Dec-2020 00:06:54.403> Trigger #2
<INFO><05-Dec-2020 00:06:54.403> 	Name        = EntityExchangeRateUpdate
<INFO><05-Dec-2020 00:06:54.403> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.403> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.403> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.403> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.403> 		Attribute: content.type = ...Entity
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.........trigger.action....SetDynamicExchangeRateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: currency.fields = ...Entity.... Profit,...Entity.Threshold
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: registry.entry.key = /.../Applications/.../...

<INFO><05-Dec-2020 00:06:54.403> Trigger #3
<INFO><05-Dec-2020 00:06:54.403> 	Name        = ...RollFwdOnCreate
<INFO><05-Dec-2020 00:06:54.403> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.403> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.403> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.403> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.403> 		Attribute: content.type = ...
<INFO><05-Dec-2020 00:06:54.403> 	Action: com.....ext.....triggers....PropertyUpdateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: fields.update.today.filter.condition = .......Final for Curr Rep Per=Yes
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: property.update.date.fields = .......End Date

<INFO><05-Dec-2020 00:06:54.403> Trigger #4
<INFO><05-Dec-2020 00:06:54.403> 	Name        = ...RollFwdOnUpdate
<INFO><05-Dec-2020 00:06:54.403> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.403> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.403> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.403> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.403> 		Attribute: content.type = ...
<INFO><05-Dec-2020 00:06:54.403> 	Action: com.....ext.....triggers....PropertyUpdateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: fields.update.today.filter.condition = .......Final for Curr Rep Per=Yes
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: property.update.date.fields = .......End Date

<INFO><05-Dec-2020 00:06:54.403> Trigger #5
<INFO><05-Dec-2020 00:06:54.403> 	Name        = ...OnCreate
<INFO><05-Dec-2020 00:06:54.403> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.403> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.403> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.403> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.403> 		Attribute: content.type = ...
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.............trigger.action....Store...ProfitAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 	 	Action Attribute: EntityTypeField = ...Entity.Entity Type
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: EntityTypeValue = ... Entity
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: EntityCurrencyField = ...Entity.... Profit
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: LocalBaseAmountField = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: LocalBaseAmountDefaultValue = 0
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: LocalExchangeRateField = .......... Exchange Rate
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: LocalExchangeRateDefaultValue = 0
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.........trigger.action....SetDynamicExchangeRateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: currency.fields = .......... Impact Inherent Value,.......... ...,.......... Impact Target Value,.......YEL,.......Economic Impact Value
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: registry.entry.key = /.../Applications/.../...
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentage = .......... Impact Inherent Value
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldRating = .......... Impact Inherent
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: DefaultRating = 1
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentage = .......... ...
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldRating = .......... ...
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: DefaultRating = 1
<INFO><05-Dec-2020 00:06:54.403> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldPercentage = .......... Impact Target Value
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: FieldRating = .......... Impact Target
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.403> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: DefaultRating = 1

<INFO><05-Dec-2020 00:06:54.419> Trigger #6
<INFO><05-Dec-2020 00:06:54.419> 	Name        = ...OnUpdate
<INFO><05-Dec-2020 00:06:54.419> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.419> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.419> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.419> 	Classname   = com.....sdk.trigger.object.ContentTypeMatchTrigger
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: content.type = ...
<INFO><05-Dec-2020 00:06:54.419> 	    Action: ....custom.............trigger.action....Store...ProfitAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: EntityTypeField = ...Entity.Entity Type
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: EntityTypeValue = ... Entity
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: EntityCurrencyField = ...Entity.... Profit
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: LocalBaseAmountField = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: LocalBaseAmountDefaultValue = 0
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: LocalExchangeRateField = .......... Exchange Rate
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: LocalExchangeRateDefaultValue = 0
<INFO><05-Dec-2020 00:06:54.419> 	    Action: ....custom.........trigger.action....SetDynamicExchangeRateTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: currency.fields = .......... Impact Inherent Value,.......... ...,.......... Impact Target Value,.......YEL,.......Economic Impact Value
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: registry.entry.key = /.../Applications/.../...
<INFO><05-Dec-2020 00:06:54.419> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentage = .......... Impact Inherent Value
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldRating = .......... Impact Inherent
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: DefaultRating = 1
<INFO><05-Dec-2020 00:06:54.419> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentage = .......... ...
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldRating = .......... ...
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: DefaultRating = 1
<INFO><05-Dec-2020 00:06:54.419> 	    Action: ....custom.............trigger.action....CalculatePercentageRatingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentageOf = .......... ... Profit
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldPercentage = .......... Impact Target Value
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: FieldRating = .......... Impact Target
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_1 = 0.5
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_2 = 3
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_3 = 7
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_4 = 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: PercentageToRating_5 = MAX
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: DefaultRating = 1

<INFO><05-Dec-2020 00:06:54.419> Trigger #7
<INFO><05-Dec-2020 00:06:54.419> 	Name        = LECheckingUpdate
<INFO><05-Dec-2020 00:06:54.419> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.419> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.419> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.419> 	Classname   = com.....apps.common.trigger.object.DetectPropertyChangeTrigger
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: exclude.folders = true
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: folder.path = /_op_sox/Project/Default/BusinessEntity
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: scope = recursive
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: fields = ...Entity_Model.LE Count,...Entity_Model.LE Name 1,...Entity_Model.LE Allocation 1,...Entity_Model.LE Name 2,...Entity_Model.LE Allocation 2,...Entity_Model.LE Name 3,...Entity_Model.LE Allocation 3,...Entity_Model.LE Name 4,...Entity_Model.LE Allocation 4,...Entity_Model.LE Name 5,...Entity_Model.LE Allocation 5,...Entity_Model.LE Name 6,...Entity_Model.LE Allocation 6,...Entity_Model.LE Name 7,...Entity_Model.LE Allocation 7,...Entity_Model.LE Name 8,...Entity_Model.LE Allocation 8,...Entity_Model.LE Name 9,...Entity_Model.LE Allocation 9,...Entity_Model.LE Name 10,...Entity_Model.LE Allocation 10,...Entity_Model.LE Name 11,...Entity_Model.LE Allocation 11,...Entity_Model.LE Name 12,...Entity_Model.LE Allocation 12,...Entity_Model.LE Name 13,...Entity_Model.LE Allocation 13,...Entity_Model.LE Name 14,...Entity_Model.LE Allocation 14,...Entity_Model.LE Name 15,...Entity_Model.LE Allocation 15
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: check.for = any
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.ASETrimLEAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: count.field = ...Entity_Model.LE Count
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.base = blank.fields.
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.1 = ...Entity_Model.LE Name 1,...Entity_Model.LE Allocation 1
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.2 = ...Entity_Model.LE Name 2,...Entity_Model.LE Allocation 2
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.3 = ...Entity_Model.LE Name 3,...Entity_Model.LE Allocation 3
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.4 = ...Entity_Model.LE Name 4,...Entity_Model.LE Allocation 4
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.5 = ...Entity_Model.LE Name 5,...Entity_Model.LE Allocation 5
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.6 = ...Entity_Model.LE Name 6,...Entity_Model.LE Allocation 6
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.7 = ...Entity_Model.LE Name 7,...Entity_Model.LE Allocation 7
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.8 = ...Entity_Model.LE Name 8,...Entity_Model.LE Allocation 8
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.9 = ...Entity_Model.LE Name 9,...Entity_Model.LE Allocation 9
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.10 = ...Entity_Model.LE Name 10,...Entity_Model.LE Allocation 10
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.11 = ...Entity_Model.LE Name 11,...Entity_Model.LE Allocation 11
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.12 = ...Entity_Model.LE Name 12,...Entity_Model.LE Allocation 12
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.13 = ...Entity_Model.LE Name 13,...Entity_Model.LE Allocation 13
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.14 = ...Entity_Model.LE Name 14,...Entity_Model.LE Allocation 14
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.15 = ...Entity_Model.LE Name 15,...Entity_Model.LE Allocation 15
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.CheckNoDuplicatesAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: check.fields = ...Entity_Model.LE Name 1,...Entity_Model.LE Name 2,...Entity_Model.LE Name 3,...Entity_Model.LE Name 4,...Entity_Model.LE Name 5,...Entity_Model.LE Name 6,...Entity_Model.LE Name 7,...Entity_Model.LE Name 8,...Entity_Model.LE Name 9,...Entity_Model.LE Name 10,...Entity_Model.LE Name 11,...Entity_Model.LE Name 12,...Entity_Model.LE Name 13,...Entity_Model.LE Name 14,...Entity_Model.LE Name 15
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.CheckSumFieldsAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: sum.fields = ...Entity_Model.LE Allocation 1,...Entity_Model.LE Allocation 2,...Entity_Model.LE Allocation 3,...Entity_Model.LE Allocation 4,...Entity_Model.LE Allocation 5,...Entity_Model.LE Allocation 6,...Entity_Model.LE Allocation 7,...Entity_Model.LE Allocation 8,...Entity_Model.LE Allocation 9,...Entity_Model.LE Allocation 10,...Entity_Model.LE Allocation 11,...Entity_Model.LE Allocation 12,...Entity_Model.LE Allocation 13,...Entity_Model.LE Allocation 14,...Entity_Model.LE Allocation 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: sum.total = 100

<INFO><05-Dec-2020 00:06:54.419> Trigger #8
<INFO><05-Dec-2020 00:06:54.419> 	Name        = LECheckingCreate
<INFO><05-Dec-2020 00:06:54.419> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.419> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.419> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.419> 	Classname   = ....custom.............trigger.rule.ASEConditionalCheckTrigger
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: trigger.name = LECheckingCreate
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: trigger.input.condition = ...Entity_Model.LE Count!=null
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: content.type = ...Entity
<INFO><05-Dec-2020 00:06:54.419> 		Attribute: detect.property.change = ...Entity_Model.LE Count
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.ASETrimLEAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: count.field = ...Entity_Model.LE Count
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.base = blank.fields.
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.1 = ...Entity_Model.LE Name 1,...Entity_Model.LE Allocation 1
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.2 = ...Entity_Model.LE Name 2,...Entity_Model.LE Allocation 2
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.3 = ...Entity_Model.LE Name 3,...Entity_Model.LE Allocation 3
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.4 = ...Entity_Model.LE Name 4,...Entity_Model.LE Allocation 4
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.5 = ...Entity_Model.LE Name 5,...Entity_Model.LE Allocation 5
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.6 = ...Entity_Model.LE Name 6,...Entity_Model.LE Allocation 6
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.7 = ...Entity_Model.LE Name 7,...Entity_Model.LE Allocation 7
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.8 = ...Entity_Model.LE Name 8,...Entity_Model.LE Allocation 8
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.9 = ...Entity_Model.LE Name 9,...Entity_Model.LE Allocation 9
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.10 = ...Entity_Model.LE Name 10,...Entity_Model.LE Allocation 10
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.11 = ...Entity_Model.LE Name 11,...Entity_Model.LE Allocation 11
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.12 = ...Entity_Model.LE Name 12,...Entity_Model.LE Allocation 12
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.13 = ...Entity_Model.LE Name 13,...Entity_Model.LE Allocation 13
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.14 = ...Entity_Model.LE Name 14,...Entity_Model.LE Allocation 14
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: blank.fields.15 = ...Entity_Model.LE Name 15,...Entity_Model.LE Allocation 15
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.CheckNoDuplicatesAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: check.fields = ...Entity_Model.LE Name 1,...Entity_Model.LE Name 2,...Entity_Model.LE Name 3,...Entity_Model.LE Name 4,...Entity_Model.LE Name 5,...Entity_Model.LE Name 6,...Entity_Model.LE Name 7,...Entity_Model.LE Name 8,...Entity_Model.LE Name 9,...Entity_Model.LE Name 10,...Entity_Model.LE Name 11,...Entity_Model.LE Name 12,...Entity_Model.LE Name 13,...Entity_Model.LE Name 14,...Entity_Model.LE Name 15
<INFO><05-Dec-2020 00:06:54.419> 	    Action: com.....ext.....triggers.CheckSumFieldsAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: sum.fields = ...Entity_Model.LE Allocation 1,...Entity_Model.LE Allocation 2,...Entity_Model.LE Allocation 3,...Entity_Model.LE Allocation 4,...Entity_Model.LE Allocation 5,...Entity_Model.LE Allocation 6,...Entity_Model.LE Allocation 7,...Entity_Model.LE Allocation 8,...Entity_Model.LE Allocation 9,...Entity_Model.LE Allocation 10,...Entity_Model.LE Allocation 11,...Entity_Model.LE Allocation 12,...Entity_Model.LE Allocation 13,...Entity_Model.LE Allocation 14,...Entity_Model.LE Allocation 15
<INFO><05-Dec-2020 00:06:54.419> 		Action Attribute: sum.total = 100

<INFO><05-Dec-2020 00:06:54.419> Trigger #9
<INFO><05-Dec-2020 00:06:54.419> 	Name        = PrdctAprLclUpdate
<INFO><05-Dec-2020 00:06:54.419> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.434> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.434> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.434> 	Classname   = ....custom.............trigger.rule.ASEProductApprovalLocalTrigger
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.name = PrdctAprLclUpdate
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.input.condition = ....Approval Gate=Local Approval AND ....Submit for Approval=Yes
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: content.type = ProductApproval
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: product.approval.gate.value.local = Local
<INFO><05-Dec-2020 00:06:54.434> 	Action: com.....ext.....triggers.ASEProductApprovalLocalTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.value = Approved

<INFO><05-Dec-2020 00:06:54.434> Trigger #10
<INFO><05-Dec-2020 00:06:54.434> 	Name        = PrdctAprLclCreate
<INFO><05-Dec-2020 00:06:54.434> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.434> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.434> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.434> 	Classname   = ....custom.............trigger.rule.ASEProductApprovalLocalTrigger
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.name = PrdctAprLclCreate
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.input.condition = ....Approval Gate=Local Approval AND ....Submit for Approval=Yes
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: content.type = ProductApproval
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: product.approval.gate.value.local = Local
<INFO><05-Dec-2020 00:06:54.434> 	Action: com.....ext.....triggers.ASEProductApprovalLocalTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.value = Approved

<INFO><05-Dec-2020 00:06:54.434> Trigger #11
<INFO><05-Dec-2020 00:06:54.434> 	Name        = PrdctAprGate1Update
<INFO><05-Dec-2020 00:06:54.434> 	Operation   = update.object
<INFO><05-Dec-2020 00:06:54.434> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.434> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.434> 	Classname   = ....custom.............trigger.rule.ASEProductApprovalGate1Trigger
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.name = PrdctAprGate1Update
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: trigger.input.condition = ....Approval Gate=Gate I
<INFO><05-Dec-2020 00:06:54.434> 		Attribute: content.type = ProductApproval
<INFO><05-Dec-2020 00:06:54.434> 	Action: com.....ext.....triggers.ASEProductApprovalGate1DraftTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: trigger.input.condition.draft = ....Submit for Approval=Yes AND ....Approval Status=Draft
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: hierarchy.object.types = ProductApproval,Product,...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.gpc.field = ...Entity.GPC
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.ga.field = ...Entity.GA
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.lhr.field = ...Entity_Waiver.LHR
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent....r.field = ...Entity_Waiver....R
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: group.gr = ....GR
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.field.name = GPC
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.field.name = GA
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: lhr.field.name = LHR
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ...r.field.name = ...R
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.text.key = com.triggers.....product.gatei.approval.email
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: subject.text.key = ....product.approval.trigger.email.subject
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.from.name.key = ....notification.generic.email.from.display.name
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.from.address.key = ....trigger.generic.email.from.address
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: approval.gate = Gate 1
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: product.approval.empty.user.error = com.triggers.....product.approval.empty.user
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.value = Awaiting Approval
<INFO><05-Dec-2020 00:06:54.434> 	    Action: com.....ext.....triggers.ASEProductApprovalGate1AwaitingAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: trigger.input.condition.draft.awaiting = ....Approval Status=Awaiting Approval AND ....Approve Reject=Approve
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: hierarchy.object.types = ProductApproval,Product,...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.gpc.field = ...Entity.GPC
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.ga.field = ...Entity.GA
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.lhr.field = ...Entity_Waiver.LHR
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent....r.field = ...Entity_Waiver....R
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: group.gr = ....GR
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.field.name = GPC
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.field.name = GA
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.user.field = ....GPC Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.user.field = ....GA Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gr.user.field = ....GR Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.date.field = ....GPC Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.date.field = ....GA Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gr.date.field = ....GR Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: product.approval.empty.user.error = com.triggers.....product.approval.empty.user
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: product.approval.not.required.error = com.triggers.....product.approval.invalid.user
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.field = ....Approve Reject
<INFO><05-Dec-2020 00:06:54.434> 	    Action: com.....ext.....triggers.ASEProductApprovalGate1AwaitingApprovalAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: trigger.input.condition.draft.awaiting = ....Approval Status=Awaiting Approval AND ....GPC Approver Date!=null AND ....GA Approver Date!=null AND ....GR Approver Date!=null
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: hierarchy.object.types = ProductApproval,Product,...Entity
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: grandparent.lhm.field = ...Entity.LHM
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: lhm.field.name = LHM
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.user.field = ....GPC Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.user.field = ....GA Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gr.user.field = ....GR Approver
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gpc.date.field = ....GPC Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: ga.date.field = ....GA Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: gr.date.field = ....GR Approver Date
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: group.fa = FA
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.text.key = com.triggers.....product.gatei.final.approval.email
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: subject.text.key = ....product.approval.trigger.email.subject
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.from.name.key = ....notification.generic.email.from.display.name
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: email.from.address.key = ....trigger.generic.email.from.address
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: approval.gate = Gate 1
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: product.approval.empty.user.error = com.triggers.....product.approval.empty.user
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: product.approval.not.required.error = com.triggers.....product.approval.invalid.user
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.434> 		Action Attribute: status.value = Awaiting Final Approval
<INFO><05-Dec-2020 00:06:54.434> 	Action: com.....ext.....triggers.ASEProductApprovalGate1FinalApprovalAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: trigger.input.condition.final = ....Approval Status=Awaiting Final Approval AND ....Approve Reject=Approve AND ....GPC Approver Date!=null AND ....GA Approver Date!=null AND ....GR Approver Date!=null
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: parent.object.type = Product
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.lhm.field = ...Entity.LHM
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: hierarchy.object.types = ProductApproval,Product
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: fr.user.field = ....FR Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: fr.date.field = ....FR Approver Date
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.text.key = com.triggers.....product.gatei.approved.email
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: subject.text.key = ....product.approval.trigger.email.subject
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.name.key = ....notification.generic.email.from.display.name
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.address.key = ....trigger.generic.email.from.address
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: approval.gate = Gate 1
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: status.value = Approved
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gpc.user.field = ....GPC Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ga.user.field = ....GA Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gr.user.field = ....GR Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: fr.date.field = ....FR Approver Date
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: product.approval.not.required.error = com.triggers.....product.approval.invalid.user
<INFO><05-Dec-2020 00:06:54.450> 	Action: com.....ext.....triggers.ASEProductApprovalGate1RejectionAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: trigger.input.condition.reject = ....Approve Reject=Reject
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: parent.object.type = Product
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: hierarchy.entity.object.types = ProductApproval,Product,...Entity
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: hierarchy.object.types = ProductApproval,Product
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.gpc.field = ...Entity.GPC
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.ga.field = ...Entity.GA
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.lhr.field = ...Entity_Waiver.LHR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent....r.field = ...Entity_Waiver....R
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.lhm.field = ...Entity.LHM
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: group.gr = ....GR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gpc.field.name = GPC
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ga.field.name = GA
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: lhr.field.name = LHR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ...r.field.name = ...R
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: lhm.field.name = LHM
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gpc.user.field = ....GPC Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ga.user.field = ....GA Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gr.user.field = ....GR Approver
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gpc.date.field = ....GPC Approver Date
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ga.date.field = ....GA Approver Date
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gr.date.field = ....GR Approver Date
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.text.key = com.triggers.....product.gatei.rejected.email
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: subject.text.key = ....product.approval.trigger.email.subject
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.name.key = ....notification.generic.email.from.display.name
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.address.key = ....trigger.generic.email.from.address
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: approval.gate = Gate 1
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: product.approval.empty.user.error = com.triggers.....product.approval.empty.user
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: product.approval.not.required.error = com.triggers.....product.approval.invalid.user
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: status.field = ....Approval Status
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: status.value = Rejected
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: rejection.field = ....Rejection comment

<INFO><05-Dec-2020 00:06:54.450> Trigger #12
<INFO><05-Dec-2020 00:06:54.450> 	Name        = PrdctAprGate1Create
<INFO><05-Dec-2020 00:06:54.450> 	Operation   = create.object
<INFO><05-Dec-2020 00:06:54.450> 	Position    = PRE
<INFO><05-Dec-2020 00:06:54.450> 	Type        = CUSTOM
<INFO><05-Dec-2020 00:06:54.450> 	Classname   = ....custom.............trigger.rule.ASEProductApprovalGate1Trigger
<INFO><05-Dec-2020 00:06:54.450> 		Attribute: trigger.name = PrdctAprGate1Create
<INFO><05-Dec-2020 00:06:54.450> 		Attribute: log.debug = false
<INFO><05-Dec-2020 00:06:54.450> 		Attribute: trigger.input.condition = ....Approval Gate=Gate I
<INFO><05-Dec-2020 00:06:54.450> 		Attribute: content.type = ProductApproval
<INFO><05-Dec-2020 00:06:54.450> 	Action: com.....ext.....triggers.ASEProductApprovalGate1DraftTriggerAction [type:CUSTOM, exclusiveOperationBy:]
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: trigger.input.condition.draft = ....Submit for Approval=Yes AND ....Approval Status=Draft
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.object.type = ...Entity
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: hierarchy.object.types = ProductApproval,Product,...Entity
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.gpc.field = ...Entity.GPC
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.ga.field = ...Entity.GA
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent.lhr.field = ...Entity_Waiver.LHR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: grandparent....r.field = ...Entity_Waiver....R
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: group.gr = ....GR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: gpc.field.name = GPC
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ga.field.name = GA
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: lhr.field.name = LHR
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: ...r.field.name = ...R
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.text.key = com.triggers.....product.gatei.approval.email
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: subject.text.key = ....product.approval.trigger.email.subject
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.name.key = ....notification.generic.email.from.display.name
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: email.from.address.key = ....trigger.generic.email.from.address
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: approval.gate = Gate 1
<INFO><05-Dec-2020 00:06:54.450> 		Action Attribute: product.approval.empty.user.error = com.triggers.....product.approval.empty.user

You’re setting $lastCheck to 7 days ago:

$cycletime = 10080
$lastcheck = (get-date).AddMinutes(-$cycletime)

But your defaul value for $latestmatch is 20 minutes ago

$latestmatch = (Get-Date).AddMinutes(-20)

so even if a match isn’t found in the log, this:

($latestmatch -gt $lastcheck)

will always be true and an e-mail will be sent.

Oh, my God. Thank you very much for your time. I will change it to 5, and give it a try.