Help save net neutrality! Learn more.
Close

#247 UserTaskReport workflow failes with a value error

Workflow
open
2014-07-08
2014-07-08
No

The user task report workflow fails with an unexpected type passed to the UTCDateTime wrapper,...?

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/logic/workflow/services/process.py", line 825, in work
action_name, description = self.run_stanza(action_uuid)
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/logic/workflow/services/process.py", line 398, in run_stanza
parameters=stanza.get('params'),
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/core/context.py", line 566, in run_command
command.run()
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/core/logic/action.py", line 294, in run
self.do_action()
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/logic/workflow/actions/gw/user_task_report.py", line 314, in do_action
self._ctx, RANGE_START, RANGE_END,
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/logic/workflow/actions/gw/user_task_report.py", line 128, in _fetch_delegated_task_action_statistics
for action in query.all():
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 1947, in all
return list(self)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2057, in iter
return self._execute_and_instances(context)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 2072, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1405, in execute
params)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1538, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1605, in _execute_context
None, None)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1601, in _execute_context
context = constructor(dialect, self, conn, *args)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 465, in _init_compiled
processorskey
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.4-py2.6-linux-x86_64.egg/sqlalchemy/types.py", line 587, in process
return process_param(value, dialect)
File "/usr/lib/python2.6/site-packages/OpenGroupware-0.1.49rc87-py2.6.egg/coils/foundation/alchemy/utcdatetime.py", line 62, in process_bind_param
raise ValueError('Unexpected type provided to UTCDateTime')
StatementError: Unexpected type provided to UTCDateTime (original cause: ValueError: Unexpected type provided to UTCDateTime) 'SELECT job_history.job_history_id AS job_history_job_history_id, job_history.job_id AS job_history_job_id, job_history.job_status AS job_history_job_status, job_history.actor_id AS job_history_actor_id, job_history.action AS job_history_action, job_history.action_date AS job_history_action_date \nFROM job_history JOIN job ON job.job_id = job_history.job_id \nWHERE job_history.actor_id != %(actor_id_1)s AND job_history.action_date > %(action_date_1)s AND job_history.action_date < %(action_date_2)s AND job.owner_id = %(owner_id_1)s' [immutabledict({}

Discussion


Log in to post a comment.