The datetime picker is just a date picker on the screen and exists the entire time. This is in retool mobile. When I hover over the {{dateTimePicker1.value}} it even shows the correct value.
Can you expand the errors? Looks like the errors in and in the punchInout and Au...? queries, but it could be that they are referencing a property or something that isn't set yet. Could try dateTimePicker1?.value and see if that helps.
Thanks for posting! Definitely a bit convoluted to track down. Can you share one of those SQL query details? Looks like maybe there is a lot of referencing other queries? Could be some kind of race condition where they are all running at once and looking to each other for data.
Are you on Self Hosted, or is that a custom component or something? I can't find any Component type called "DatePicker". I've tried all the date components in Cloud Retool, and it seems to me you're using what is (at least currently) called a "Date Time" component.
It looks like your component in its state, but with far more props.