> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/hoa-don-dien-t/tong-hop-loi-viettel.md).

# TỔNG HỢP LỖI VIETTEL

## 1. *Ký phát hành* báo lỗi "hashString null"

* Đăng nhập web viettel. Kiểm tra hoá đơn chờ ký. Xoá hoá đơn chờ ký&#x20;

  <figure><img src="/files/5FONY2GlbjG7pmXre5ZT" alt=""><figcaption><p>Tìm kiếm hoá đơn nháp trên viettel để xoá</p></figcaption></figure>
* Đăng nhập Dtech. Ký phát hành lại hoá đơn

## 2. Bấm nút "Kiểm tra" phần mềm báo không tồn tại hoá đơn

* Kiểm tra log đẩy hoá đơn thì có phát sinh đẩy từ dtech lên viettel
* Bấm nút "Kiểm tra" thì báo không tồn tại hoá đơn ( nghĩa là không liên kết)
* Lý do: Do đặc thù viettel, nếu sửa hoá đơn trên web viettel thì viettel sẽ xoá hoá đơn cũ và tạo lại hoá đơn mới. Do vậy, sẽ bị mất key liên kết giữa 2 phần mềm ở trên tờ hoá đơn cũ.&#x20;
* Trường hợp này: thì người dùng chấp nhận mất liên kết và bổ sung lại thông tin số hoá đơn cho phiếu kế toán và không xuất hoá đơn nữa
* chứng từ bán hàng ở bên tab hoá đơn điện tử đang ở trạng thái chờ ký: xoá bỏ

## 3. Ký phát hành báo lỗi cks "code 400 signature not compare - thông tin usb token không đúng với cks đăng ký"

* Nguyên tắc cấu hình cks token: Pm dtech sẽ lưu dải seri của token vào cấu hình
* khi thay đổi cks hoặc gia hạn cks thì cần cấu hình lưu thông tin cks mới vào dtech
* Vào tab Phát hành hoá đơn/ cấu hình/ bấm nút Chọn cks và lưu lại

## 4. Ký phát hành báo lỗi "{"code":400,"message":"BAD\_REQUEST\_EXISTS\_OTHER\_USB\_SIGN\_PROCESSING","data":"BAD\_REQUEST\_EXISTS\_OTHER\_USB\_SIGN\_PROCESSING","errorCode":null}"

* do có hoá đơn nháp trên viettel bị lỗi
* lên web viettel và xoá hoá đơn nháp&#x20;

  <figure><img src="/files/YvNwaRBPXaY5vAz7FxIi" alt=""><figcaption><p>Xoá hoá đơn nháp gây lỗi khi ký hoá đơn viettel</p></figcaption></figure>

## 5. view hoặc đẩy báo lối "... lỗi định dạng truyền dữ liệu vào..."

* Do tên hàng hoá có ký tự xuống dòng (dạng Alt +enter) dẫn tới json bị lỗi
* Link web: <https://jsonlint.com/>
* Vào phần hành phát hành hoá đơn/ nút cấu hình/ log truyền đẩy/ copy dòng "cấu trúc đẩy hoá đơn" / paste nội dung lên web để check lỗi ở dòng mặt hàng nào
* Để kiểm tra thì có thể làm bằng cách: Copy chuỗi đẩy lên và paste vào link web kiểm tra json để nhìn báo lỗi ở nội dung nào&#x20;

  <figure><img src="/files/U0Z61AktEfEfPImlbDKM" alt=""><figcaption><p>Thông báo lỗi</p></figcaption></figure>

## 6. Tạo hoá đơn báo lỗi: {"code":400,"message":"SIGNATURE\_NOT\_FOUND","data":" Không tìm thấy chứng thư số","errorCode":null}

Vào cấu hình chọn lại chỉ tạo hoá đơn chờ ký thôi.

<figure><img src="/files/sG9J2r6rIrv6gmffV6HA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kythuat.dtechvn.com/hoa-don-dien-t/tong-hop-loi-viettel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
