000036592 - RSA Archer Questionnaire Campaign fails with "Sequence contains no elements" error when questionnaire's target field is inactive.

Document created by RSA Customer Support Employee on Aug 8, 2018
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000036592
Applies ToRSA Product Set: Archer
RSA Product/Service Type: RSA Archer (On-Premise)
RSA Version/Condition: 6.3.0.5
Platform: Windows
IssueManual questionnaire campaign fails with the below error message:
 

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
        <EventID>1</EventID>
        <Type>3</Type>
        <SubType Name="Error">0</SubType>
        <Level>2</Level>
        <TimeCreated SystemTime="2018-07-26T17:00:09.3254619Z" />
        <Source Name="ArcherTech.JobFramework" />
        <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
        <Execution ProcessName="ArcherTech.JobFramework.Job" ProcessID="20604" ThreadID="1" />
        <AssemblyVersion>6.4.200.1032</AssemblyVersion>
        <Channel />
        <Computer>ARCHERSERVER</Computer>
    </System>
    <ApplicationData>
        <TraceData>
            <DataItem>
                <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
                    <TraceIdentifier>ArcherTech.JobFramework</TraceIdentifier>
                    <Description>Sequence contains no elements</Description>
                    <AppDomain>ArcherTech.JobFramework.Job.exe</AppDomain>
                    <Exception>
                        <ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
                        <Message>Sequence contains no elements</Message>
                        <Source>System.Core</Source>
                        <StackTrace>   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at ArcherTech.Kernel.Brokers.SetTargetContentIdTask.Execute(ContentContext 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.Jobs.CampaignGenerationHelper.SaveContents(ExtendedSessionContext extendedSessionContext, IList`1 contentsToSave, QuestionnaireCampaign campaign)
   at ArcherTech.Kernel.Jobs.ManualCampaignGenerationJobHandler.SaveQuestionnaireContents_ExecuteCode(Object sender, EventArgs e)
   at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
   at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
   at System.Workflow.Runtime.Scheduler.Run()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at ArcherTech.Kernel.Jobs.ManualCampaignGenerationJobHandler.handleJobFailedActivity_ExecuteCode(Object sender, EventArgs e)
   at System.Workflow.ComponentModel.Activity.RaiseEvent(DependencyProperty dependencyEvent, Object sender, EventArgs e)
   at System.Workflow.Activities.CodeActivity.Execute(ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
   at System.Workflow.Runtime.Scheduler.Run()</StackTrace>
                    </Exception>
                </TraceRecord>
            </DataItem>
        </TraceData>
    </ApplicationData>
</E2ETraceEvent>


 
CauseWhen the Questionnaire's Target field has been inactivated then the job that processes the campaigns cannot create the questionnaire records.
The Questionnaire's Target field may have also been renamed.
Resolution
  • Application Builder -> Questionnaires -> (Questionnaire)
  • Identify the Cross Reference field that is being used as the Target field for the questionnaire. The cross-reference field will be locked.
  • Set the Cross Reference field to Active status on the General tab of the field.
  • Save the field.
  • Rerun the campaign.

Attachments

    Outcomes