000034483 - Error while Generating Package File in RSA Archer: Package export failed.

Document created by RSA Customer Support Employee on Dec 6, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000034483
Applies ToRSA Product Set: Archer
RSA Version/Condition: 5.5.4.2
 
IssueThe following message occurs every time you try to generate a package:
Package "XYZ" export failed. Please review the error log for details.


Sample exception from the JobFramework log file:

<E2ETraceEvent>
  <ApplicationData>
    <TraceData>
      <DataItem>
        <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
          <TraceIdentifier>Archer.Packaging</TraceIdentifier>
         
<UserId>8614</UserId>
          <Description>An error occurred processing Repository File information for the given Mail Merge Template. See inner exception for details.</Description>
         
<AppDomain>ArcherTech.JobFramework.Job.exe</AppDomain>
          <Exception>
            <ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
            <Message>An error occurred processing Repository File information for the given Mail Merge Template. See inner exception for details.</Message>
           
<Source>ArcherTech.Kernel</Source>
            <ContextData>
              <FileRepositoryId>30738</FileRepositoryId>
              <FileRepositoryName>30738.doc</FileRepositoryName>
              <AttachmentName>ABC_Report_Template_2016-v1.doc</AttachmentName>
              <MailMergeTemplate>ABC</MailMergeTemplate>
            </ContextData>
            <StackTrace>
at ArcherTech.Kernal.Brokers.Packaging.Generate.Actions.Generation.GeneratePackage.ThrowMailMergeTemplateRepositoryFileException(SessionContext sessionContext, Guid mailMergeTemplateGuid, RepositoryFile file, Exception innerException) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.Actions.Generation.GeneratePackage.&lt;AddRepositoryFiles&gt;b__238(GenerateContext context, ExecuteActions`1 ignored) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.Actions.ActionExecutor`1.ActionExecutorLoop(IEnumerable`1 actions) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.Actions.Generation.GeneratePackage.&lt;&gt;c__DisplayClassa.&lt;GetGenerateActions&gt;b__1(GenerateContext executeContext, ExecuteActions`1 executor)</StackTrace>
            <InnerException>
              <ExceptionType>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
              <Message>An error occurred while adding a file to the Package file. The file en-US\RepositoryFiles\30738 already exists in the Package file. This is likely a condition where two different objects are referencing the same Repository File.</Message>
              <Source>ArcherTech.Kernel</Source>
              <StackTrace>
at ArcherTech.Kernal.Brokers.Packaging.Generate.IO.ChilkatPackageFile.CreateEntryCore(Uri entryUri) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.PackageRepositoryFile.AddRepositoryFileDocument(RepositoryFile file, Stream documentStream) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.PackageRepositoryFile.AddMailMergeTemplateFile(RepositoryFile file, Guid mailMergeTemplateGuid, Stream fileStream) 
at ArcherTech.Kernal.Brokers.Packaging.Generate.Actions.Generation.GeneratePackage.&lt;AddRepositoryFiles&gt;b__238(GenerateContext context, ExecuteActions`1 ignored)</StackTrace>
            </InnerException>
          </Exception>
        </TraceRecord>
      </DataItem>
    </TraceData>
  </ApplicationData>
</E2ETraceEvent>

 
CauseThe cause for this issue was that there was two different mail merges using the same template.
Resolution
  1. Delete the template from one of the mail merges
  2. Save the template as something else.
  3. Upload it again with a different name.
  4. Generate Package again.

Attachments

    Outcomes