I am trying to execute a sql query with Python code and am getting error month muct be in 1..12
I have surfed the net but couldn't find anything related to this issue.
sql = '''
INSERT INTO {Database}.{Schema}.Instance (
Id
, DateTime
, Period
, StatusId
) VALUES (
?,
CURRENT_TIMESTAMP,
?,
?
);
'''
self['_repository'].execute_query(sql, str(self.id), period, Instance.INITIALISED)
When I am executing the code it gives me an error "month must be in 1..12"