I tried to create a Cube CDS view however i facing error "Key must be contiguous and start at the first position". Please refer attached screenshot. Can you help me to fix it. 
 đź“·
this seems to be all right. Can you try defining the keys in order of the association sequence they are defined? Sales first, then product anf lastly BPA