SAP Knowledge Base Article - Public

3037148 - E-Invoice India JSON Upload error for UoM Schema length on GST E-Invoice Portal

Symptom

Error code - SCHEMA ERROR

Error Description- The field Unit must be a string with a minimum length of 3 and a maximum length of 8.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Create Sales order with any product with UoM lenght Less than 3 i.e EA, m, WK. and sales active
  2. Release the sales order and Release the customer demand.
  3. Procress the Delivery proposal.
  4. Post the Goods Issue.
  5. Create the sales invoice with refrences to Invoice request.
  6. Send the invoice for Legal approval.
  7. Download the E-Inoice ( JSON File)
  8. Upload the JSON file on the Govt Portal with valid login.
  9. Receive the Error msg

    Error Description- The field Unit must be a string with a minimum length of 3 and a maximum length of 8.

Cause

This error is due to master data setup issue with your unit of measure as per e-invoicing requirement.

Resolution

Since GST portal expects the UoMs to be minimum of 3 characters.

Kindly adapt all your UoMs which you will be using to send to GST portal to minimum 3 characters via BC activity “Quantities and Units of Measure”.

For example, from “ea” to “nos” or “eac” OR "h" to "hrs" etc. This ‘nos’ or ‘eac’ or 'hrs' are just suggestions, it could be anything that your end user also understands, but with minimum of 3 characters since GST portal needs it.

For affected e-invoices which are already created, you could either

1) change the UoM symbol in file manually and upload in GST portal or

2) you could 'Rollback Legal Approval' and then 'Request Legal Approval' in case you would prefer system to generate file with new UoM symbol value(Re-Login and try this)

Keywords

India GST , KBA , AP-CI-CI-GLO , Cross-Country Extensions , Problem

Product

SAP Business ByDesign all versions