Does anyone know how to deal with this error?
cannot convert from \'System.Guid?\' to \'System.Guid\'
First intialize the guid variable.
Guid yourGuid= Guid.NewGuid()
then set value in that which you want for eg:
Guid defaultId = Guid.NewGuid(); if (customerRow.GuardianState.Length > 2) { Guid StateId = record.StateId ?? defaultId;}