Legacy Knowledge Base
Published Jul. 2, 2025

Updating Commerce Catalogs runs into Permission issue

Written By

Viktória Gyömbér

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 you are editing Catalog in Commerce and try to save the modification you will get the following message: "Error: You do not have the required permissions". This error usually happens when there is no Currency set for the Master Catalog. You can check this on the UI if you edit the Catalog named "Master". There is also a NoSuchCurrencyException in Liferay logs.

 

Environment

Liferay DXP 7.3

 

Resolution

It can happen that the Currency setting in the Master Catalog can get corrupted. If this is the case, you need to manually change this entry in the database.

Please only perform this in a test environment first:

You can execute the following SQL statement in your CommerceCatalog table
UPDATE CommerceCatalog SET commerceCurrencyCode = 'USD' WHERE system_ = 1;

If this statement is not supported in your client, you may need to locate the commerceCatalogId first:
SELECT commerceCatalogId FROM CommerceCatalog WHERE system_ = 1;

After that, update the entry with this ID:
UPDATE CommerceCatalog SET commerceCurrencyCode = 'USD' WHERE commerceCatalogId = <ID from previous statement>;

The commerceCurrencyCode in this example is USD, but you can use other currencies as well.

After you executed this, please restart Liferay or clear the DB cache. Once this is done you won't experience the permission issue anymore.

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base