Skip to main content

A QlikView task configured to distribute to All Authenticated Users or All Users fails to distribute with error citing Failed to AddNamedUsers

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Chip_Matejowsky
Support
Support

A QlikView task configured to distribute to All Authenticated Users or All Users fails to distribute with error citing Failed to AddNamedUsers

Last Update:

Oct 22, 2021 5:44:56 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 30, 2018 4:13:49 PM

A reload/distribution task or distribution task fails with the below error:

Error      The task "Reload and Distribute of Test 1A.qvw" failed. Exception: || QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.DistributeToResourcesFailedException: Distribute to resource failed. ---> System.Exception: l_FileSystemPluginHelper exception  ---> QDSMain.Exceptions.DscOffLineException: Failed to AddNamedUsers ||    at QDSMain.Support.DSCHelper.AddNamedUsers(ILogBucket logBucket, XmlDocument xml, List`1 namedUsers, FileSystemPluginHelper fileSystemPluginHelper) ||    at QDSMain.Support.DSCHelper.GetFileSystemSecurity(ILogBucket logBucket, FileSystemPluginHelper fileSystemPluginHelper, List`1 recipients) ||    at QDSMain.QlikViewServerDistributionResource.CreateSettingsBlock(ILogBucket i_LogBucket, FileSystemPluginHelper i_FileSystemPluginHelper, String i_SourceDocumentName, DateTime i_LastUpdate, DateTime i_NextUpdate, Boolean i_EventDriven, String i_Category, eDistributionFileType i_TotalDistributionFileTypeMask, FilePackageContainer i_FilePackageContainer) ||    at QDSMain.QlikViewServerDistributionResource.Distribute(ILogBucket i_LogBucket, DistributionRequest i_DistributionRequest) ||    --- End of inner exception stack trace --- ||    at QDSMain.QlikViewServerDistributionResource.Distribute(ILogBucket i_LogBucket, DistributionRequest i_DistributionRequest) ||    at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, Dictionary`2 offeredDistributionList, String fullNtfsPathToFile, UnifiedHubSettings unifiedHubSettings) ||    --- End of inner exception stack trace --- ||    at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, Dictionary`2 offeredDistributionList, String fullNtfsPathToFile, UnifiedHubSettings unifiedHubSettings) ||    at QDSMain.DistributeTask.DistributionExecution(String fileName, Document qvbDocument, DistributionRequest distributionRequest, IExecutingTaskResult executingTaskResult, String repeatVariableName, String currentRepeatVariableValue) ||    at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, IExecutingTaskResult executingTaskResult, String repeatVariableName, String currentRepeatVariableValue) ||    at QDSMain.DistributeTask.PerformExecute(IExecutingTaskResult executingTaskResult) ||    --- End of inner exception stack trace --- ||    at QDSMain.DistributeTask.PerformExecute(IExecutingTaskResult executingTaskResult) ||    at QDSMain.Task.AbstractTask.TaskExecution(CurrentExecutionArgs args)

 

Environment:

QlikView 

 

QlikView Publisher adds the Supervisor account to the distribution as a Named User to allow the account to view the QVW file on the AccessPoint. If the account is removed from AD, it cannot be resolved by the DSC and the distribution fails. Removing the deleted AD account from the Supervisor role will remove the "Named" ID AddRecipient of the task and will allow for the task to distribute successfully.

 

Resolution:

 

  1. In Windows File Explorer, navigate to the QlikView Distribution Service Application Data folder.

    Example: 
    %ProgramData%\QlikTech\DistributionService\1\Log\DateOfTask\NameOfTask) and open the task log for the failed task

  2. Check the first line of the log and make note of the alpha-numeric GUID of the task

    Example: 2e808dac-2988-46ea-ba75-fcbcac6f06bc

  3. In Windows File Explorer, navigate to %ProgramData%\QlikTech\DistributionService\Tasks directory and find then open the XML file with the corresponding GUID determined in step 2

  4. Find the "Resources" section of the XML file and note "Named" ID
    </Resources>
        <Resource Type="QVS" ID="QVS@qlikserver1" AjaxUrl="" MountPoint="">
          <AddRecipient ObjectType="Named" ID="domain\User5" />
          <AddRecipient ObjectType="Authenticated" ID="AllAuthenticated" />
        </Resource>
      </Resources>​
  5.  Verify if  the account listed as "Named" ID was a QlikView Supervisor and has been removed from Active Directory

  6. If the account has been deleted from Active Directory, open QlikView Management Console and navigate to System > Setup > QlikView Servers > QVS@[servername] > Folder Access tab
  7. Check to see if the account is listed as a Supervisor under Whole server or Root folder by clicking the "Manage Users" icon
  8. If the account has been deleted from Active Directory, the account will no longer be displayed in the Manage Users pop up console
  9. Click OK, then Apply
  10. Rerun the task to test if the distribution is successful
  11. Check the "Resources" section of the XML file as in step 4 and notice that the "Named" ID of the Supervisor has been removed
    <Resources>
        <Resource Type="QVS" ID="QVS@qlikserver1" AjaxUrl="" MountPoint="">
          <AddRecipient ObjectType="Authenticated" ID="AllAuthenticated" />
        </Resource>
      </Resources>


 

Labels (1)
Contributors
Version history
Last update:
‎2021-10-22 05:44 AM
Updated by: