# Expressions.getDate, Expression.setTime In Logger

**URL:** <https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818>\
**Category:** Ignition\
**Created:** [April 24, 2023, 1:14pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818 "2023-04-24T13:14:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 1:14pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/1 "2023-04-24T13:14:54Z")

</div>

Wondering if anyone has seen a repetitive warning in their logger for the following:

```auto
setTime	24Apr2023 09:10:08	setTime function expected a 'date' first argument, but got null
getDate	24Apr2023 09:10:08	getDate function expected a 'int' first argument, but got null

```

I cant see any detail of where this function is being called and nothing comes up in any searches of tag providers. Any suggestions for how to narrow down what might be causing this? They happen together 4 times in a row every 1 second.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2023, 1:43pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/2 "2023-04-24T13:43:01Z")

</div>

Those aren't expression functions themselves, but underlying method calls in an implementation. Is there an associated traceback with those?

Consider using the tag report tool to look for bad quality expression tags.

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/3 "2023-04-24T14:32:39Z")

</div>

Thanks for getting back to me. I am not sure where to find the traceback. Usually there is some more context in the message I can figure out.

As for the providers, I went through all of the reports and the only "bad" tags I have left are an MQTT reference that could not be found, some disabled OPC tags, and 2 tags that route through kepserver to a device that currently is not communicating.

I temporarily replaced the MQTT reference so that it disappeared from the report and the warnings kept showing in the logs.

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 2:43pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/4 "2023-04-24T14:43:31Z")

</div>

One second I may be on to something. I think it is in a transaction group. Will update.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2023, 2:44pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/5 "2023-04-24T14:44:28Z")

</div>

I was about to say:

"Maybe they aren't coming from tags?"

😁

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 2:50pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/6 "2023-04-24T14:50:22Z")

</div>

Well. Thought for sure that I had it since one of the transaction groups had a broken connection to a PLC shortcut, but disabled it and the warning persist.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2023, 2:54pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/7 "2023-04-24T14:54:28Z")

</div>

Could still be "not tags". Expression bindings somewhere in Perspective?

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 2:56pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/8 "2023-04-24T14:56:47Z")

</div>

I painfully looked for setTime and getDate in all projects and came up empty, but as you mentioned with the underlying method calls maybe I need to look for something else in the keywords? I searched all scripts as well for those keywords.

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 2:59pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/9 "2023-04-24T14:59:19Z")

</div>

Terminated all perspective sessions and the problem still persists.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 24, 2023, 3:05pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/10 "2023-04-24T15:05:24Z")

</div>

I'm out of ideas. Time to call support?

---

<div class="post-metadata">

**Author:** ![bfearnow](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfearnow/32/3337_2.png) [@bfearnow](https://forum.inductiveautomation.com/u/bfearnow)\
**Post date:** [April 24, 2023, 3:17pm UTC](https://forum.inductiveautomation.com/t/expressions-getdate-expression-settime-in-logger/72818/11 "2023-04-24T15:17:15Z")

</div>

Yes. I suppose so. Thanks for your assistance.
