[OUTSYSTEMS].DBO.[OSUSR_C9F_EXPORTTYPE] with key 0 was not found

[OUTSYSTEMS].DBO.[OSUSR_C9F_EXPORTTYPE] with key 0 was not found

  

An Action runs into an error, which was functioning alright before. Application not published in the meantime.

The action refers to a get on an static entity ExportType

Function contains a switch which checks what type we are handling.

Message

[OUTSYSTEMS].DBO.[OSUSR_C9F_EXPORTTYPE] with key 0 was not found

Environment

SpaceVer: 8 (Id=108, PubId=158, CompiledWith=9.1.0.20)
RequestUrl: http://127.0.0.1/PSTSpareParts/_TimerHandler.asmx (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/PSTSpareParts-83-131182332145459125
FilePath: D:\...\PS\running\PSTSpareParts.0695009908\
Locale: en-US
DateFormat: yyyy-MM-dd
PID: 4588 ('w3wp', Started='3/11/2016 10:57:54 AM', Priv=1073Mb, Virt=16698Mb)
TID: 605
Thread Name: 
.NET: 4.0.30319.34209

Stack

OUTSYSTEMS].DBO.[OSUSR_C9F_EXPORTTYPE] with key 0 was not found
   at ssExport_SP.ExtendedActions.GetExportType(HeContext heContext, Int32 inParamId, RCExportTypeRecord& outParamRecord)
   at ssExport_SP.Functions.ssGetExportType(HeContext heContext, Int32 inParamId)
   at ssExport_SP.Actions.ActionExport_Selection(HeContext heContext, RCExportRequestRecord inParamExportToProcessRec, RCExportRequestRecord& outParamOutputExportToProcessRec)
   at ssExport_SP.Actions.ActionExport_ProcessFiles(HeContext heContext)

Hi Jan,

It means that attribute (EXPORTTYPE) has a null identifier and the attribute is mandatory, hence not possible to execute the action. Somewhere in your logic you have to set or get that identifier.

Yes, thanks for the hint. There was missing an check