Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled expression type: #365

Closed
ivanarnhemongithub opened this issue Oct 2, 2023 · 5 comments
Closed

Unhandled expression type: #365

ivanarnhemongithub opened this issue Oct 2, 2023 · 5 comments

Comments

@ivanarnhemongithub
Copy link

My query worked before and now throws this error Unhandled expression type:

@MarkMpn
Copy link
Owner

MarkMpn commented Oct 2, 2023

Can you share the query please?

@ivanarnhemongithub
Copy link
Author

ivanarnhemongithub commented Oct 3, 2023 via email

@MarkMpn
Copy link
Owner

MarkMpn commented Oct 3, 2023

Thanks, unfortunately it looks like GitHub has corrupted the last part of the query, can you please try entering it via the web UI at #365 rather than by email?

@ivanarnhemongithub
Copy link
Author

(DECLARE @week_num varchar(100)
SET @week_num = '2023 - 39'
select per.psa_name as weeknummer, emp.internalemailaddress as medewerker, per.psa_startdate,psa_enddate, gebruiker.psa_istimecardusername
from systemuser as emp
inner join hrm_employee ON emp.systemuserid = hrm_employee.hrm_crmuser
inner join psa_psauser as gebruiker ON emp.systemuserid = gebruiker.psa_employee
inner join psa_bookingperiod as per on per.psa_name = @week_num
where emp.islicensed =1
and gebruiker.psa_istimecardusername ='Ja. Volledig boeken verplicht.'
and per.psa_name = @week_num
and per.psa_legalentity='2c913d44-f6ca-e811-a96f-000d3a2bc5c1'
and (hrm_employee.hrm_contracteffectivedate < per.psa_startdate or hrm_employee.hrm_contracteffectivedate is null)
and (hrm_employee.hrm_contractenddate > per.psa_enddate or hrm_employee.hrm_contractenddate is null)
--and (hrm_employee.hrm_contracttype!='')
and emp.systemuserid not in
(select psa_timecard.psa_employee
from psa_bookingperiod AS periode
inner join psa_timecard ON periode.psa_bookingperiodid = psa_timecard.psa_bookingperiod
where periode.psa_legalentity='2c913d44-f6ca-e811-a96f-000d3a2bc5c1'
and periode.psa_name=@week_num
)
order by emp.internalemailaddress

)

MarkMpn added a commit that referenced this issue Oct 5, 2023
@ivanarnhemongithub
Copy link
Author

correct issue is fixed perfect thenks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants