Legacy Knowledge Base
Published Jun. 30, 2025

Unable to get default company ID error encountering after upgrade

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

  • After the upgrade from Liferay DXP 7.4 to update 75 or above, the following error is showing on the console for non-liferay user domains:
    ERROR [main][BatchEngineUnitProcessorImpl:279] Unable to get default company ID com.liferay.portal.kernel.exception.NoSuchCompanyException: No Company exists with the key {webId=gmail.com}  
    at com.liferay.portal.service.persistence.impl.CompanyPersistenceImpl.findByWebId(CompanyPersistenceImpl.java:117) ~[portal-impl.jar:?]

    at com.liferay.portal.service.impl.CompanyLocalServiceImpl.getCompanyByWebId(CompanyLocalServiceImpl.java:611) ~[portal-impl.jar:?]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_221]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_221]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_221]

    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_221]

Environment

  • Liferay DXP 7.4

Resolution

  • The cause of the issue is that the default company was created with the domain gmail.com on a previous version; however, on update 75 or above, there were some changes and you need to set that property explicity, otherwise liferay.com is used by default.
  • In order to address this issue, the user should need to add this property company.default.web.id=gmail.com into tools/portal-tools-db-upgrade-client/portal-upgrade-ext.properties before running the upgrade client tool.
    Note: The user must specify the domain that they've used in their previous update.
  • Additionally, to perform the upgrade properly, user should copy all the relevant properties, including company.default.web.id, into portal-upgrade-ext.propertiesfile.

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base