# 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FbRtJ5BBCKVn3epCdIwbU%2FGenerate%20GSTR%201.png?alt=media&#x26;token=6de64e35-8fbe-44e2-b0c9-6242a4100efa" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F63Q0ofDVitNANfVNa6m6%2FGSTR%201.png?alt=media&#x26;token=8e28b60d-6434-4680-b8a7-15f4658fed16" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FxBkfmPRCy2ZyvxXXTg2W%2FError%20Message.png?alt=media&#x26;token=ad7e9ed4-feeb-42d9-8585-e17911a9456e" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FHt7t1pUxJVq3S1ouBr7i%2FError%20in%20Excel.png?alt=media&#x26;token=38be4a2c-1cf6-4605-b5b1-86366170959e" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FQHO5TURGKfOsdG7xuVWb%2FEdit%20HSN%20Code.png?alt=media&#x26;token=d74e121a-63cd-47c6-bfee-0585857ca83f" 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="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FR9miHXjDmkRRBBKjQpHi%2FFile%20Uploaded.png?alt=media&#x26;token=bf09f689-26c9-4699-b748-28ff250e9b2a" 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.
