Code is not running completely with action centre

Please check the blow code

When i run it manually it is waiting for approval and i’m Resuming it. When i schedule it it is Running till Creating ticket in Actions and after approval also it is not resuming.

DocumentUnderstanding_ActionCenter.zip (361.0 KB)