Getting throw new ApplicationError:"This locale doesn't exist" on strapi.entityService.create

Hello there,

I’m using strapi 4.25.5, and I’m have applicationError: This locale doesn’t exist, when it’s create a new entity record.

It only throw the error when I add the following code:

const entry = strapi.entityService.create(‘api::chrm-origem.chrm-origem’, {
data: {
chrmOrgCode: ‘1’,
},
});

I have multi language enabled: en is default, pt-pt is also enabled
Even if I only en strapi throws the error.
I already searched for this error, but couldn’t find any related content.

Can anyone help me please?

This topic has been created from a Discord post (1290615200776589403) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord