[Discovery] Version: 4.1.1 - Can't take Snapshot
Question
Forge component by Francisco Menezes
Platform Version
10.0.1108.0

When I try to take a snapshot the app get stuck in this screen:

And I got this error in Servicecenter:

Id:

e5e53f15-4880-490f-9566-45a1bfe2be8d

Time of Log:

11/04/2021 21:45:31

eSpace:

DiscoveryProbe

Tenant:

Users

User:


Session Id:

Dh7sgzlJe0WfDJ7sbZWhxA==

Server:

DCD-DEV-WEB-02

Module:


Message:

Error executing query. Error in advanced query CreateModuleDefinitionsForExtensions2 in Modules_Reload in Modules 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", table "dbo.OSUSR_MRN_MODULELAYER", column 'ID'.
The statement has been terminated.

Environment InformationeSpaceVer: 6 (Id=39835, PubId=50157, CompiledWith=10.0.1108.0)
RequestUrl: http://127.0.0.1/DiscoveryProbe/_TimerHandler.asmx (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/DiscoveryProbe-105-132590079251753299
FilePath: C:\...\PS\running\DiscoveryProbe.910709364\
ClientIp: 127.0.0.1
Locale: en-US
DateFormat: dd/MM/yyyy
PID: 10288 ('w3wp', Started='2/28/2021 9:04:31 AM', Priv=1882Mb, Virt=2119397Mb)
TID: 520
Thread Name:
.NET: 4.0.30319.42000

Stack:

[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 Modules 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", table "dbo.OSUSR_MRN_MODULELAYER", column 'ID'.
The statement has been terminated.

Any suggestions? 

Solution

Hello,

I have tested this version in my personal environment and I don't get any errors when creating the snapshot. Is is possible for you to remove the application and re-download it from the forge? Maybe an issue arose with an update or something. 

-Bryan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.