Workflow not send emails

Goodnight,

I am creating an application and my workflow does not send the emails, I create a behavior which has an initial state of โ€œopenโ€ and with the behavior it goes to โ€œcompletedโ€ my rule does not send the emails and I have a pro account and the project is deployed, thanks for your attention.

0 10 551
10 REPLIES 10

If u navigate to workflow sections of u press LOG BUTTON is there any error?

Hi, I get the following error:

Properties:
{
โ€œAppIdโ€: โ€œ8822662a-8754-4f90-8f84-5f7d17622d5cโ€,
โ€œAppTemplateVersionโ€: โ€œ1.000135โ€,
โ€œRuleNameโ€: โ€œOrderUpdateRuleโ€,
โ€œEventTypeโ€: โ€œChangeโ€,
โ€œInvokedByโ€: โ€œUpdateโ€,
โ€œServerโ€: โ€œprodu99110000J0โ€,
โ€œIgnoreSecurityFiltersโ€: false,
โ€œTableNameโ€: โ€œOrdersโ€,
โ€œRuleTableNameโ€: โ€œOrdersโ€,
โ€œOperationUpdateModeโ€: โ€œUPDATES_ONLYโ€,
โ€œEventMatchโ€: โ€œWorkflow event successfully matchedโ€,
โ€œConditionโ€: โ€œ=AND( [Estado]=โ€œCompletadoโ€, [_THISROW_BEFORE].[Estado] <> [_THISROW_AFTER].[Estado] )โ€,
โ€œMatchesConditionโ€: โ€œTrueโ€,
โ€œActionNotPerformedโ€: โ€œ3 errors present.โ€,
โ€œActionResultsโ€: โ€œCreated 1 ActionResultsโ€,
โ€œAction Typeโ€: โ€œEmailโ€,
โ€œAction Nameโ€: โ€œAction 1โ€,
โ€œErrorsโ€: โ€œError: Workflow rule โ€˜OrderUpdateRuleโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜SubTotalโ€™ is invalid due to: Expression โ€˜SubTotalโ€™ could not be parsed due to exception: Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: indexโ€ฆ Error: Workflow rule โ€˜OrderUpdateRuleโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜Descuentoโ€™ is invalid due to: Expression refers to undefined field. Error: Workflow rule โ€˜OrderUpdateRuleโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜IVAโ€™ is invalid due to: Expression refers to undefined field.โ€,
โ€œEmailToโ€: โ€œโ€,
โ€œEmailCCโ€: โ€œโ€,
โ€œEmailBCCโ€: โ€œโ€,
โ€œEmailFromDisplayโ€: โ€œโ€,
โ€œEmailReplyToโ€: โ€œnoreply@appsheet.comโ€,
โ€œEmailPreHeaderโ€: โ€œFactura de Ventaโ€,
โ€œEmailSubaccountโ€: null,
โ€œEmailSubjectโ€: โ€œFactura de Venta - William J - Ced/Nit: 1,094,988,415 - 10/17/2019 9:05:26 AMโ€,
โ€œEmailTitleโ€: โ€œAlert: Update to application โ€˜App Toma Pedidoโ€™ table โ€˜Ordersโ€™โ€,
โ€œEmailAttachmentโ€: โ€œName: โ€˜Factura de Venta - William J - Ced/Nit: 1,094,988,415.pdfโ€™ Archive: AttachAndDoNotArchive FileName: โ€˜โ€™ MIME Type: โ€˜application/pdfโ€™ PageOrientation: โ€˜Portraitโ€™ PageSize: A4 AttachmentByteLength: 0 AttachmentTextLength: 26163 PDFCount: 1โ€,
โ€œEmailOtherAttachmentsโ€: โ€œโ€,
โ€œAppTemplateNameโ€: โ€œtest1-1102311โ€,
โ€œOperationโ€: โ€œWorkflow actionโ€,
โ€œResultโ€: โ€œFailureโ€
}

Thank you for your cooperation

Expression โ€˜SubTotalโ€™ is invalid due to: Expression โ€˜SubTotalโ€™ could not be parsed due to exception: Index was out of range. Must be non-negative and less than the size of the

Etc etcโ€ฆu have problems with formulas in email templateโ€ฆjust correct them

hello this is my expression in the template, I donโ€™t know how to correct it.

<<Start:[Related Order Details]>><<[Producto].[IdProducto]>>
<<[Producto].[P_IVA]>>
<<[Producto].[Nombre]>>
<<[Cantidad]>>
<<[Descuento]>>
<<[Producto].[Precio Unidad]>>
<<[SubTotal]>>
<<[IVA]>>
<><>

There are two independent problems.

The error message โ€œError: Workflow rule โ€˜OrderUpdateRuleโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜SubTotalโ€™ is invalid due to: Expression โ€˜SubTotalโ€™ could not be parsed due to exception: Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: indexโ€ฆโ€ is occurring because of an AppSheet bug.

The name โ€œSubTotalโ€ is an Excel function name. When we attempted to parse that name we treated it as a Excel function and expected it to be followed by parenthesized argument list. I have fixed that problem. If testing goes well, that change should be released on Friday afternoon Seattle time.

After that bug fix is released, you will begin seeing the proper error message which is:
โ€œError: Workflow rule โ€˜OrderUpdateRuleโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜SubTotalโ€™ is invalid due to: Expression refers to undefined field.โ€

You are seeing the undefined field name errors for fields โ€œSubTotalโ€, โ€œDescuentoโ€, and โ€œIVAโ€ because your attachment template is incorrect. These three fields reside in table โ€œOrder Detailsโ€. These three fields are referenced in two places in your template. The first reference to these fields is inside the << Start >> expression, which is valid. The second reference to these fields is outside the << Start >> expression near the bottom of your template. The second reference is invalid because the current record at that point in the template is the โ€œOrderโ€ record. The โ€œOrderโ€ record does not contain these three fields.

I forgot to say that if you fix the template problem described in the last paragraph, you can circumvent the first problem I described.

Thanks for the help, with your recommendations I solved my problem and the application already works fine.

Glad to hear that it is working.

Good
morning, I just received an message from appsheet that says that I will cancel
my app for exceeding the number of users, in the information of the app it says
that four users of those two appear in the app and should only leave two, I
want to know how definitely delete those two users since they do not use the
app and that appsheet does not close my application. Thank you

Please contact support@appsheet.com directly for help.

Top Labels in this Space