Free Support Forum - aspose.cloud

Merge/convert started failing

I have the similar issue as:

Suddenly my word fields are not replaced anymore and the doc to pdf conversion fails with:

"Could not find file 'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\ASPNETCORE_8c7bad78-0508-493e-86e0-efb593ab251d.tmp'."

@michel.liesmons

We are sorry for the inconvenience. But I am afraid we cannot reproduce the issue at our end. We will appreciate it if you please share your sample code along with the complete error message. We will investigate it and guide you.

Hi Ahmad,

This same code has been working for the last year or so. Today it automagically works again, no more crash. The data is specified as XML.

For another, newer, report that has been working for the last couple of months,
the merge does no longer fill my word fields (data specified as a JSON).
The pdf is correctly generated showing the unprocessed fields, where as yesterday it crashed…

Can I share the word template and JSON data somehow?

kr,
Michel.

@michel.liesmons

We apologize for your inconvenience. It seems it was some temporary issue, while we were deploying Aspose.Words Cloud 20.10 release.

Yes, please share the template and data file. We will investigate it and share our findings with you.

This is the code that used to work for the last couple of months:

        var output = WordsApi.ExecuteMailMergeOnline(
                new ExecuteMailMergeOnlineRequest(
                    new Word.IssueTemplate().GetTemplate(),
                    await Word.IssueTemplate.GetData(issue, BlobService, projectsService)));

Both GetTemplate() and GetData() return a stream from these files: Input.zip (71.5 KB)

Data contains a reference to images in protected blob storage, the links will probably be expired by now, but can be replaced by any other link to an image.

I have another issue making the images fit in a table cell with attributes set to ‘no auto resize’, they overflow the cell as opposed to inserting them interactively using Word.

kr,
Michel.

@michel.liesmons

Thanks for sharing the source documents. We are investigating the issue and will update you shortly.

@michel.liesmons

We have recently released Aspose.Words Cloud 20.10. And I am unable to replicate the issue with it. Please note I was unable to access your last two images due to the expired signature, so I replaced it another remote image link.Testmailmerge.zip (382.1 KB). Please double check with the latest release and confirm.

You can define image size in the template as follows:

Image(width[pt|%];height[pt|%]):FieldName

The format is case-insensitive. The values of the width and the height should represent double constant values using the dot as the decimal separator (i.e. using invariant culture). Negative values should be used to indicate that the original values of the corresponding image dimensions should be used. If no unit is specified, points are used by default. If a unit other than “pt” or “%” is specified, then the image size parsing is considered to be failed and the original values of the corresponding image dimensions are used.

Hopefully, it will resolve the issue. Otherwise, please share the problematic template, data file and expected output. It will help us to understand and address your issue exactly.

Hi Ahmad,

Thank you for your testing and the hint on image sizing!.

My word template still does not get populated.

I notice the latest NuGet package I seem to have access to (prerelease included) is 20.9.0.
Could this be the reason?

kr,
Michel.