after changing the environment domain I can't use the app or create new snapshoot and we found this error in the service center logs
[1] Error executing query.
at ssDiscoveryProbe.Actions.FuncActionModules_Reload.QueryCreateModuleDefinitionsForExtensions2(HeContext heContext, Int32 maxRecords, IterationMultiplicity multiplicity, Int64& outParamCount, Int32 qpinLibModuleLayerId)
at ssDiscoveryProbe.Actions.ActionModules_Reload(HeContext heContext, String inParamDatabaseProvider)
at ssDiscoveryProbe.Actions.ActionApplications_Reload(HeContext heContext, String inParamDatabaseProvider)
at ssDiscoveryProbe.Actions.ActionSnapShot_Create(HeContext heContext, Int32& outParamSnapShotId, String& outParamSnapShotName)
[2] Error in advanced query CreateModuleDefinitionsForExtensions2 in Modules_Reload in DiscoveryProbe (INSERT INTO {ModuleDef}(Name, Description, SS_Key, Kind, ApplicationDefId, ESpaceId, ExtensionId, Layer, IsSelected, IsDeleted) SELECT E.[Name], EV.[Description], E.[SS_Key], 'xif' as Kind, AD.[Id] as ApplicationDefId, NULL as ESpaceId, E.[Id] as ExtensionId, @LibModuleLayerId as Layer, 1 as IsSelected, 0 as IsDeleted FROM (((({Extension_Version} EV Inner JOIN {Extension} E ON (E.[VERSION_ID] = EV.[ID])) Inner JOIN ({Module} M Inner JOIN {App_Definition_Module} ADM ON (ADM.[MODULE_ID] = M.[ID])) ON (M.[EXTENSION_ID] = E.[ID])) Inner JOIN {ApplicationDef} AD ON (ADM.[APPLICATION_ID] = AD.[APPLICATIONID])) Left JOIN {ModuleDef} MD ON (MD.[EXTENSIONID] = E.[ID])) WHERE (E.[IS_ACTIVE] = 1) AND (AD.[ISDELETED] <> 1) AND (MD.[ID] IS NULL)): The INSERT statement conflicted with the FOREIGN KEY constraint ""OSFRK_OSUSR_MRN_MODULEDEF_OSUSR_MRN_MODULELAYER_LAYER"". The conflict occurred in database ""outsystems_DEV"", table ""dbo.OSUSR_MRN_MODULELAYER"", column 'ID'.
The statement has been terminated.