# No more exception from batchPlay select operation

**URL:** <https://forums.creativeclouddeveloper.com/t/no-more-exception-from-batchplay-select-operation/3572>\
**Category:** UXP Plugin API\
**Created:** [August 31, 2021, 6:36pm UTC](https://forums.creativeclouddeveloper.com/t/no-more-exception-from-batchplay-select-operation/3572 "2021-08-31T18:36:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AAverin](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/aaverin/32/1368_2.png) [@AAverin](https://forums.creativeclouddeveloper.com/u/AAverin)\
**Post date:** [August 31, 2021, 6:36pm UTC](https://forums.creativeclouddeveloper.com/t/no-more-exception-from-batchplay-select-operation/3572/1 "2021-08-31T18:36:24Z")

</div>

Previously, trying to select a missing layer or channel via batchPlay was resulting in exception. It’s not anymore.  
Does anybody know what is the right way now to know that batchPlay actually failed? I don’t see anything in the resulting descriptor.  
I expect following code to fail with exception

```auto
await require("photoshop").action.batchPlay([
        {
          _obj: "select",
          _target: [
            {
              _ref: "channel",
              _name: "Non Existing Channel",
            },
          ],
        }
      ], {synchronousExecution: false,
        modalBehavior: "fail"})

```

---

<div class="post-metadata">

**Author:** ![AAverin](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/aaverin/32/1368_2.png) [@AAverin](https://forums.creativeclouddeveloper.com/u/AAverin)\
**Post date:** [August 31, 2021, 6:41pm UTC](https://forums.creativeclouddeveloper.com/t/no-more-exception-from-batchplay-select-operation/3572/2 "2021-08-31T18:41:28Z")

</div>

Both selecting existing and non-existing channel results in an empty descriptor for some reason.
