Legacy Knowledge Base
Published Jun. 30, 2025

Adding new entity to an already deployed service builder module fails

Written By

Kartik Singh

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

  • The issue occurs while updating/adding a new column to the existing database custom table i.e. using Service Builder to add another entity in an existing module.

Environment

  • Liferay Developer Studio
  • Liferay DXP 7.4

Resolution

  • To add new columns to existing tables using the 'service.xml' file, kindly follow the following steps that will help you to move forward:
    1. Take a backup, and delete the existing "src/main/java" section of the Service and API module. 
    2. Add the new column name with the existing column names in the "service.xml" file. 
    3. Refresh Gradle.
    4. Build the service.
    5. Deploy the modules again.
    6. After following the above steps, all the required column names will be displayed in the table.

    Note:

    1. Try the above activity in a lower environment first.
    2. Keep the backup of your existing module first before performing the above actions.
Did this article resolve your issue ?

Legacy Knowledge Base