We are trying to run the following query:
SELECT
a.nihrm__BookingContact__c as "BOOKING_CONTACT",
a.Name as "ACCOUNT_NAME",
b.Email as "EMAIL",
b.FirstName as "FIRST_NAME",
b.LastName as "LAST_NAME",
c.FirstName as "BOOKING_OWNER_FIRST_NAME",
c.LastName as "BOOKING_OWNER_LAST_NAME",
FROM nihrm__Booking__c_Salesforce a
JOIN Contact_Salesforce b ON a.Id = b.Id
JOIN User_Salesforce c ON a.Id = c.Id
WHERE
a.nihrm__BookingStatus__c = ‘Definite’ AND
a.nihrm__BookingTypeName__c = ‘Group’ AND
a.nihrm__DepartureDate__c >= dateadd(day,datediff(day,1,GETDATE,0))
a.Id NOT IN (SELECT Id FROM nihrm__Booking__c_Salesforce WHERE Date > dateadd(day,datediff(day,),GETDATE,0))
But are continuously getting a new error every time we are able to solve the current one. The most recent error we keep getting is "Field Name cannot be blank". We have tried ensuring the attributes in the DE that was created for this automation are not nullable and that didn't work so we edited them to nullable and we still got the same error.
Any help would be appreciated!
Thank you.