When publishing a task to users which could not have access to an application due to security rules in Qlik Sense would cause an error as below.
In the engine log we will see the following message:
Qlik.NPrinting.Engine 18.29.8.0 Qlik.NPrinting.Engine.Consumer.ConnectionResolvers 20190117T093024.350+01:00 WARN QLIKSERVER1 0 0 0 0 0 0 0 0 Failed to open a resolver for connection navigator=qliksense;proxyurl=https://qlikserver1.domain.local/;appid=b8dd5898-0f6e-46ed-ac74-18e5c6cf7b89;identity=domain\user2. ERROR: System.Exception: Cannot find a Sense app with id b8dd5898-0f6e-46ed-ac74-18e5c6cf7b89↓↓↓↓Server stack trace: ↓↓ at Engine.Navigator.QlikSense.SDK.SenseNavigator.OpenApp()↓↓ at Engine.Navigator.QlikSense.SDK.SenseNavigator..ctor(QlikSenseConnectionString connectionString, RenderingManager renderingManager)↓↓ at Engine.Navigator.QlikSense.SDK.SenseNavigatorFactory.GetSenseNavigator(QlikSenseConnectionString connectionString)↓↓ at Engine.Navigator.QlikSense.QlikSenseContentNavigator.<>c__DisplayClass2_0.<.ctor>b__0(ISenseNavigatorFactory nf)↓↓ at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()↓↓ at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)↓↓ at Engine.Navigator.QlikSense.QlikSenseContentNavigator..ctor(QlikSenseConnectionString connectionString, IEnumerable`1 navigatorFactories)↓↓ at lambda_method(Closure , Object[] )↓↓ at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()↓↓↓↓Exception rethrown at [0]: ↓↓ at System.ExceptionExtensions.RethrowInnerException(Exception this, Boolean ifInnerExceptionIsNullRethrowThis) in C:\Jws\release-18.29.x\server\NPrinting\src\Qlik\Qlik.Reporting.Common\System\ExceptionExtensions.cs:line 264↓↓ at Qlik.NPrinting.Engine.Consumer.ContentResolverFactory.Get(Guid engineId, String connectionString, IRequestBuffer buffer, Int32 initialMaxBatchSize, CancellationToken cancToken) in C:\Jws\release-18.29.x\server\NPrinting\src\Engine\Consumer\ContentResolverFactory.cs:line 34↓↓ at Qlik.NPrinting.Engine.Consumer.ConnectionResolvers.TryOpenResolver(Int32 initialMaxBatchSize, CancellationToken cancToken) in C:\Jws\release-18.29.x\server\NPrinting\src\Engine\Consumer\ConnectionResolvers.cs:line 308
And the user will receive the following email:
Some reports failed to generate:
Please contact your administrator for further details
Environment:
- NPrinting 18 and 18
- Qlik Sense Enterprise (all versions)
Qlik Sense security rules interfering.
Set up your Qlik Sense security rules accordingly to your needs.