Wendy_01
(Wendy)
January 22, 2020, 6:41am
1
Hello,
I am trying to write down some information in database.It is ok when the columns are text format, but when the column type is date/time format, UIpath always give me syntax error notice.I go through one similar post Problem with datatype while updating the database and tried the solution, no luck.
Please suggest a solution. thank you !
AshwinS2
(Ashwin S)
January 22, 2020, 6:45am
2
Hi @Wendy_01
Instead of Execute query can you try passing it into Insert Activity
Thanks
Ashwin S
Ajju
(Ajjayya Hiremath)
January 22, 2020, 6:46am
3
hello @Wendy_01
Can you try to insert “#” before your date variable or date value
like : Var1 = 01/22/2020
“where col1 = #”+ Var1+“#”
Regards
Ajay
Wendy_01
(Wendy)
January 22, 2020, 6:49am
4
What I understand insert activity input shoud be datatable, but my input is not a datatable, so I need to build the datatable first?
Ajju
(Ajjayya Hiremath)
January 22, 2020, 6:55am
6
remove tostring, just pass the date itself . might work
Wendy_01
(Wendy)
January 22, 2020, 6:56am
7
tried, uipath not allow date format variable to string in SQL input
Wendy_01
(Wendy)
January 22, 2020, 7:03am
8
@ tamshi
Can you show your SQL input ?
Wendy_01
(Wendy)
January 22, 2020, 9:33am
9
it works! Thank you @AshwinS2
and I also update it with Execute Query activity.
system
(system)
Closed
January 25, 2020, 9:38am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.