Attempt to write a readonly database
Content
Firstly - please can someone amend http://documentation.custhelp.com/euf/assets/devdocs/cloud18b/Connect_PHP/Content/Connect for PHP API/Connect PHP API/Operational Behavior/Bulk Delete.htm?SearchType=Stem&Highlight=bulk as the code example is all sorts of wrong
Secondly, when I do the code below I get the error: "Attempt to write a readonly database" despite the documentation saying I can do it on custom objects
Any advice?
Code Snippet
try{ for( $i = 0; $i<100; $i++ ) { $query = "delete from Misc.incident_stats limit 1000"; $roql_rs = RNCPHP\ROQL::query( $query ); $ConnectAPI::commit(); } } catch (Exception $err ) { echo $err->getMessage(); }
0