Step 1: Make sure fields properties allow edit is yes in Data entity level(In Table level Allow edit is No). Change to Yes in entity fields property if Not.
Step 2 : Then Write the skip validation code in data entity method.
public void mapEntityToDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
{
super(_entityCtx, _dataSourceCtx);
this.skipDataSourceValidateField(fieldNum(EntityName,Field),true);
}
public void initializeEntityDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
{
super(_entityCtx, _dataSourceCtx);
this.skipDataSourceValidateField(fieldNum(EntityName,Field),true);
}
Step 3: Remove the entity from all the projects and delete it from the data entity list.
Step 4: Rebuild and Synch your project
You will see it will start working and skipping the mentioned fields while import.