# Sometime function is not executing even after call with proper parameter

**URL:** <https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [May 28, 2020, 1:56pm UTC](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38 "2020-05-28T13:56:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![vivek.sonawane](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@vivek.sonawane](https://pdfjs.community/u/vivek.sonawane)\
**Post date:** [May 29, 2020, 9:46am UTC](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38/3 "2020-05-29T09:46:07Z")

</div>

Hi Logan,

1. When i delete any annotation(s) from a page then i am not reloading that page at all . But sometimes annotations not get deleted.
2. When i import annotation(s) then there are 2 cases:
  1. annotation(s) imported with reload of document i.e new document.
  2. annotation(s) imported without reloading the document.  
In both cases sometime viewer doesn’t load annotations even if i call function with proper parameter.  
Please note that , I have used “importAnnotCommand()” and “deleteAnnotation()” methods to import and delete annotations respectively.  
is there any other way to do import and delete annotations?

Thank you

---

_[View the full topic](https://pdfjs.community/t/sometime-function-is-not-executing-even-after-call-with-proper-parameter/38)._
