App-owned metafields randomly disappearing after a few days?

I’m relying on app owned metafields for my extension logic Everything works fine at first, but after a few days the app metafields are just gone. I can’t find them anymore, and the logic breaks.

Has anyone experienced the same issue? Is this a known problem, or am I missing something in my implementation?

Hi @Simo_Aissaoui,

Just want to double-check before I dig into this, you are referring app-owned metafields defined in the app’s toml file and not the app-data metafields tied to app installations?

Hi @Paige-Shopify,

It’s the app-data metafields tied to the AppInstallation, not the ones from the TOML file.

I’m creating them with metafieldsSet using the AppInstallation ID as ownerId. They’re created successfully and work at first, but after a few days they’re no longer returned in queries.

Is there any known reason AppInstallation metafields would disappear?

Outside of uninstalling the app, this is the first I’m hearing of it.
Are you seeing all metafields disappear or just some?

Are you still seeing this issue @Simo_Aissaoui ?

It was a skill issue on my part

did you found out what it was? I have some users who metafield just disappeared in “currentAppInstallation”, these metafields use reserved namespace

I almost found out what it was, but the main reason is a query that returns currentAppInstallation id failing because the user i s missing access to some other field.