{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Khối ngoại lệ"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"khối-ngoại-lệ","__idx":0},"children":["Khối ngoại lệ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Loại nút ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exceptionBlock"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"chức-năng","__idx":1},"children":["Chức năng"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chạy các bước gắn với chính sách xử lý lỗi của nút cha."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cấu-hình-trong-ứng-dụng-máy-tính","__idx":2},"children":["Cấu hình trong ứng dụng máy tính"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/exception-block-en.b122acdab2f13976f87aaec78795b75a773e562f867f0a0891771faad302f79d.0538f3a9.webp","alt":"Nhánh thành công và nhánh thất bại trên khung vẽ"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/exception-block-settings-en.b727f2d1f6296b90dd710198048455becbf554daa9cea20f43fd622cf4432f38.0538f3a9.webp","alt":"Cài đặt xử lý ngoại lệ trên nút cha"},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ảnh chụp từ giao diện tiếng Anh của MoreLogin Desktop V2.73.101."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-vào","__idx":3},"children":["Đầu vào"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Đường dẫn được tính tương đối so với toàn bộ nút."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Trường"},"children":["Trường"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kiểu hoặc giá trị"},"children":["Kiểu hoặc giá trị"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Bắt buộc theo schema"},"children":["Bắt buộc theo schema"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Giá trị mặc định khi thực thi"},"children":["Giá trị mặc định khi thực thi"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mô tả và giới hạn"},"children":["Mô tả và giới hạn"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Có"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["minLength = 1"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["maxLength = 128"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["meta"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON hiển thị tùy chọn, không trong suốt (opaque). Các khóa lồng nhau không xác định được giữ nguyên; không có ngữ nghĩa khi chạy. Bỏ qua trường này khi thay thế sẽ xóa nó; các nút không bị động đến vẫn giữ trường này."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"exceptionBlock\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Có"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.title"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.description"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.inputs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.outputs"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Không"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blocks"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array<",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WorkflowNode"]},">"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Có"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"yêu-cầu-theo-chế-độ-và-giới-hạn","__idx":4},"children":["Yêu cầu theo chế độ và giới hạn"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nút này chỉ thuộc về một nút được đặt thành \"Chạy nhánh xử lý ngoại lệ\" (data.exception.mode=branchHandle). Nút đó có đúng hai khối ngoại lệ: khối thứ nhất là nhánh thành công và khối thứ hai là nhánh thất bại. Nếu cuối cùng nút cha thành công, chỉ nhánh thành công chạy; nếu cuối cùng nút cha thất bại, chỉ nhánh thất bại chạy. Sau đó, việc thực thi tiếp tục với các nút phía sau."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Đường dẫn trường của nút cấu trúc được tính tương đối so với toàn bộ nút. Với end, defaults trỏ đến data.inputsValues. Để biết các chi tiết khác, xem workflow.md."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Mã lỗi xác thực: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RPA_STRUCTURE_INVALID"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"đầu-ra","__idx":5},"children":["Đầu ra"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Không có đầu ra nghiệp vụ riêng."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ví-dụ-json","__idx":6},"children":["Ví dụ JSON"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Khối ngoại lệ thuộc về một nút có ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.exception.mode"]}," là ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["branchHandle"]},". Khối thứ nhất là nhánh thành công và khối thứ hai là nhánh thất bại."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"open_shop\",\n  \"type\": \"browser_newPage\",\n  \"data\": {\n    \"title\": \"Open the shop in a new tab\",\n    \"browserAction\": \"newPage\",\n    \"browserUi\": {\n      \"inputs\": {\n        \"openMode\": \"url\",\n        \"url\": \"https://example.com/shop\"\n      },\n      \"exception\": {\n        \"policy\": \"handle\",\n        \"retry\": true,\n        \"retryTimes\": 2,\n        \"retryInterval\": 2,\n        \"screenshot\": true\n      }\n    },\n    \"exception\": {\n      \"mode\": \"branchHandle\"\n    }\n  },\n  \"blocks\": [\n    {\n      \"id\": \"open_ok\",\n      \"type\": \"exceptionBlock\",\n      \"data\": {\n        \"title\": \"Shop opened\"\n      },\n      \"blocks\": []\n    },\n    {\n      \"id\": \"open_failed\",\n      \"type\": \"exceptionBlock\",\n      \"data\": {\n        \"title\": \"Shop failed to open\"\n      },\n      \"blocks\": [\n        {\n          \"id\": \"wait_before_next\",\n          \"type\": \"browser_waitTime\",\n          \"data\": {\n            \"title\": \"Wait before the next step\",\n            \"browserAction\": \"waitTime\",\n            \"browserUi\": {\n              \"inputs\": {\n                \"timeoutType\": \"fixed\",\n                \"timeout\": 1000\n              },\n              \"exception\": {\n                \"timeout\": 30000,\n                \"policy\": \"interrupt\"\n              }\n            }\n          }\n        }\n      ]\n    }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/vi/browser-rpa/nodes"},"children":["Quay lại danh mục nút"]}]}]},"headings":[{"value":"Khối ngoại lệ","id":"khối-ngoại-lệ","depth":1},{"value":"Chức năng","id":"chức-năng","depth":2},{"value":"Cấu hình trong ứng dụng máy tính","id":"cấu-hình-trong-ứng-dụng-máy-tính","depth":2},{"value":"Đầu vào","id":"đầu-vào","depth":2},{"value":"Yêu cầu theo chế độ và giới hạn","id":"yêu-cầu-theo-chế-độ-và-giới-hạn","depth":2},{"value":"Đầu ra","id":"đầu-ra","depth":2},{"value":"Ví dụ JSON","id":"ví-dụ-json","depth":2}],"frontmatter":{"seo":{"title":"Khối ngoại lệ"}},"lastModified":"2026-11-20T14:40:39.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/browser-rpa/nodes/structure/exception-block","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}