Removed WO_MAT_QA write action block event emails. Removed failure to unlock emails from obj_Tables.

This commit is contained in:
Infineon\StieberD
2025-09-08 14:43:40 -07:00
parent e09912b8bb
commit 557221c0d3
2 changed files with 1 additions and 27 deletions

View File

@ -182,6 +182,7 @@ WRITE_RECORD_PRE:
Case Record EQ ''
// Unscheduled record write attempt. Block the write and log the event.
// Empty WO_MAT_QA records can cause undesireable issues processing lots.
ErrorMessage = 'Empty WO_MAT_QA profile. Unscheduled record write attempt!'
Error_Services('Add', 'FS104: ':ErrorMessage)
OrigFileError = 104 : @FM : ErrorMessage
@ -200,21 +201,8 @@ WRITE_RECORD_PRE:
LogData<4> = Stack
LogData<5> = CRLF$:RecordSnapshot:CRLF$
LogData<6> = 'FS104: ':ErrorMessage
// Sending a null message will send the LogData instead
Logging_Services('AppendLog', objLog, LogData, @RM, @FM, '', '', '')
// Send an internal OI message to OI admins
Recipients = Xlate('SEC_GROUPS', 'OI_ADMIN', 'USER', 'X')
SentFrom = 'SYSTEM'
Subject = 'Unscheduled WO_MAT_QA record write attempt.'
Message = ErrorMessage
AttachWindow = ''
AttachKey = ''
SendToGroup = ''
Parms = Recipients:@RM:SentFrom:@RM:Subject:@RM:Message:@RM:AttachWindow:@RM:AttachKey:@RM:SendToGroup
obj_Notes('Create',Parms)
Status = 0
Record = ''
ActionFlow = ACTION_STOP$