Issue | Unable to create new record in a specific application and an unexpected error occurs while saving. Below log appears in the Archer w3wp logs:
<TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"> <TraceIdentifier>Archer.Web</TraceIdentifier> <LogReferenceId>031717-143950-1445</LogReferenceId> <Description>Key field not defined for module 'Application Name'</Description> <AppDomain>/LM/W3SVC/1/ROOT-1-131341906835110867</AppDomain> <ContextData> <BaseUrl>https://xxxxxxx/GenericContent/Record.aspx</BaseUrl> <id>0</id> <Module>ModuleId: xxx, ModuleName: xxxxxx, ModuleStatus: ActiveInProduction, ModuleType: Application</Module> </ContextData> <Exception> <ExceptionType>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType> <Message>Key field not defined for module 'Application Name'</Message> <Source>ArcherTech.Kernel</Source> <StackTrace> at ArcherTech.Kernel.Brokers.LoadHistoryTrackedFieldsTask`1.Execute(T contentContext) at ArcherTech.Kernel.Brokers.TaskExecutionHelper.ExecuteTasks[T](T contentContext, IList`1 tasks) at ArcherTech.Kernel.Brokers.ContentBroker.ExecuteContentSavePlan(ContentContext contentContext, IDictionary`2 indexMap, ContentSavePerformanceData performanceData, BatchContentSaveResult returnResults) at ArcherTech.Kernel.Brokers.ContentBroker.Save(IList`1 contentContainers, Nullable`1 subformFieldId, ContentSaveOptions saveOptions) at ArcherTech.Kernel.Brokers.ContentBroker.Save(InternalContentSaveContainer content, Nullable`1 subformFieldId, ContentSaveOptions saveOptions) at ArcherTech.Kernel.Managers.ContentManager.Save(SessionContext sessionContext, SingleContentSaveContainer contentSaveContainer) at ArcherTech.Web.Modules.GenericContent.Views.RecordPresenter.SaveContent(Content content, Nullable`1 subformFieldId, Nullable`1 contentReviewAction, Boolean applyCalculationsImmediately, Boolean queueRelatedCalcInline) at ArcherTech.Web.Modules.GenericContent.Views.RecordPresenter.ValidateAndMaybeCommit() at ArcherTech.Web.Modules.GenericContent.Views.RecordPresenter.SaveRecordChanges() at Security2000.GenericContent.Record.SaveButton_Click(Object sender, EventArgs e) at ArcherTech.Web.UI.Controls.ToolbarButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) </StackTrace> </Exception> </TraceRecord> |