How to Fix GSTR-1 Table 12 & Table 7 "txval Cannot Be Negative" Error
If you sell on Meesho, Amazon, Flipkart, or Myntra and had a month where customer returns exceeded forward sales, your JSON upload to the GST Common Portal likely failed with this exact error:
Field: 'txval' / 'camt' / 'samt'
Message: Taxable value cannot be negative in Table 7 (B2CS) / Table 12 (HSN Summary).
Why Does the GST Portal Reject Negative Values?
The GST portal's backend software was originally designed for brick-and-mortar stores where customer returns rarely exceed 2%. However, Indian e-commerce sellers regularly experience return rates between 20% to 35% (especially during festival seasons or post-sale periods like Diwali or Holi).
When you mathematically subtract ₹12,000 in returns from ₹8,000 in forward sales for Maharashtra, your true net taxable value is −₹4,000. While your accounting is 100% correct, the GSTN v5.0 offline schema rejects any negative integer with a validation block.
The Real-World Example
| Transaction Item | Gross Value | Portal Schema Rule |
|---|---|---|
| Forward Sales (Maharashtra POS 27) | ₹8,000 | Valid |
| Prior Month Returns Credited | −₹12,000 | Valid Credit Note |
| Net Mathematical Value | −₹4,000 | ❌ REJECTED BY PORTAL |
| GSTWali Clamped Value | ₹0 | ✅ ACCEPTED (Credit Carries Over) |
✅ The Government-Approved Solution: Zero Clamping
In accordance with GST Council advisory guidelines, negative supply buckets are clamped to ₹0 in GSTR-1. The unutilized return credit (₹4,000 in this example) is carried forward to your next filing period to reduce subsequent forward sales. You never lose your tax deduction, and your JSON upload succeeds instantly with 0 errors.
How GSTWali Automates This Fix in 2 Minutes
Instead of manually recalculating dozens of state lines and HSN codes in Excel, GSTWali’s in-browser WebAssembly engine:
- Scans all marketplace returns and credit notes automatically.
- Clamps negative Table 7 states and Table 12 HSN rows to ₹0.
- Outputs 100% GSTN v5.0 compliant JSON ready for direct upload on
services.gst.gov.in.