⚠️ Portal Schema Solution

How to Fix GSTR-1 Table 12 & Table 7 "txval Cannot Be Negative" Error

Published August 2026 · By GSTWali Tax Engineering · 3 Min Read

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:

Error Code: GSTN_ERR_SCHEMA_VALIDATION
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:

Generate Error-Free GSTR-1 JSON

Drop your Meesho, Amazon, or Flipkart spreadsheet and get a portal-ready JSON file in 2 minutes.

Launch Free GSTR-1 Generator →