The API methods getComment and getComments fail with the error:
Error: Failed to find type CommentRangeStart
when attempting to retrieve any reply comment.
Steps to Reproduce:
Call getComments
on any document that contains reply comments.
Expected Behavior:
The API should return the requested comment(s), including replies, without errors.
Actual Behavior:
The API fails with the above error for any reply comment.
Environment:
- Package version:
"asposewordscloud": "24.12.0"
Attachments:
I’ve attached an example file that reproduces the issue.
comments.docx (18,3 КБ)
@mgornova
The error you are encountering, Error: Failed to find type CommentRangeStart
, when using the getComment
and getComments
API methods to retrieve reply comments, suggests that there may be an issue with how the API is handling the comment structure in your document.
Here are a few steps you can take to troubleshoot and potentially resolve this issue:
-
Check Document Structure: Ensure that the document you are testing with is structured correctly and that the reply comments are properly formatted. Sometimes, issues can arise from unexpected document structures.
-
Update Package Version: You mentioned using the package version "asposewordscloud": "24.12.0"
. Check if there are any updates available for the Aspose.Words Cloud SDK. Newer versions may contain bug fixes or improvements related to comment handling.
-
Test with Different Documents: Try using different documents that contain reply comments to see if the issue persists. This can help determine if the problem is specific to the document you are currently using.
-
Review API Documentation: Make sure to review the API documentation for getComment
and getComments
to ensure that you are using the methods correctly and that there are no additional parameters or requirements for retrieving reply comments.
-
Example Code: Here is a basic example of how to use the getComments
method:
var request = new GetCommentsRequest(
name: "yourDocumentName.docx",
folder: "yourFolderName"
);
var response = await wordsApi.GetComments(request);
Ensure that you replace "yourDocumentName.docx"
and "yourFolderName"
with the actual names relevant to your case.
If the issue continues after trying these steps, consider reaching out to Aspose support with the specific document that reproduces the issue, as they may be able to provide more targeted assistance.
If you have any further questions or need additional help, feel free to ask!
version “25.3.0” has the issue as well
Sorry for the inconvenience. I was able to reproduce this issue. I will create a ticket to fix it.
1 Like
@mgornova
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSCLOUD-2979
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
1 Like