Skip to content

Using PersonTokenCreate in New Communication Wizard shows Lava errror in Preview #6680

@azturner

Description

@azturner

Description

If you create an email that uses lava with PersonTokenCreate (either by entering in the communication or using template that contains it), when you get to the preview pane, it shows the following error message:

"Lava Error: When an object is returned with a NoTracking merge option, Load can only be called when the EntityCollection or EntityReference does not contain objects."

Image

If you click Previous and then Next to return to preview it displays correctly, but users don't know to do this and think their email has an issue.

Actual Behavior

An error message is displayed

Expected Behavior

Expect the preview to show a valid preview of the email

Steps to Reproduce

Create a new communication
Select the Blank template
Add a paragraph
Switch to HTML view
Past following content:

<p style="margin: 0;">Let's see what you have to say!</p>
<p><a href="https://rock.rocksoldchurchdemo.com/page/1?rckipid={{ Person | PersonTokenCreate }}">My Site</a></p>

Click next to preview screen
Notice the error

Issue Confirmation

  • Perform a search on the Github Issues to see if your bug is already reported.
  • Reproduced the problem on a fresh install or on the demo site.

Rock Version

18.1

Client Culture Setting

en-US

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions