Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
distribution failed due to the below error, we are using the loop and reduce option and we are bit new to this type of requirement.
we have an app called A which is used to trigger and generate pdf files using loop and reduce.
we tried triggering the same app but its not working, so we thought that it was corrupted and created a new task by taking the copy of the app. but facing the below error. no idea and when we tried to see the script its not visible, this is bit tricky..
@marcus_sommer @Miguel_Angel_Baeyens @Bill_Britt can any one you please guide us. Thanks Much in advance.
10/1/2020 12:17 PM Error Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found.
at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry)
at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)
10/1/2020 12:18:48 PM Error The task "RyDoc.Next - App_Final" failed. Exception:
QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.LogBucketErrorException: Failed to generate QVW File package.. Exception=QDSMain.Exceptions.NoDocumentPackageFoundException: No Document Package found.
at QDSMain.DistributeHelper.GetDocumentPackage(ILogBucket logBucket, IDictionary`2 duplicateList, Document document, eDocumentType documentType, String url, Boolean showToolBar, String reportID, Int32 maxRetries, Int32 currentRetry)
at QDSMain.DistributeHelper.GrabPDFFile(ILogBucket i_LogBucket, FilePackageContainer i_ParentFilePackageContainer, String i_FileName, Dictionary`2 i_DuplicateList, Document i_Document)
at QDSMain.DistributeTask.RevertOneAndAlwaysOne(Document qvbDocument)
at QDSMain.DistributeTask.ReleaseQvb(Document qvbDocument)
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)
Maybe the cause is exactly what the error-message said: "... Field does not exist. Loop not possible. FieldName: System ...". Therefore take a look within document-log if this part of the tasks is finished successfully and if the field is included or not. Further check if any section access omit this field and/or that the field has real values and isn't only NULL - from the point of view for the executing user.
- Marcus
Hi, I don't know but doing a search throguh community possible causes can be:
-lack of space: https://community.qlik.com/t5/QlikView-Publisher/Publisher-not-sending-PDF/td-p/626531
- pdf printer corrupted or with short timeout: https://community.qlik.com/t5/New-to-QlikView/Failed-to-generate-QVW-File-package/td-p/723099
Thanks RubenMarin,
a week back also it generated pdf files, there is less chances for pdf printer corruption. How can i know that it is because of the PDF printer issue.
Hi, sorry but I don't know, haven't found this issue by myself, I just did a search for "qlik publisher No Document Package found".
There is another one solved with help of @ashfaq_haseeb:
https://community.qlik.com/t5/QlikView-Publisher/PDF-Generation-failed/m-p/640680
Thank you again Rubenmarin,
@ashfaq_haseeb can you please look into the above error and help me with the possible reason pls.
Thanks much in advance.
BR,
Dhasharadh
we received below error to our emails whenever the job failed.
we are literally clueless what is going wrong.
can any one guess with error what might be going wrong. @ashfaq_haseeb @marcus_sommer @Bill_Britt
10/7/2020 5:35:03 PM Error The task "App_Final" failed. Exception:
QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.FieldNotExistingException: Field does not exist. Loop not possible. FieldName: System
at QDSMain.DistributeTask.BindLoopReductionSet(Document qvbDocument)
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)
Maybe the cause is exactly what the error-message said: "... Field does not exist. Loop not possible. FieldName: System ...". Therefore take a look within document-log if this part of the tasks is finished successfully and if the field is included or not. Further check if any section access omit this field and/or that the field has real values and isn't only NULL - from the point of view for the executing user.
- Marcus
Just including Help Doc links for Reduction and Distribution using looping feature:
Generally using Loop and Reduce will require Loop and Distribute as well given most use cases are wanting to restrict access to the reduced apps to just certain groups of users in those cases.
Regards,
Brett