I have made my own data entity for EmploymentPerCompany as the one that exists have a preconfigured “Key” that does not work for me and it is my understanding that it is then best practice to make you own.
I have added all of the same relationsships and fields to the dataentity but one of the fields have given me a lot of problems as it wont build.
The field is “ValidTo” that I have taken from the Data Source HcmEmploymentDetail.
When building I get the following error:
I have also added “ValidFrom” which builds fine.
I have tried the following:
- I have checked that everything is configured as on the original HcmEmploymentPerCompanyEntity à HcmEmploymentDetail.
- The fields ValidFrom and ValidTo has the exact same properties set.
- I have rebuilt the models
- I have updated the database.
- I have even deleted the “ValidTo” and “ValidFrom” fields from my entity but then I get even more error on build: