Importing quotations...
User {
  id: 4,
  fullName: 'new stat',
  userName: 'newstat',
  email: 'newstat@gmail.com',
  emailVerified: false,
  phoneNumber: '251978563412',
  role: 4362,
  accountLockedOut: false,
  accessFailedCount: 0,
  disabled: false,
  registrantId: 2,
  tokenExpireAfter: 5184000,
  createdAt: 2023-05-17T11:07:23.908Z,
  updatedAt: 2023-05-17T11:07:23.908Z,
  marketplaceCode: null,
  tempRole: null,
  language: 'en',
  tempRoleEndDate: null,
  supervisorId: null,
  branchCode: null,
  regionCode: 14
}
RegionCode:  14
Items:  [ { UoMCode: 'g', SmUCode: 'g' } ]
Quotation:  {
  itemCode: 101010101,
  questionnaireId: 17,
  marketplaceCode: 2010101,
  quotes: [
    {
      price: 13,
      quantity: 325,
      shopContactName: 'imported',
      shopContactPhone: 'imported'
    },
    {
      price: 13.41,
      quantity: 325,
      shopContactName: 'imported',
      shopContactPhone: 'imported'
    }
  ],
  status: 'BRANCH_APPROVED',
  creationStatus: 'IMPORTED',
  collectorId: 4
}
Error ---  PrismaClientValidationError: 
Invalid `tx.quotation.create()` invocation in
/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/src/Controllers/StatisticianController.ts:1183:33

  1180   QuotationCreationStatus.IMPORTED;
  1181 if (!quotation.collectorId) quotation.collectorId = req.user!.id;
  1182 console.log("Quotation: ", quotation);
→ 1183 return tx.quotation.create({
         data: {
           questionnaireId: 17,
           collectorId: 4,
           itemCode: 101010101,
           marketplaceCode: 2010101,
           quotes: {
             createMany: {
               data: {
                 '0': {
                   price: 13,
                   quantity: 325,
                   shopContactName: 'Imported',
                   shopContactPhone: 'Imported',
                   shopLatitude: 'Imputated',
                   shopLongitude: 'Imputated',
                   measurementUnit: 'g'
                 },
                 '1': {
                   price: 13.41,
                   quantity: 325,
                   shopContactName: 'Imported',
                   shopContactPhone: 'Imported',
                   shopLatitude: 'Imputated',
                   shopLongitude: 'Imputated',
       +           measurementUnit: String,
       ?           id?: Int,
       ?           shopLocation?: String | null,
       ?           updateNotes?: QuoteCreateupdateNotesInput | Json[],
       ?           deleteNotes?: QuoteCreatedeleteNotesInput | Json[],
       ?           updatedAt?: DateTime,
       ?           createdAt?: DateTime
                 }
               }
             }
           }
         },
         select: {
           id: true,
           questionnaireId: true,
           itemCode: true,
           quotes: true
         }
       })

Argument measurementUnit for data.quotes.createMany.data.1.measurementUnit is missing.

Note: Lines with + are required, lines with ? are optional.

    at Document.validate (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:28329:20)
    at serializationFn (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30929:19)
    at runInChildSpan (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:24157:12)
    at PrismaClient._executeRequest (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30936:31)
    at consumer (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30862:23)
    at /home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30867:51
    at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
    at /home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30867:29
    at runInChildSpan (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:24157:12)
    at PrismaClient._request (/home/user/Documents/projects-r/360-dev/ess-backend/ess-backend/node_modules/@prisma/client/runtime/index.js:30864:22) {
  clientVersion: '4.3.1'
} my function throws the above error but as its shown measurement unit are deduced from the item codes and the first quote's measumentUnit are deduced correctly but the second quotes fails