Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Van Oort 110 posts 371 karma points
    Feb 18, 2018 @ 16:22
    Chris Van Oort
    0

    Umbraco Forms 6.0.6 + Perplexmail NullReferenceException

    I’ve upgraded Umbraco to 7.8.1 and Umbraco Forms to 6.0.6 but am running into an error trying to send an email with PerplexMail.

    2018-02-18 10:07:25,483 [P10272/D4/T81] ERROR Umbraco.Forms.Core.Services.WorkflowService - Form workflow 'Send PerplexMail to Sales' failed on 'Submitted' of Record with Unique ID '4cb600c5-c481-4055-be17-84878f26f40d' from the Form named 'Contact Form' with Unique ID '18fa62e3-1a00-497e-bdb3-6c0d24143bcc'
    System.ArgumentNullException: Value cannot be null.
    Parameter name: tag
       at PerplexMail.EmailTag.sanitizeTag(String tag)
       at PerplexMail.UmbracoForms.EmailWorkflow.ParseRecordField(RecordField recordField)
       at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
       at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at PerplexMail.UmbracoForms.EmailWorkflow.Execute(Record record, RecordEventArgs e)
       at Umbraco.Forms.Core.Services.WorkflowService.ExecuteWorkflows(List`1 workflows, RecordEventArgs e)
    

    Has anyone run into this and know how to solve it? Any ideas?

  • Chris Van Oort 110 posts 371 karma points
    Feb 18, 2018 @ 16:55
    Chris Van Oort
    100

    Update: I just tested this on a different Umbraco form and it emailed me without issue. Something must be broken either with the Umbraco form workflow or the Perplexmail content node. (oddly neither changed during the upgrades)

    I've confirmed that the form's json file is wired up to the workflow json which is wired up the correct Perplexmail content ID.

    Solution: I had a few fairly old forms that did not have a name/question specified for recaptcha: enter image description here

    Once I edited and specified that, we were back in business and emails were sending again. No errors with PerplexMail or Umbraco Forms, it just appears 6.0.6 now has better error checking to ensure formfields have ID's specified.

  • Jeffrey Schoemaker 408 posts 2138 karma points MVP 8x c-trib
    Feb 19, 2018 @ 07:50
    Jeffrey Schoemaker
    0

    Hi Chris,

    glad you've fixed it yourself and thanks for letting me know.

    Kind regards, Jeffrey

Please Sign in or register to post replies

Write your reply to:

Draft