Hi eleventeenth, thanks for the script.
I prefer it over the others because using the higher level API's like soap and zimbra's commandline tool and web interfacel is more robust then querying the database directly.
However, when the script does the curl http request to zimbra, I get this:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 system failure: csv formatter failure</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /service/home/user@ourzimbra.net/sugarexport. Reason:
<pre> system failure: csv formatter failure</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
I've checked the /tmp/SugarCRMContacts.csv file myself and it seems a correct CSV file at first (in our case 684 lines, 220kB), although I notice some lines seem truncated.
For example, I've got a line ending on:
Code:
"Street 11","http://ourcrm//index.php?action=DetailView&module=Contacts&record=someidentifier",""
"","","","","","","BTW 123456
I'll be debugging this further.
Bookmarks