Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

SQL Error: Lock wait timeout exceeded; try restarting transaction (1 Comment)

$
0
0

Topic by Tirumala Nekkanti

Content

Hi,

 

We are facing intermittent issue while syncing the contact information from external system via custom script (Connect PHP API). We are getting below error in our log, same request if retried goes without any error.

 

Please suggest/help in this case, support is unable to replicate the issue and no much help is provided as of now.

------------------------------ERROR DETAIL LOG----------------------------------------

<error>
<piid>8062</piid>
<app>0</app>
<common_user_id></common_user_id>
<type>1</type>
<count>00000001</count>
<first_occur>1490681698</first_occur>
<last_occur>1490681698</last_occur>
<msg>
DB API Error
     SQL Fcn: execute() [SQLStatement.cpp: 805] 
   Called By: iapiu_pair_update() [iapi_util.c: 270]
    API Fcn.: _sql_execute() returned 1205
   SQL Error: Lock wait timeout exceeded; try restarting transaction
       Error: Error running query
       Errno: 0
   SQL Stmt.: UPDATE contacts SET   c$dc_call_up_index = 27, updated = &#39;2017-03-28 17:12:57&#39; WHERE (c_id = 5035593)  
Customizable
        Code: external event
-- Command Line Args ---------------------------------
../../bin/spm_scheduler -i services -r 1053311280 -s 1 -w 1 
-- PHP Call Stack ------------------------------------
#0  in save at Org2ContactsFieldSync\Org2ContactsFieldSync:2
#1  in apply at Org2ContactsFieldSync\Org2ContactsFieldSync:1
-- Call Stack ----------------------------------------
#0  in SQLStatement::executeBatch at SQLStatement.cpp:839
#1  in iapiu_pair_update at iapi_util.c:255
#2  in _contact_update at iapi_contact.c:1086
#3  in iapi_function_map_call_handler at pair/api_functions.c:474
#4  in api_fcn_call at pair/pair_cvt_input.c:1315
#5  in papi_fcn_call at pair/pair_cvt_input.c:1385
#6  in mapi_fcn_call_without_init at ConnectAPI.cpp:4120
#7  in mapi_fcn_call at ConnectAPI.cpp:4078
#8  in ObjectStore::add at ObjectStore.cpp:511
#9  in RNONamedID::save at RNONamedID.cpp:272
#10 in RNObject::save at v1_2/RNObject_v1_2.cpp:417
#11 in Contact::save at v1_2/Contact_ChannelUsernames_v1_2.cpp:415
#12 in spm_php_thread_worker_item at spm_php.cpp:579
#13 in spm_objproc_PHP_invoke at spm_php.cpp:2075
#14 in spm_objproc_invoke at spm.cpp:2257
#15 in SPMPrimitives::INVOKE_OBJECT_PROCEDURE at spm_element.cpp:2569
#16 in SPMScheduler::element_exec at SPMSchedulerRun.cpp:60
#17 in SPMScheduler::run at SPMSchedulerRun.cpp:378
</msg>
</error>

------------------------------ERROR DETAIL LOG----------------------------------------

 

Thanks,
Rohit Samaiya

 

 

Version

service cloud november

Viewing all articles
Browse latest Browse all 2504

Trending Articles