Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..

cancel
Showing results for 
Search instead for 
Did you mean: 
No ratings
KB-Sync1
Archer Employee
Archer Employee

Article Number

000039358


Applies To


Product(s): Archer
Version(s): All Versions
Primary Deployment: On Premises/AWS Hosted/AWS SaaS

Description


When attempting to map a Package, the Package Mapper crashes and briefly displays the below error:
The source file cannot be read, The file may be missing or corrupt.

It then returns to the Install Package page.
The following error is found in the archer.w3wp log file:

</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
<TraceIdentifier>Archer.NET</TraceIdentifier>
<UserId>0</UserId>
<Description>Internal Error in GetPackageMetadataContainer</Description>
<AppDomain>/LM/W3SVC/1/ROOT-1-132448717144874614</AppDomain>
<Exception>
<ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Internal Error in GetPackageMetadataContainer</Message>
<Source>ArcherTech.Kernel</Source>
<StackTrace> at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.GetPackageMetadataContainer(Int32 packageId)
at ArcherTech.Kernel.Managers.PackageManager.GetPackageMetadataContainer(SessionContext sessionContext, Int32 packageId)</StackTrace>
<InnerException>
<ExceptionType>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Object reference not set to an instance of an object.</Message>
<Source>ArcherTech.Kernel</Source>
<StackTrace> at ArcherTech.Kernel.Utility.Packaging.KeyManager`1.LevelLayoutGuidLookup(IEnumerable`1 keys)
at ArcherTech.Kernel.Utility.Packaging.KeyManager`1.PerformKeyLookup[K,D](IEnumerable`1 keys, IDictionary`2 keyCache, Func`2 keyLookup)
at ArcherTech.Kernel.Utility.Packaging.KeyManager`1.GetTargetLevelLayouts(IEnumerable`1 layoutKeys)
at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.PerformMatch(IKeyManager keyManager, Int32 levelId, IList`1 sourceLayouts)
at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.PerformMatch(IKeyManager keyManager, Int32 moduleId, IList`1 sourceLevels)
at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.PerformMatch(IKeyManager keyManager, GuidMetadataContainer container)
at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.ReadPackageAndMatch(Stream stream, ImportPackageContainer packageContainer)
at ArcherTech.Kernel.Brokers.Packaging.PackageBroker.&lt;&gt;c__DisplayClass46_3.&lt;GetPackageMetadataContainer&gt;b__0()</StackTrace>
</InnerException>
</Exception>
</TraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>

Cause


The LevelLayoutGuidLookup error could be caused by an invalid database condition where a Sub-Form does not have a layout. The following SQL query can be used to look for Sub-Form modules that do not have a layout.
/*  Find sub-forms with no layout */
SELECT 
	mt.module_name
,	mtype.module_type_desc
,	lm.layout_module_id
,	lm.layout_module_name
FROM tblModule m 
FULL JOIN tblIVLayoutModule lm  on m.module_id=lm.module_id
JOIN tblModuleTranslation MT on m.module_id=mt.module_id
JOIN tblModuleType mtype on m.module_type_id=mtype.module_type_id
WHERE m.module_type_id=5 
AND MT.is_default=1
AND lm.layout_module_id IS NULL
ORDER BY mt.module_name
 

Resolution


Delete the corrupted Sub-Form from the Application Builder.

Version history
Last update:
‎2024-09-21 06:00 AM
Updated by: