You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Attempt to write a readonly database

Received Response
12
Views
3
Comments
edited Jul 20, 2018 9:10AM in Customer Portal 3 comments

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();
		} 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!