Error "TypeError: Cannot read properties of undefined (reading 'imx_metadata_table_get')" when call API in Web Portal

I am using Angular Web Portal 9.2.

I am porting a Custom API from version 9.1 to version 9.2 to manage AERole or FirmPartners. I can get the list (via GET API), but I can't start a creation or modification.
In frontend I get the error "TypeError: Cannot read properties of undefined (reading 'imx_metadata_table_get')".
The calls to "/portal/ccc/AERole/interactive" (for example) ends in 200 OK and the foreign key fields are correctly loaded.
The create or modification calls are successful, but the error always appears on the screen.

What could be the cause of this error?