Hi SurveySolutions,
We are facing an issue with a questionnaire (bedb5e47-6f4a-47d9-a2af-b720b981d9ff) and more specifically with at least two of its translations (Hindi: fb2aadf3-27b2-bb42-8ef1-0f6135e97016 and Chichewa: db62f8a6b6fb00f5f11a558f818b1f59). Please be aware that we have now removed these translations from the latest version of the questionnaire so that we can work with it again. You will find the problematic translations in revision 7575 of the questionnaire.
Now, with these translations, the questionnaire fail to import into HQ with the following log:
hq_1 | [10:02:28 INF] Headquarters Failed to import questionnaire from designer. RestException
hq_1 | WB.Core.Infrastructure.HttpServices.HttpClient.RestException: Not Found
hq_1 | ---> WB.Core.Infrastructure.HttpServices.HttpClient.ExtendedMessageHandlerException: Request GET https://designer.mysurvey.solutions/pdf/download/bedb5e47-6f4a-47d9-a2af-b720b981d9ff?translation=fb2aadf3-27b2-bb42-8ef1-0f6135e97016 failed with status code 404 (Not Found).
hq_1 | at WB.UI.Headquarters.Services.Impl.DesignerRestServiceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /src/UI/WB.UI.Headquarters.Core/Services/Impl/Designer/DesignerRestServiceHandler.cs:line 82
hq_1 | --- End of inner exception stack trace ---
hq_1 | at WB.UI.Headquarters.Services.Impl.DesignerRestServiceHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /src/UI/WB.UI.Headquarters.Core/Services/Impl/Designer/DesignerRestServiceHandler.cs:line 82
hq_1 | at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken)
hq_1 | at Refit.RequestBuilderImplementation.<>c__DisplayClass14_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in /_/Refit/RequestBuilderImplementation.cs:line 291
hq_1 | --- End of stack trace from previous location ---
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.PdfQuestionnaireImportStep.DownloadPdf(Action incrementProgress) in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/PdfQuestionnaireImportStep.cs:line 101
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.PdfQuestionnaireImportStep.DownloadFromDesignerAsync(IProgress`1 progress) in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/PdfQuestionnaireImportStep.cs:line 51
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.QuestionnaireImportService.<>c__DisplayClass14_1.<<ImportImpl>b__9>d.MoveNext() in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/QuestionnaireImportService.cs:line 245
hq_1 | --- End of stack trace from previous location ---
hq_1 | at WB.Core.BoundedContexts.Headquarters.Implementation.Services.QuestionnaireImportService.ImportImpl(RestCredentials credentials, IServiceLocator serviceLocator, Guid userId, String userName, Guid questionnaireId, QuestionnaireImportResult questionnaireImportResult, String name, Boolean isCensusMode, String comment, String requestUrl, Boolean shouldMigrateAssignments, QuestionnaireIdentity migrateFrom, Boolean includePdf) in /src/Core/BoundedContexts/Headquarters/WB.Core.BoundedContexts.Headquarters/Implementation/Services/QuestionnaireImport/QuestionnaireImportService.cs:line 242
We also get an error when attempting to generate a PDF for any of the two languages cited above in Designer wich just says, though: “Failed to generate PDF.Please reload the page and try again or contact support@mysurvey.solutions”.
The other translations appear to act properly and do get their PDFs generated. What feels mildly bizarre is that the Hindi translation did not cause any issues until the Chichewa translation was updated from a previous version (which was also fine).