Share via

Error code 0-7

Anonymous
2015-11-18T10:46:35+00:00

Hi Team,

I am facing an issue while converting my office365 offline source in to .appv using the command line 

example : setup.exe /packager configuration.xml "C:\New folder (2)"

configuration.xml consists of 

<Configuration>

<Add SourcePath="" OfficeClientEdition="32" >

<Product ID="O365ProPlusRetail">

<Language ID="en-us" />

</Product>

</Add>

<Logging Path="%temp%" />

</Configuration>


my problem is : the package almost downloaded and its created the .app file with 1GB content, without creating any .xml file.

i have observed in flattner.log file , i can see some problem related to appv. the log is is as follows

Flattener.exe Event: ClosedPackageFile

Flattener.exe Event: ClosedPackageFile

Flattener.exe : ERROR : Packaging FAILED: Value does not fall within the expected range.

Exception (outer): Value does not fall within the expected range.

ST (outer): at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<FinalizePackage>b__12(Exception exception)

at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard1.Guard(Action logStart, Action execute, Action logEnd, Action1 exceptionAction)

at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.FinalizePackage(Func`1 writerFactory)

at Microsoft.ApplicationVirtualization.Packaging.Packager.FinalizePackage(IPackageFiles packageFiles, String manifestPath, String registryHivePath, String streamMapPath, String packageHistoryPath, String installPath, String packagePath, CompressionOption compression, Predicate`1 addFileToPublishingFeatureBlock, PackagingEngineType engineType, PackagerParameters packageParameters)

at Microsoft.ApplicationVirtualization.Packaging.IsvPackager.FinalizePackage(IPackageFiles packageFiles, String manifestPath, String registryHivePath, String streamMapPath, String installPath, String packagePath, CompressionOption compression, Predicate`1 addFileToPublishingFeatureBlock, PackagingEngineType engineType)

at Microsoft.Tools.Office.C2R.Packager.PackageAsFile.CreatePackage(String ingredientsXmlFileIn, String destinationPackageFilePath, Int32 countOfFilesToAdd, String manifestFileIn, String manifestLocFileIn, String streamMapIn, String productName, String packageGUID, String packagePlatform, String packageVersion, String appID, String manifestFileOut, String registryHiveFileOut, String installPath, JobType jobType, String workingDir, CompressionOption compressionOption, VFontsType vfontsType, ArrayList comEPClassToInclude, ArrayList comEPInterfaceToInclude, ArrayList comEPTypeLibToInclude, HashSet`1 usedKnownFolderIDs, Boolean isLaunchedByFlattener)

Exception (inner): Value does not fall within the expected range.

ST (inner): at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

at Microsoft.ApplicationVirtualization.Packaging.Impl.AppxPackageWriter.Close(Stream inputManifestStream)

at Microsoft.ApplicationVirtualization.Packaging.AppxPackageWriter.CloseAndDisposeWriter()

at Microsoft.ApplicationVirtualization.Packaging.AppxPackageWriter.Dispose(Boolean disposing)

at Microsoft.ApplicationVirtualization.Packaging.AppxPackageWriter.Dispose()

at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.OnFinalizePackage(Func`1 writerFactory)

at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<>c__DisplayClass16.<FinalizePackage>b__10()

at Microsoft.ApplicationVirtualization.Packaging.WithAppCorruptionCheck.Execute(Action execute, Action`1 logCorruption)

at Microsoft.ApplicationVirtualization.Packaging.WithAppCorruptionCheck.Execute(Action execute)

at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<>c__DisplayClass16.<FinalizePackage>b__f()

at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard1.Guard(Action logStart, Action execute, Action logEnd, Action1 exceptionAction)

Flattener.exe : ERROR : Abandoning build due to fatal error

ST: at Microsoft.Tools.Office.C2R.Packager.Log.Message(String message, SEV type, String messageID, Boolean logToConsole, Boolean logPrefix)

at Microsoft.Tools.Office.C2R.Packager.Log.Message(String message, SEV type)

at Microsoft.Tools.Office.C2R.Packager.PackageAsFile.CreatePackage(String ingredientsXmlFileIn, String destinationPackageFilePath, Int32 countOfFilesToAdd, String manifestFileIn, String manifestLocFileIn, String streamMapIn, String productName, String packageGUID, String packagePlatform, String packageVersion, String appID, String manifestFileOut, String registryHiveFileOut, String installPath, JobType jobType, String workingDir, CompressionOption compressionOption, VFontsType vfontsType, ArrayList comEPClassToInclude, ArrayList comEPInterfaceToInclude, ArrayList comEPTypeLibToInclude, HashSet`1 usedKnownFolderIDs, Boolean isLaunchedByFlattener)

at Microsoft.Tools.Office.C2R.Packager.Package.PackageFromOptions(Options options, Boolean closeLogFile, String binaryIdPackageMap)

Flattener.exe : ERROR : ERROR: Abandoning build due to fatal error : at Microsoft.Tools.Office.C2R.Packager.Log.Message(String message, SEV type, String messageID, Boolean logToConsole, Boolean logPrefix)

at Microsoft.Tools.Office.C2R.Packager.Log.Message(String message, SEV type)

at Microsoft.Tools.Office.C2R.Packager.Package.PackageFromOptions(Options options, Boolean closeLogFile, String binaryIdPackageMap)

at Flattener.Flattener.CreateAppVPackageFromOptions(String packagerArguments)

at Flattener.Flattener.CreateAppVPackage()

at Flattener.Flattener.Run(String[] args)

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2015-11-19T02:15:26+00:00

    thanks for your reply. i will post the thread in the appv forum.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-11-18T14:38:08+00:00

    Hi Asasfadsfaf,

    Have you followed this article to check the outcome?

    https://support.microsoft.com/en-us/kb/2915745

    Meanwhile, about the App-V issues, there is a dedicated TechNetforum. And we recommend you post there for advanced help. The engineers there are experts in dealing with the related issues.https://social.technet.microsoft.com/Forums/en-US/home?category=officeitpro&forum=sharepointdevelopment%2Cmdt&filter=alltypes&sort=relevancedesc&searchTerm=%20App-V%20package%20in%20SCCM%202012%20in%20Office%20365

    Thanks for your understanding.

    Kerwin

    Was this answer helpful?

    0 comments No comments