cancel
Showing results for 
Search instead for 
Did you mean: 

Document Package Preview Not Working

Bria_Lubiens
Champ on-the-rise
Champ on-the-rise

We're working on fixing document packaging for our legal team. We're on Unity version 18 and currently looking to upgrade to 23.1. They use a custom query to cross-reference all of the docs that should be in the package, so I was trying to set it up using their custom query. The issue that I'm finding is that, even when I am able to Generate the package successfully, I am getting an error previewing the package, and I was wondering if anyone else has come across this. I am including only about 6 docs in the package, but this is the error I get: 

System.ApplicationException: 59 documents are not supported by the Packet Preview Control
at Hyland.Canvas.Controls.DocumentPacket.PacketPreviewControl.OnLoadedOnce()
at Hyland.Canvas.CanvasControl.CanvasControl_LoadedOnce(Object sender, RoutedEventArgs e)
at Hyland.Canvas.FrameworkElementLifecycle.RunOnce(Object sender, RoutedEventArgs args)
at Hyland.Canvas.FrameworkElementLifecycle.DoLoaded(Object sender, RoutedEventArgs args)
at Hyland.Canvas.FrameworkElementLifecycle.InvokeOnDispatcherThread(FrameworkElement control, EventHandler`1 handler, Object sender, RoutedEventArgs args)
at Hyland.Canvas.FrameworkElementLifecycle.<>c__DisplayClass17_0.<OnDispatchLoaded>b__0(FrameworkElement control)
at Hyland.Canvas.FrameworkElementLifecycle.WithSafeControlReference(Action`1 WithControl)
at Hyland.Canvas.FrameworkElementLifecycle.OnDispatchLoaded(Object sender, RoutedEventArgs args)
at Hyland.Canvas.FrameworkElementLifecycle.control_Loaded(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

<TraceMessage>
<DateTime>2024-04-08T19:47:37.9640194Z</DateTime>
<EventType>Error</EventType>
<Id>0</Id>
<Message>TempFile DeleteFile routine FAILED for: c:\temp\962feeb2-1eb4-4689-850b-06eceb9b11b7.pdf. The process cannot access the file 'c:\temp\962feeb2-1eb4-4689-850b-06eceb9b11b7.pdf' because it is being used by another process. Exception: System.IO.IOException: The process cannot access the file 'c:\temp\962feeb2-1eb4-4689-850b-06eceb9b11b7.pdf' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileInfo.Delete() at Hyland.Canvas.Services.TemporaryFileCleanupService.DeleteFile(String pathToFile)</Message>
<Source>TempFile</Source>
</TraceMessage>
<TraceMessage>
<DateTime>2024-04-08T19:48:52.1424892Z</DateTime>
<EventType>Error</EventType>
<Id>0</Id>
<Message>Unable to locate the 'actionsGroup' ribbon group for the Document Viewer control. Exception: System.ApplicationException: Unable to locate the 'actionsGroup' ribbon group for the Document Viewer control.</Message>
<Source>Default</Source>
</TraceMessage>
<TraceMessage>
<DateTime>2024-04-08T19:48:52.1685091Z</DateTime>
<EventType>Error</EventType>
<Id>0</Id>
<Message>Unable to locate the 'actionsGroup' ribbon group for the Document Viewer control. Exception: System.ApplicationException: Unable to locate the 'actionsGroup' ribbon group for the Document Viewer control.</Message>
<Source>Default</Source>
</TraceMessage>
<TraceMessage>
<DateTime>2024-04-08T19:49:46.6393252Z</DateTime>
<EventType>Error</EventType>
<Id>0</Id>
<Message>59 documents are not supported by the Packet Preview Control Exception: System.ApplicationException: 59 documents are not supported by the Packet Preview Control at Hyland.Canvas.Controls.DocumentPacket.PacketPreviewControl.OnLoadedOnce() at Hyland.Canvas.CanvasControl.CanvasControl_LoadedOnce(Object sender, RoutedEventArgs e) at Hyland.Canvas.FrameworkElementLifecycle.RunOnce(Object sender, RoutedEventArgs args) at Hyland.Canvas.FrameworkElementLifecycle.DoLoaded(Object sender, RoutedEventArgs args) at Hyland.Canvas.FrameworkElementLifecycle.InvokeOnDispatcherThread(FrameworkElement control, EventHandler`1 handler, Object sender, RoutedEventArgs args) at Hyland.Canvas.FrameworkElementLifecycle.<>c__DisplayClass17_0.<OnDispatchLoaded>b__0(FrameworkElement control) at Hyland.Canvas.FrameworkElementLifecycle.WithSafeControlReference(Action`1 WithControl) at Hyland.Canvas.FrameworkElementLifecycle.OnDispatchLoaded(Object sender, RoutedEventArgs args) at Hyland.Canvas.FrameworkElementLifecycle.control_Loaded(Object sender, RoutedEventArgs e) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</Message>
<Source>Default</Source>
</TraceMessage>
</ArrayOfTraceMessage>
1 ACCEPTED ANSWER

Can_Ergin
SME
SME

Hi Bria,

 

According to the stack trace information pasted, looks like the document package template is setup to output "Image Rendered PDF". There was an issue with previewing when "Archived Default File Type" was set to "Image Rendered PDF" in 18 configuration. This issue was addressed on build 18.1.0.54 and above. 

 

If upgrading to a release build above 18.1.0.54 is not possible/feasible, as a workaround, "Archived Default File Type" can be set to "PDF".

 

Let us know if solution fits the description. If not, please feel free to reach out to your first line of support to get a ticket created.

 

Thanks,

Can

View answer in original post

4 REPLIES 4

Can_Ergin
SME
SME

Hi Bria,

 

According to the stack trace information pasted, looks like the document package template is setup to output "Image Rendered PDF". There was an issue with previewing when "Archived Default File Type" was set to "Image Rendered PDF" in 18 configuration. This issue was addressed on build 18.1.0.54 and above. 

 

If upgrading to a release build above 18.1.0.54 is not possible/feasible, as a workaround, "Archived Default File Type" can be set to "PDF".

 

Let us know if solution fits the description. If not, please feel free to reach out to your first line of support to get a ticket created.

 

Thanks,

Can

Thanks Can, that worked, although we'll probably still see the errors we were seeing before with packaging using this format. I will explore more in our Dev 23.1 environment. 

I'm glad that worked.

That's unfortunately true for 18.1.0.53 and earlier releases. 23.1 should no longer exhibit the issue.

@Can Ergin was wondering if you could give me insight on a couple more issues. 

We've had situations where we have a password protected pdf (protected for viewing) included in the package. This obviously isn't supported as per the documentation, but there is no visual to determine which file is the problem. In a package of hundreds of docs, it's quite manual to figure out which pdf is the issue. We've had similar issues with embedded file links in pdfs and some of our more complicated eSignature docs, according to our users. They don't get a warning indication like when there is a unsupported file type.