Skip to main content
Known Participant
November 28, 2020
Answered

Annotation Selector is not valid for given xxx

  • November 28, 2020
  • 1 reply
  • 5373 views

Hi, 

 

I've encountered this error when using 

annotationManager.addAnnotations(xxx);

 

It was working for some time. then suddenly this error shows up. 

    This topic has been closed for replies.
    Correct answer Dhruv5CCF

    This error encounters when the Comment is added to the File without selecting the selector

    1 reply

    Dhruv5CCFCorrect answer
    Inspiring
    December 3, 2020

    This error encounters when the Comment is added to the File without selecting the selector

    tangyunAuthor
    Known Participant
    December 3, 2020

    Actually,

     

    The annotation data are captured by adding event listeners for the event ANNOTATION_ADDED. 

     

    This issue was solved by using the annotationManager.registerEventListener, instead of registering the event listener directly on the adobeViewer. 

     

    Probably the event .d

    it was solved by using the annotationManager to add the eventlistener for Annotation added. 

    Known Participant
    October 20, 2022

    I was able to find a workaround for this issue. 

     

    First thing this is an itermittent issue. 

     

    code: 'FAIL', message: 'Annotation selector is not valid for given

     

    we get the above error when the bounding box coordibates are incorrect. But the quad points have the right corrdinates. So the fix was to correct the bounding box coordinates based on the quad points. In my scenario I took the xmin, ymin and xmax,ymax from the quad points and updated the bouning box, Then the UpdateAnnotation api  started working perfectly!

     

    Hope this helps


    @Vasavi244971977sns would you mind if I send you an example file of my annotations, and then you can share the correct co-ordinates so we can see your solution? See atatched sample (1).txt