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

Cannot save/update, DB API Error only on certain records. (4 Comments)

$
0
0

Topic by Adam

Content

 

I have a very simple script (see code block), however, when executed it yields the following error:

Fatal error:  Uncaught exception 'RightNow\Connect\v1_2\ConnectAPIErrorFatal' with message 'Cannot save/update: Contact(ID=16748): 
DB API Error
' in /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(174) : eval()'d code:11
Stack trace:
#0 /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(174) : eval()'d code(11): RightNow\Connect\v1_2\RNObject->save()
#1 /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(174): eval()
#2 /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(121): Page->_evalCodeAndCaptureOutput('<???use RightNo...', false)
#3 /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(29): Page->_renderNonProduction()
#4 [internal function]: Page->render('test')
#5 /cgi-bin/interface.cfg/scripts/euf/CodeIgniter_1.5.4/system/codeigniter/CodeIgniter.php(69): call_user_func_array(Array, Array)
#6 /cgi-bin/interface.cfg/scripts/euf/index.php(153): require_once('/cgi-bin/interf...')
#7 /cgi-bin/ in /cgi-bin/interface.cfg/scripts/euf/application/rightnow/controllers/page.php(174) : eval()'d code on line 11

 

This only occurs on a relatively small number of records (roughly 500 out of 8000), while the rest update just fine. I can, of course, manually modify these IDs via the console without error -- this only occurs when using the ConnectAPI.

It's also worth noting that this error occurs when trying to modify *any* custom field of an affected record. If I simply issue a save() without modifying data, it does NOT throw an exception. What differentiates these records from the ones that update fine?

Any thoughts?

Version

August 2014

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles