> For the complete documentation index, see [llms.txt](https://kb.logicerp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/gst/invalid-hsn-codes-error-in-gst-returns.md).

# Invalid HSN Codes Error in GST Returns

**YouTube:** [How to Correct Invalid HSN Codes While Creating GST Returns?](https://www.youtube.com/watch?v=If6nkAGsbeg)

## How to Correct Invalid HSN Code While Creating GST Returns?

In this tutorial, we will learn how to **identify and correct invalid HSN codes** while generating **GST Returns** in **Logic ERP**.

***

#### **Access the GST Return Module**

* Navigate to the **GST Returns** module.
* Select **GSTR-1** as the return type.
* Choose the **relevant time period** for which you want to generate the return.
* Click the **Generate** button to proceed.

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

***

#### **Export Data to Excel**

* You can either:
  * **Export** the data to an **Excel file** using the **Upload** button, or
  * **Generate a JSON file** for direct portal upload.
* For this process, select **Export to Excel** using the **Upload** button.
* Once exported, the data will be successfully saved as an Excel file.

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

***

#### **Upload Excel File to GST Offline Tool**

* Open the **GST Offline Tool**.
* Click **Import Excel** and choose the file you just exported.
* Enter the required details and confirm by clicking **Yes**.
* A **warning message** may appear indicating **invalid HSN code entries** (for example, in **Row 6 and 7**).

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

***

#### **Verify Invalid HSN Codes**

* To check the error, open the **Excel file**.
* Go to the **HSN B2B** sheet.
* Locate the **incorrect HSN codes** mentioned in the warning (e.g., in rows 6 and 7).

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

***

#### **Correct HSN Codes in Logic ERP**

* Open the Setup\Setup Items and select **"Setup Harmonious Codes/Descriptions"** module in Logic ERP.
* Use the **Find Filter** to locate the invalid HSN codes.
* Once identified, update them with the **correct HSN codes** and related details.

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

* **Save** the changes.

***

#### **Re-Export and Upload the Corrected Data**

* Return to the **GST Returns** module.
* Re-export the updated data into a new **Excel file**.
* Open the **GST Offline Tool** again and **re-import** this corrected file.
* The file will upload successfully, and a **summary** of the uploaded data will be displayed.

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

***

#### **Generate Final GST Return File**

* After verification, click on the **Generate File** button in the GST Offline Tool.
* Your return data is now ready for upload to the **GST Portal**.

***

#### **Final Outcome**

You have now successfully:

* Identified and corrected invalid HSN codes.
* Re-exported and uploaded accurate data.
* Generated a clean, validated **GSTR-1 return** ready for submission.


---

# 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://kb.logicerp.com/logic-erp-installation-configuration-and-troubleshooting-solutions/faqs/gst/invalid-hsn-codes-error-in-gst-returns.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.
