Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WF que incluye subcondiciones de condiciones
#2
Hola. He probado y no se si funciona. Me explico. Si que realiza la tarea, tal como preveia, pero cuando guardo el registro (le digo que se ejecute siempre que se guarde) me sale el siguiente error:

Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68194''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68189''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68194''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68189''Accounts'

Fatal error: Uncaught exception 'WebServiceException' with message 'Error de base de datos al procesar la operación' in /var/www/html/cB_QWQWQWQW/include/Webservices/VtigerModuleOperation.php:63 Stack trace: #0 /var/www/html/cB_QWQWQWQW/include/Webservices/Retrieve.php(44): VtigerModuleOperation->retrieve('7x83093') #1 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTEntityCache.inc(17): vtws_retrieve('7x83093', Object(Users)) #2 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTEntityCache.inc(97): VTWorkflowEntity->__construct(Object(Users), '7x83093') #3 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTJsonCondition.inc(20): VTEntityCache->forId('7x83093') #4 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTTaskManager.inc(187): VTJsonCondition->evaluate('[{"fieldname":"...', Object(VTEntityCache), '7x83093') #5 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTWorkflowManager.inc(441): VTTask->evaluate(Object(VTEntityCache), '7x83093') #6 /var/www/html/cB_QWQWQWQW in /var/www/html/cB_QWQWQWQW/include/Webservices/VtigerModuleOperation.php on line 63

Y no se por qué.
Alguna sugerencia. Gracias

(11-04-2016, 10:56 AM)julioval Wrote: Hola. He probado y no se si funciona. Me explico. Si que realiza la tarea, tal como preveia, pero cuando guardo el registro (le digo que se ejecute siempre que se guarde) me sale el siguiente error:

Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68194''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68189''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68194''Accounts'
Input array does not match ?: insert into vtiger_seproductsrel values(crmid, productid, setype)'71326''68189''Accounts'

Fatal error: Uncaught exception 'WebServiceException' with message 'Error de base de datos al procesar la operación' in /var/www/html/cB_QWQWQWQW/include/Webservices/VtigerModuleOperation.php:63 Stack trace: #0 /var/www/html/cB_QWQWQWQW/include/Webservices/Retrieve.php(44): VtigerModuleOperation->retrieve('7x83093') #1 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTEntityCache.inc(17): vtws_retrieve('7x83093', Object(Users)) #2 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTEntityCache.inc(97): VTWorkflowEntity->__construct(Object(Users), '7x83093') #3 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTJsonCondition.inc(20): VTEntityCache->forId('7x83093') #4 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTTaskManager.inc(187): VTJsonCondition->evaluate('[{"fieldname":"...', Object(VTEntityCache), '7x83093') #5 /var/www/html/cB_QWQWQWQW/modules/com_vtiger_workflow/VTWorkflowManager.inc(441): VTTask->evaluate(Object(VTEntityCache), '7x83093') #6 /var/www/html/cB_QWQWQWQW in /var/www/html/cB_QWQWQWQW/include/Webservices/VtigerModuleOperation.php on line 63

Y no se por qué.
Alguna sugerencia. Gracias

Hola.
Creo que ya lo tengo resuelto, aunque no se por qué.
El WF original se debe ejecutar solo cuando se crea, lo que ocurre es que yo lo he puesto en cada vez que se modifica la entidad, porque ya existía el registro.
Los módulos afectados son el de facturas y el de cobropagos. Al editar un cobropago y guardarlo me daba ese error.
Solución, he vuelto a poner que se ejecuta solo al crear y puedo editarlo y guardarlo sin problema.
Si alguien me sabe decir por qué, mejor.
Saludos.
Reply


Messages In This Thread
RE: WF que incluye subcondiciones de condiciones - julioval - 11-04-2016, 10:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)