11 Replies Latest reply: Nov 30, 2016 7:53 AM by Gabriela Romero RSS

    QDS Distribution Failed

      Upgraded the Server last night to 11.2 SR6 from 11.2 SR4 .

      All the reload tasks are recreated and the automated tasks are not reloading at the specified trigger and if reloaded i am getting the below error message any help is really appretiated.

       

      Thanks

       

       

       

       

       

       

      (2014-12-11 21:12:21) Information: Document distribution done.

      (2014-12-11 21:12:21) Error: The task "XX" failed. Exception:

      (2014-12-11 21:12:21) Error: QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.DistributeToResourcesFailedException: Distribute to resource failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.

      (2014-12-11 21:12:21) Error: at QDSMain.QlikViewServerDistributionResource.Distribute(ILogBucket i_LogBucket, DistributionRequest i_DistributionRequest)

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, IEnumerable`1 distributionResources)

      (2014-12-11 21:12:21) Error: --- End of inner exception stack trace ---

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, IEnumerable`1 distributionResources)

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.DistributionExecution(String fileName, Document qvbDocument, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue)

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue)

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

      (2014-12-11 21:12:21) Error: --- End of inner exception stack trace ---

      (2014-12-11 21:12:21) Error: at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

      (2014-12-11 21:12:21) Error: at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)

      (2014-12-11 21:12:21) Information: Task Execute Duration=00:12:20.7008874

        • Re: QDS Distribution Failed
          Magnus Lovsten

          Hi

           

          What are you distributing to? QlikView Server, Email or Folder?

            • Re: QDS Distribution Failed

              Distributing to QV Server .

              Task Trigger reload is not working , If working the reload fails and the error i see is above. If the reload was successful , I am not seeing anything change on the access Point.

               

              Upgrade to QV was done in new Box running windows 2012.

               

              Thanks

                • Re: QDS Distribution Failed
                  Magnus Lovsten

                  Have you checked the Distribution Services logs for errors or warnings?

                   

                  Located at \QlikTech\DistributionService\[NodeId]\Log.

                   

                  The Root_[date].txt is generally the one check but please look at all of them in this folder.

                    • Re: QDS Distribution Failed
                      12/15/2014 17:21:57.1503585ErrorThe task "TASK" failed. Exception:

                      QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.DistributeToResourcesFailedException: Distribute to resource failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.

                         at QDSMain.QlikViewServerDistributionResource.Distribute(ILogBucket i_LogBucket, DistributionRequest i_DistributionRequest)

                         at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, IEnumerable`1 distributionResources)

                         --- End of inner exception stack trace ---

                         at QDSMain.DistributeTask.DistributeStreamToResources(Int32 round, Distribution distribution, IEnumerable`1 distributionResources)

                         at QDSMain.DistributeTask.DistributionExecution(String fileName, Document qvbDocument, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue)

                         at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue)

                         at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

                         --- End of inner exception stack trace ---

                         at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)

                         at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)

                    • Re: QDS Distribution Failed
                      Rob Wunderlich

                      In the task on the Distribution pane, re-select and re-apply the Qlikvew Server target setting. That will sometimes fix the error.

                       

                      -Rob

                  • Re: QDS Distribution Failed

                    Hi, Are you distributing to a Qlikview Server ? If so, check the permissions of the document folder you are distributing to possibly.

                    • Re: QDS Distribution Failed

                      I looked into spurious failure of a distribution task, and realised from the log that distribute-to-qv-server uses QVP protocol, which relies on the QVS process being alive and well to receive and close the file. If the QVS process is 'in trouble', the file-write fails.

                      By distributing-to-folder, the problem went away, and also the file transfer is sigificantly faster (ca 1.6 GB file).

                      • Re: QDS Distribution Failed
                        Grant Smith

                        All,

                         

                        I'm running QV 12 SR4 and having the exact same problem... Tasks are just failing at random. Here's a log from one such task which looks much like the OP.

                         

                        2016-07-27 11:05:18) Error: The task "Staging EZView_XXX Acronym Staging Reduction" failed. Exception: || QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.DistributeToResourcesFailedException: Distribute to resource failed. ---> System.Exception: GetRandomizedList exception  ---> System.NullReferenceException: Object reference not set to an instance of an object. ||    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, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue) ||    at QDSMain.DistributeTask.Distribution(String fileName, DistributionRequest distributionRequest, TaskResult taskResult, String repeatVariableName, String currentRepeatVariableValue) ||    at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||    --- End of inner exception stack trace --- ||    at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) ||    at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)

                         

                        I tried Rob's suggestion and it worked (maybe) on one task but not another.

                         

                        Thoughts?

                        • Re: QDS Distribution Failed
                          Gabriela Romero

                          We solved this problem selecting again name users and applying it.

                           

                          We migrated to a new domain (DC) and some accounts were lost.

                           

                          Sin título.png