En voulant séquencer/packager Office 2016 (ou Office 365 ProPlus) avec les outils de déploiement d’Office, j’ai rencontré une erreur. Pour rappel, si vous souhaitez une application virtuelle d’Office 2016 avec App-V 5.X, vous devez utiliser ces outils de déploiement (et non plus le séquenceur). Dans le problème rencontré, l’erreur 30016-7 est remontée au bout de quelques minutes
Le fichier de journalisation Flattener.log renvoie l’erreur :
Flattener.exe : ERROR : | 27/03/2016 21:34:34 | P:3596 | T:1 | Packaging FAILED: The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
Exception (outer): The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
ST (outer): at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<FinalizePackage>b__14(Exception exception)
at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 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 installShortPath, 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, Boolean isLaunchedByFlattener)
Exception (inner): The group or resource is not in the correct state to perform the requested operation. (Exception from HRESULT: 0x8007139F)
ST (inner): at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Microsoft.ApplicationVirtualization.Packaging.Impl.AppxPackageWriter.Close(Stream inputManifestStream)
at Microsoft.ApplicationVirtualization.Packaging.AppxPackageWriter.CloseAndDisposeWriter()
at Microsoft.ApplicationVirtualization.Packaging.AppxPackageWriter.Dispose()
at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.OnFinalizePackage(Func`1 writerFactory)
at Microsoft.ApplicationVirtualization.Packaging.PackagingEngine.<>c__DisplayClass18.<FinalizePackage>b__12()
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__DisplayClass18.<FinalizePackage>b__11()
at Microsoft.ApplicationVirtualization.Packaging.ExceptionGuard`1.Guard(Action logStart, Action execute, Action logEnd, Action`1 exceptionAction)
Ce scenario survient si vous essayez de packager Office 2016 avec un compte utilisateur qui comporte plus de 8 caractères. Dans ce cas, utilisez un compte utilisateur qui a pour login moins de 8 caractères.