EMAIL workflow doesn't work but notification does

Hi,

I have a workflow that works with if this true condition. I get notifications to phones. But in the same rule email EMAIL function doesnโ€™t work. I did define some email content and PDF file. Is it may be an issue?

When I create another workflow with the same email and default content it does work.

Thank you in advance.

0 10 357
10 REPLIES 10

Hi, have you checked what the Audit history is saying for the reason? You can find it from Manage > Monitor > Audit history > Launch log analyzer > Search the correct Workflow > Click details.

Audit Log Details
Properties:
{
โ€œAppTemplateVersionโ€: โ€œ1.000281โ€,
โ€œRuleNameโ€: โ€œNotificationโ€,
โ€œEventTypeโ€: โ€œChangeโ€,
โ€œInvokedByโ€: โ€œUpdateโ€,
โ€œServerNameโ€: โ€œINSTANCE-EUROPEโ€,
โ€œServerRegionโ€: โ€œeurope-west4-gcp-prodโ€,
โ€œIgnoreSecurityFiltersโ€: true,
โ€œTableNameโ€: โ€œJENERATร–RLERโ€,
โ€œRuleTableNameโ€: โ€œJENERATร–RLERโ€,
โ€œOperationUpdateModeโ€: โ€œUPDATES_ONLYโ€,
โ€œEventMatchโ€: โ€œWorkflow event successfully matchedโ€,
โ€œConditionโ€: โ€œ=OR([_THISROW_BEFORE].[LOKASYON] <> [_THISROW_AFTER].[LOKASYON],\n [_THISROW_BEFORE].[KULLANIM AMACI] <> [_THISROW_AFTER].[KULLANIM AMACI],\n [_THISROW_BEFORE].[KULLANICI] <> [_THISROW_AFTER].[KULLANICI])โ€,
โ€œMatchesConditionโ€: โ€œTrueโ€,
โ€œActionNotPerformedโ€: โ€œ2 errors present.โ€,
โ€œActionResultsโ€: โ€œCreated 1 ActionResultsโ€,
โ€œAction Typeโ€: โ€œEmailโ€,
โ€œAction Nameโ€: โ€œSend Mailโ€,
โ€œErrorsโ€: โ€œError: Workflow rule โ€˜Notificationโ€™ action โ€˜Send Mailโ€™ Attachment template. Expression โ€˜TARฤฐHโ€™ is invalid due to: Expression refers to undefined field. Error: Workflow rule โ€˜Notificationโ€™ action โ€˜Send Mailโ€™ Attachment template. Expression โ€˜LOG_IDโ€™ is invalid due to: Expression refers to undefined field.โ€,
โ€œEmailToโ€: โ€œa.gokturk@atlasgcc.dz,apps@atlasgcc.dzโ€,
โ€œEmailCCโ€: โ€œโ€,
โ€œEmailBCCโ€: โ€œโ€,
โ€œEmailFromDisplayโ€: โ€œapps@atlasgcc.dzโ€,
โ€œEmailReplyToโ€: โ€œnoreply@appsheet.comโ€,
โ€œEmailPreHeaderโ€: "410kw JENERATร–R | J-002 | ARIZALI | BABA HASAN 2400 ",
โ€œEmailSubaccountโ€: null,
โ€œEmailSubjectโ€: "410kw JENERATร–R | J-002 | ARIZALI | BABA HASAN 2400 ",
โ€œEmailTitleโ€: โ€œAlert: Update to application โ€˜JENERATORLERโ€™ table โ€˜JENERATร–RLERโ€™โ€,
โ€œEmailAttachmentโ€: โ€œName: โ€˜JENERATร–R TESLฤฐM FORMU BABA HASAN 2400 TODAY().pdfโ€™ Archive: AttachAndDoNotArchive FileName: โ€˜โ€™ MIME Type: โ€˜application/pdfโ€™ PageOrientation: โ€˜Portraitโ€™ PageSize: A4 AttachmentByteLength: 0 AttachmentTemplateHasCustomFonts: False AttachmentTextLength: 0 PDFCount: 1โ€,
โ€œEmailOtherAttachmentsโ€: โ€œโ€,
โ€œAppTemplateNameโ€: โ€œfecf9c1f-f3df-4feb-8a87-65a40f03fb78โ€,
โ€œOperationโ€: โ€œWorkflow actionโ€,
โ€œResultโ€: โ€œFailureโ€
}

What message appear when you Test the workflow?

{
โ€œ$typeโ€: โ€œNirvana.Data.WorkflowActionResultEmail, V2APIโ€,
โ€œAttachmentโ€: {
โ€œ$typeโ€: โ€œNirvana.Data.WorkflowAttachment, V2APIโ€,
โ€œAttachmentArchiveโ€: โ€œAttachAndDoNotArchiveโ€,
โ€œAttachmentFileNameโ€: โ€œโ€,
โ€œAttachmentMimeTypeโ€: โ€œapplication/pdfโ€,
โ€œAttachmentPageHeightโ€: 0,
โ€œAttachmentPageOrientationโ€: โ€œPortraitโ€,
โ€œAttachmentPageSizeโ€: โ€œA4โ€,
โ€œAttachmentPageWidthโ€: 0,
โ€œAttachmentByteโ€: {
โ€œ$typeโ€: โ€œSystem.Byte, mscorlibโ€,
โ€œ$valueโ€: โ€œโ€
},
โ€œAttachmentByteEncodedโ€: โ€œโ€,
โ€œAttachmentTemplateHasCustomFontsโ€: false,
โ€œAttachmentTextโ€: โ€œโ€,
โ€œNameโ€: โ€œJENERATร–R TESLฤฐM FORMU DEPO TODAY().pdfโ€,
โ€œAttachmentByteLengthโ€: 0,
โ€œAttachmentBytePresentโ€: false,
โ€œAttachmentTextLengthโ€: 0,
โ€œAttachmentTextPresentโ€: false,
โ€œPDFCountโ€: 1
},
โ€œBccโ€: ,
โ€œBodyโ€: "apps@atlasgcc.dz tarafฤฑndan " P 01 " ve " C41300724-A " seri numaralฤฑ 015kw jeneratรถr aลŸaฤŸฤฑda bilgileri yazฤฑlฤฑ ลŸantiyeye teslim edilmiลŸtir.

DEPO
YEDEK ",
โ€œCcโ€: ,
โ€œFromDisplayโ€: โ€œapps@atlasgcc.dzโ€,
โ€œMailTemplateโ€: โ€œFINAL-DATACHANGEโ€,
โ€œOtherAttachmentsโ€: {
โ€œ$typeโ€: โ€œNirvana.Data.WorkflowAttachments, V2APIโ€,
โ€œWorkflowAttachmentListโ€:
},
โ€œPreHeaderโ€: "015kw JENERATร–R | P 01 | ARIZALI | DEPO ",
โ€œPreserveRecipientsโ€: true,
โ€œReplyToโ€: โ€œnoreply@appsheet.comโ€,
โ€œSubaccountโ€: null,
โ€œSubjectโ€: "015kw JENERATร–R | P 01 | ARIZALI | DEPO ",
โ€œTitleโ€: โ€œAlert: Update to application โ€˜JENERATORLERโ€™ table โ€˜JENERATร–RLERโ€™โ€,
โ€œToโ€: [
โ€œa.gokturk@atlasgcc.dzโ€,
โ€œapps@atlasgcc.dzโ€
],
โ€œProviderTypeโ€: 0,
โ€œProviderApiKeyโ€: โ€œLFAwmMpIFKPpRm7ikwlSxQโ€,
โ€œActionDefinitionโ€: {
โ€œ$typeโ€: โ€œJeenee.DataTypes.AppWorkflowRule+ActionDefinition, Jeenee.DataTypesโ€,
โ€œNameโ€: โ€œSend Mailโ€,
โ€œActionTypeโ€: โ€œEmailโ€,
โ€œAppWorkflowActionโ€: {
โ€œ$typeโ€: โ€œJeenee.DataTypes.AppWorkflowActionEmail, Jeenee.DataTypesโ€,
โ€œToโ€: null,
โ€œToListโ€: [
โ€œ=โ€œa.gokturk@atlasgcc.dzโ€โ€,
โ€œ=โ€œapps@atlasgcc.dzโ€โ€
],
โ€œCCโ€: null,
โ€œCCListโ€: ,
โ€œBCCโ€: null,
โ€œBCCListโ€: ,
โ€œReplyToโ€: โ€œโ€,
โ€œFromDisplayโ€: โ€œโ€,
โ€œPreHeaderโ€: "<<Gรœร‡>> JENERATร–R | <<[KAPI NO]>> | <<[DURUM]>> | <<[LOKASYON]>> ",
โ€œSubjectโ€: "<<Gรœร‡>> JENERATร–R | <<[KAPI NO]>> | <<[DURUM]>> | <<[LOKASYON]>> ",
โ€œBodyโ€: "<<USEREMAIL()>> tarafฤฑndan " <<[KAPI NO]>> " ve " <<SERI NO #>> " seri numaralฤฑ <<Gรœร‡>> jeneratรถr aลŸaฤŸฤฑda bilgileri yazฤฑlฤฑ ลŸantiyeye teslim edilmiลŸtir. \n\n <<[LOKASYON]>> \n <<[KULLANIM AMACI]>> ",
โ€œBodyTemplateโ€: โ€œโ€,
โ€œBodyTemplateDataSourceNameโ€: โ€œgoogleโ€,
โ€œAttachmentContentTypeโ€: โ€œPDFโ€,
โ€œAttachmentTemplateโ€: โ€œDocId=1cDgQq8AMMiGryYu0_ohA_6N-oFSAQRO2CmRwTTMOojAโ€,
โ€œAttachmentTemplateDataSourceNameโ€: โ€œgoogleโ€,
โ€œAttachmentNameโ€: โ€œJENERATร–R TESLฤฐM FORMU <> TODAY()โ€,
โ€œAttachmentArchiveโ€: โ€œAttachAndDoNotArchiveโ€,
โ€œAttachmentFolderPathโ€: null,
โ€œDisableTimestampSuffixโ€: false,
โ€œAttachmentPageOrientationโ€: โ€œPortraitโ€,
โ€œAttachmentPageSizeโ€: โ€œA4โ€,
โ€œAttachmentPageHeightโ€: 0,
โ€œAttachmentPageWidthโ€: 0,
โ€œOtherAttachmentsโ€: null,
โ€œOtherAttachmentListโ€: ,
โ€œMessageChannelNameโ€: null,
โ€œUseDefaultContentโ€: false
}
},
โ€œAppErrorsโ€: {
โ€œ$typeโ€: โ€œJeenee.DataTypes.AppErrors, Jeenee.DataTypesโ€,
โ€œRecordInfoโ€: false,
โ€œRecordWarningโ€: true,
โ€œAnnotateErrorsโ€: false,
โ€œErrorsโ€: [
{
โ€œ$typeโ€: โ€œJeenee.DataTypes.AppError, Jeenee.DataTypesโ€,
โ€œSeverityโ€: 0,
โ€œErrorCodeโ€: โ€œERROR_WORKFLOW_INVALID_EXPRESSIONโ€,
โ€œDescriptionโ€: โ€œWorkflow rule โ€˜Notificationโ€™ action โ€˜Send Mailโ€™ Attachment template. Expression โ€˜TARฤฐHโ€™ is invalid due to: Expression refers to undefined field.โ€,
โ€œComponentDescriptorโ€: {
โ€œ$typeโ€: โ€œJeenee.DataTypes.AppComponentDescriptor, Jeenee.DataTypesโ€,
โ€œComponentNameโ€: โ€œBEHAVIOR_WORKFLOWโ€,
โ€œEditorPropertyIdโ€: โ€œErrorPaneHeaderโ€,
โ€œSchemaPathโ€: null
}
}
]
}
}

I tested the workflow, adn did troubleshoot the errors. Now it works, thank you.
Just a question, the << โ€ฆ >> expressions are in the template, all need to be in the same table?

Are you able to describe a little more with this โ€œall need to be in the same tableโ€? Do you mean on a template? Are you able to take a printscreen from that template?

Sorry for the bad explanation.
Yes I mean in a template, can I use column names from both tables?

In generally no, you canโ€™t, BUTโ€ฆ It totally depends what kind of template structure you have. For that specific question, we should see your template. For example if you are using Start: & End expression, you can read columns form another table just like <<[Column]>>.

Thank you very much.

Youโ€™re welcome

Top Labels in this Space