Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor II
Contributor II

Creation of pdf mail failed: HRESULT E_FAIL returned from a call to a COM component

Hi,

the task to mail out a qlikview entity report as pdf attachment failed with:

HRESULT E_FAIL has been returned from a call to a COM component.

It worked before, but on some days it doesn't

Lines from the logfile are below.

Anyone has an idea?

Thanks,

Johan

 

 

C:\ProgramData\NPrinting\Logs\nprinting_engine.txt

Qlik.NPrinting.Engine 18.39.6.0 Qlik.NPrinting.Engine.Consumer.ContentRequestExecutor 20190129T070000.238+01:00
WARN ADMQNP01 0 0 195904df-8e5b-43fa-99b8-9d5b56b5e2ae 0 e222672d-e0f0-459b-ab99-ba0b34450951
0 5125a9f5-87f1-4c02-b8d5-588081f26d29 0

Exception during content resolution while processing request with id 5125a9f5-87f1-4c02-b8d5-588081f26d29.
ERROR: System.AggregateException: One or more errors occurred.
---> System.Runtime.InteropServices.COMException:
Error HRESULT E_FAIL has been returned from a call to a COM component.??
at Qlik.QlikView.Interfaces.Doc.GetDocReport(String _Id)??
at Engine.Navigator.QlikView.QV.Extensions.Extensions.GetDocReportInfoById(Doc this, String reportId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\Extensions\Extensions.Doc.cs:line 218??
at Engine.Navigator.QlikView.QV.QlikViewDocument.<>c__DisplayClass133_0.<GetReport>b__0() in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1427??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetObject[T](ConcurrentDictionary`2 objects, String objectId, Func`2 getObject) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1135??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetReport(String reportId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1422??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetObject(String objectId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1321??
at Engine.Navigator.QlikView.QV.QlikViewNavigator.<Qlik.Printing.IContentNavigator.Process>b__24_0(IContentRequest request) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewNavigator.cs:line 235??
at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)??
at System.Linq.Parallel.HashRepartitionEnumerator`3.EnumerateAndRedistributeElements()??
at System.Linq.Parallel.HashRepartitionEnumerator`3.MoveNext(Pair`2& currentElement, Int32& currentKey)??
at System.Linq.Parallel.GroupByIdentityQueryOperatorEnumerator`3.BuildHashLookup()??
at System.Linq.Parallel.GroupByQueryOperatorEnumerator`4.MoveNext(IGrouping`2& currentElement, TOrderKey& currentKey)??
at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, TKey& currentKey)??
at System.Linq.Parallel.SelectManyQueryOperator`3.SelectManyQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, Pair`2& currentKey)??
at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()?? at System.Linq.Parallel.SpoolingTaskBase.Work()?? at System.Linq.Parallel.QueryTask.BaseWork(Object unused)?? at System.Threading.Tasks.Task.Execute()??
--- End of inner exception stack trace ---??
at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)??
at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNextSlowPath()??
at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()??
at System.Linq.LinqExtensions.CachedEnumerable`1.MoveNext(Int32 index, T& newElement) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Qlik\Qlik.Reporting.Common\System\Linq\LinqExtensions.Cached.cs:line 189??
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)??
at System.Linq.LinqExtensions.CachedEnumerable`1..ctor(IEnumerable`1 enumerable, Boolean preCache) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Qlik\Qlik.Reporting.Common\System\Linq\LinqExtensions.Cached.cs:line 171??
at System.Linq.LinqExtensions.Cached[T](IEnumerable`1 source, Boolean preCache) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Qlik\Qlik.Reporting.Common\System\Linq\LinqExtensions.Cached.cs:line 16??
at Engine.Navigator.QlikView.QV.QlikViewNavigator.Qlik.Printing.IContentNavigator.Process(IEnumerable`1 requests) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewNavigator.cs:line 219??
at Qlik.NPrinting.Engine.Consumer.ContentRequestExecutor.ProcessContent(IContentRequest request) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine\Consumer\ContentRequestExecutor.cs:line 150??

---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x80004005):
Error HRESULT E_FAIL has been returned from a call to a COM component.??
at Qlik.QlikView.Interfaces.Doc.GetDocReport(String _Id)??
at Engine.Navigator.QlikView.QV.Extensions.Extensions.GetDocReportInfoById(Doc this, String reportId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\Extensions\Extensions.Doc.cs:line 218??
at Engine.Navigator.QlikView.QV.QlikViewDocument.<>c__DisplayClass133_0.<GetReport>b__0() in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1427??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetObject[T](ConcurrentDictionary`2 objects, String objectId, Func`2 getObject) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1135??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetReport(String reportId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1422??
at Engine.Navigator.QlikView.QV.QlikViewDocument.GetObject(String objectId) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewDocument.cs:line 1321??
at Engine.Navigator.QlikView.QV.QlikViewNavigator.<Qlik.Printing.IContentNavigator.Process>b__24_0(IContentRequest request) in C:\Jws\release-18.39.x-w104zyghT\server\NPrinting\src\Engine.Navigator.QlikView\QVx\QlikViewNavigator.cs:line 235??
at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)??
at System.Linq.Parallel.HashRepartitionEnumerator`3.EnumerateAndRedistributeElements()??
at System.Linq.Parallel.HashRepartitionEnumerator`3.MoveNext(Pair`2& currentElement, Int32& currentKey)??
at System.Linq.Parallel.GroupByIdentityQueryOperatorEnumerator`3.BuildHashLookup()??
at System.Linq.Parallel.GroupByQueryOperatorEnumerator`4.MoveNext(IGrouping`2& currentElement, TOrderKey& currentKey)??
at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, TKey& currentKey)??
at System.Linq.Parallel.SelectManyQueryOperator`3.SelectManyQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, Pair`2& currentKey)??
at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()?? at System.Linq.Parallel.SpoolingTaskBase.Work()??
at System.Linq.Parallel.QueryTask.BaseWork(Object unused)?? at System.Threading.Tasks.Task.Execute()
<---

---------------------
www.scopes.nl
Labels (2)
3 Replies
Highlighted
Support
Support

Open the QVW and check the object used in your entity report to ensure that it is operating normally in the QVW itself.

- does it respond to selections?

- does the object exist any longer or has the object ID changed?

Perform the checks/tests above.

Also check for unsupported items such as

-sheet/document triggers

-Alternate states

-always one selected list box items.

For more on how to workaround unsupported items see https://support-cdn.qlik.com/articles/000026081

We are just 'like' you & like to be liked when we provide a helpful answer and or when you press the 'Solution Accepted' button if an answer provided resolves your question or issue... Cheers!
Highlighted
Contributor II
Contributor II

Hi,

Thanks for your response.

The weird thing is that 3 out of 4 times it runs successfully, and then a task fails

There are 2 tasks with both a report (rep01 and rep02) from the same qvw, but to a different recipient list. They are planned at the same time. According to the documentation that should be possible to do. 

Now if there is a failure. It's on 1 report. Either rep01 or rep02. It fails immediately and then the other report processes for 6 minutes and then succeeds in generating and distributing.

When both reports succeed: the task takes less then 1 minute. The cpu/ram usage on both servers (Qlikview and nPrinting) is not peaking above 60%.

Can it be the qvw gets blocked sometimes, that is not available for nPrinting? It's quite random.

---------------------
www.scopes.nl
Highlighted
Support
Support

Make sure that (in addition to ensure no unsupported items):
1. the QVW is not being processed by a reload on the QV server during NP metadata reload
2. Do not try to schedule NP publish tasks at the same time as a NP metadata reload
3. If you are sharing the NP service account with any other NP server or even a QV server, this will also cause intermittent failures.
4. Upgrade to the latest version of NPrinting in order to leverage the most recent performance enhancements, bug fixes and advanced logging.
We are just 'like' you & like to be liked when we provide a helpful answer and or when you press the 'Solution Accepted' button if an answer provided resolves your question or issue... Cheers!