SAP Knowledge Base Article - Public

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


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.


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.


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


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.

  1. Go to the Business Configuration work center.
  2. Select the Implementation Projects view.
  3. Select your implementation project and click on the Open Activity List button.
  4. Navigate to the Fine Tune step.
  5. Open the fine tuning activity Quantities and Units of Measure.
  6. Select the respective hyperlink for the Unit e.g. for EA select Create and Maintain Trading Units.
  7. Change the UoM Symbol of the respective Unit of measure e.g. ea to nos or eac.
  8. Save your changes.

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)


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


SAP Business ByDesign all versions