Legacy Knowledge Base
Published Jul. 2, 2025

NoSuchUserException when setting email address in "To" field of Order Placed Notification Template

Written By

Pooja Bhambani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When placing an order and having an Order Placed Notification Template with an email address in the "To" field, a NoSuchUserException is shown and the order can't be placed.
  • Steps to reproduce:
    1. Start a new commerce bundle.
    2. Reindex all search indexes.
    3. Create a blank site "store".
    4. Commerce > Settings > Health check > Fix Commerce countries issue
    5. Create a channel "ch1"
    6. Edit "ch1"
         Commerce Site Type : B2B
         Type: select "store"
        Active Flat Rate shipping method
        Add a shipping option
          Name:  "opt1"
          Amount: 1
    7. Add a simple product "prd1"
          SKU Price: 10
    8. Add a public widget page "page1"
        Add a Product publisher( Config list and type renders as minium)
        Add a Checkout
    9. Create a account "acc1":
          Type: bussiness
          Active: Yes
        Select "Test" user
        Add an address (e.g.):
           Name: "add1"
           Street 1: st
           City: ct
           Postal code: 1
           Country: Canada
    10. Edit "ch1"
          Notifications
           Add a notification template:
             Name : "notif1"
             Type : Order placed
             Enabled : Yes
          Email settings:
             To : person@domain.com
             From address : someone@domain.com
             From Name : someone
           Email content:
             Subject : something
             Body : something
    11. Access "page1"
    12. Prodict publisher > Add "prd1" to Cart
    13. Checkout
          Select "add1" address > Click Continue
          Seletc "opt1" shipping method > Click Continue
          Order summary > Click Continue
    14. In step 10, when we leave notification empty, the order is placed.

    Expected Behavior: User must place the order.
    Observed Behavior: "An error occurred while processing your payment. Retry" error is occurring.

Environment

  • Liferay DXP 7.2
  • Commerce 2.1.0

Resolution

  • The observed behavior is a known issue/bug.
  • If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.
Did this article resolve your issue ?

Legacy Knowledge Base