Cannot create index parallel arrays

We have a requirement to restrict unique data to be inserted into collection. Unique data will be identified based on the combination of few attributes values. We want to go by unique index so that we can get rid of extra DB calls.

Unique Data Combination Attributes are as below:

  1. Name - String
  2. ChannelName - String
  3. Customer.Value - Array[Object]
  4. Language.Value - Array[Object]

When we try to create this in mongo, facing error ‘Cannot create index parallel arrays’, suggestions provided are to change the data type of the attributes but we cannot change the datatype at this point of time as this in Production.

Any quicker solution will be appreciated, Thanks