# Error Code

Error codes

# ERROR #5002 - GL Account delete

Deleting a General Ledger Account,

General Ledger account is used in the custom item cost of sales

<table border="1" id="bkmrk-error%3Aerror-100-%C2%A0err" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.8765%;"></col></colgroup><tbody><tr><td>Error:Error 100 ERROR #5002: ObjectScript error: <span style="background-color: rgb(251, 238, 184);">Stock Code 6849</span> uses this account in the Inventory Item setup as the <span style="background-color: rgb(251, 238, 184);">Custom Item - Cost of Sales account</span> and cannot be deleted.</td></tr></tbody></table>

[![image.png](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2023-10/scaled-1680-/vFCimage.png)](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2023-10/vFCimage.png)

---

Go to the stock item 6849 and change General Ledger before deleting.

[![image.png](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2023-10/scaled-1680-/Iocimage.png)](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2023-10/Iocimage.png)

# ERROR #5034 - Stock Return

<p class="callout warning">ERROR #5034</p>

## <span style="mso-fareast-font-family: 'Times New Roman';">Count has Stock Return items that failed to process.</span>

ERROR #5034: Invalid status code structure ("0Error Occurred : Unable to save transactionline for Stock Correction Journal STKCOR1 SYS MSG : ERROR #5002: ObjectScript error: "\_$c(10)\_"<span style="background-color: rgb(248, 202, 198);">Transactions are not allowed on this account.</span> "\_$c(10)\_"Code: 5-3500"\_$c(10)\_"Name: Cost of Sales Job Costing Stock Adjustment&gt;")

<span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ligatures: standardcontextual; mso-ansi-language: EN-NZ; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;">ERROR #5034: Invalid status code structure ("0Error Occurred : Unable to save transactionline for Stock Correction Journal STKCOR1 SYS MSG : ERROR #5002: ObjectScript error: "\_$c(10)\_"Transactions are not allowed on this account. "\_$c(10)\_"Code: <span style="background-color: rgb(251, 238, 184);">5-3500"\_$c(10)\_"Name: Cost of Sales Job Costing Stock Adjustment</span>&gt;")</span>

<table border="1" id="bkmrk-this-error-indicates" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 99.8765%;"></col></colgroup><tbody><tr><td>This error indicates that the Ledger account does not allow transactions to be posted to it</td></tr></tbody></table>

Correct this by

- Checking the ledger account and change the allow transaction tick on the ledger account
- Or check the GL Ledger links and change the account to another account

# Debtors Saving Item line Error #7207  and #5802

Error message #7207 and 5802

[![image.png](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/scaled-1680-/9gWimage.png)](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/9gWimage.png)

<span lang="EN-NZ" style="mso-ansi-language: EN-NZ; mso-fareast-language: EN-US;">The reason you are getting this error is because the supplier cost was updated from a previous GRVs with rounding corrections.</span>

<span lang="EN-NZ" style="mso-ansi-language: EN-NZ; mso-fareast-language: EN-US;">It is pulling the negative cost through on the line item and giving you this error.</span>

<span lang="EN-NZ" style="mso-ansi-language: EN-NZ; mso-fareast-language: EN-US;"> </span>

<span lang="EN-NZ" style="mso-ansi-language: EN-NZ; mso-fareast-language: EN-US;">You can just change the value to zero and it will accept it to bypass the problem.</span>

<span lang="EN-NZ" style="mso-ansi-language: EN-NZ; mso-fareast-language: EN-US;"> </span>

[![image.png](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/scaled-1680-/lyRimage.png)](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/lyRimage.png)

[![image.png](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/scaled-1680-/bGtimage.png)](https://hugeerp10.co.za/hsofmanual/uploads/images/gallery/2024-01/bGtimage.png)