# WorkbookEventMap.fileOperationFailed Property

> WorkbookEventMap.fileOperationFailed property in the Node.js TypeScript API, with its type FileOperationFailedEvent and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > WorkbookEventMap > WorkbookEventMap.fileOperationFailed Property
- **392 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/fileoperationfailed-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/fileoperationfailed-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/fileoperationfailed-property/llms-full.txt

---

The fileOperationFailed value of WorkbookEventMap.

Owner: [WorkbookEventMap](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```typescript
fileOperationFailed: FileOperationFailedEvent
```

Read through the owning object: `owner.fileOperationFailed`. Follow the declared mutability and owning object lifetime.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function observeFileOperationFailed(control: ServerSheetControl) {
    const book = control.workbook;
    return book.events.on('fileOperationFailed', (event) => {
        console.log(event);
    });
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [WorkbookEventMap Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/llms-full.txt)
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt)
- [FileOperationFailedEvent Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/fileoperationfailedevent/llms-full.txt)

---

## Nearby

- **Previous:** [WorkbookEventMap.exportProgress Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/exportprogress-property/llms-full.txt)
- **Next:** [WorkbookEventMap.filtered Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/workbookeventmap/filtered-property/llms-full.txt)
