Results 1 to 10 of 10

Thread: Exporting from Synolia Reports

  1. #1
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Exporting from Synolia Reports

    Hi All

    Hope someone can assist and that I've posted this in the right place!

    I have installed Sugar CE (Windows 2008 / MS SQL 2008) & added Synolia reports as a module. I have been experiencing a problem whereby if the query in Synolia returns more than approx 10-15 records then when trying to export the report to CSV the system just "hangs" & eventually I get a page timed out error.

    I've tried exporting large lists e.g. all contacts which is approx 70 records with no problems, the issue only appears when exporting from Synolia.

    Hope someone can help, thanks in advance.

    Rob

  2. #2
    cmourizard's Avatar
    cmourizard is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    150

    Default Re: Exporting from Synolia Reports

    Hello Rob,

    Thanks for using our module.
    We don't have any problems to extract data by Export Buttons. By example, I can extract all customers with success.

    Do you have complex query ?
    What are your PHP settings like memory_limit and execution_time_out ?

    PS: I haven't test on MSSql server, but we use standard SugarCRM database access method...
    Last edited by cmourizard; 2010-02-22 at 07:23 AM.
    SYNOLIA
    Oldest SugarCRM partner in the world and Gold Partner / Partenaire GOLD SugarCRM
    Official French Translator / Responsable de la traduction Française

    51 Avenue Jean Jaurès - 69007 LYON - FRANCE - Tel : +33 4 27 70 53 70
    www.synolia.com | @synolia sur Twitter
    www.crm-france.com | Forum CRM-France

  3. #3
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Re: Exporting from Synolia Reports

    Hi

    Thanks for getting back to me ... the query is quite complex. I've attached to this post.

    I have ran a query against the accounts table in Synolia and it is working fine even though its pulling back a lot of records, it just appears to have a problem with the query I've set up ... hope you can spot where the fault lies in my code!

    Once again, thanks for the help.

    Regards

    Rob
    Attached Files Attached Files

  4. #4
    cmourizard's Avatar
    cmourizard is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    150

    Default Re: Exporting from Synolia Reports

    Hello Rob,

    I think that your query is very slow (isn't appear in slow query log ?)
    • One way to follow is to add index on your database to optimize the result.
    • An other way is to growth up your PHP settings like memory_limit and execution_time_out
    SYNOLIA
    Oldest SugarCRM partner in the world and Gold Partner / Partenaire GOLD SugarCRM
    Official French Translator / Responsable de la traduction Française

    51 Avenue Jean Jaurès - 69007 LYON - FRANCE - Tel : +33 4 27 70 53 70
    www.synolia.com | @synolia sur Twitter
    www.crm-france.com | Forum CRM-France

  5. #5
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Re: Exporting from Synolia Reports

    Hi, thanks for taking a look.

    If I run the query direct in MS SQL query manager it runs in under a second so I dont think its because its running slow. With regards the PHP settings these are currently set to :

    max_execution_time = 60 ; Maximum execution time of each script, in seconds
    max_input_time = 60000 ; Maximum amount of time each script may spend parsing request data (also increased this one)
    memory_limit = 256M ; Maximum amount of memory a script may consume (128MB) (I've increased this from 128MB)

    Are these acceptable values do you think?

    Many thanks for your help.

    Rob

  6. #6
    cmourizard's Avatar
    cmourizard is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    150

    Default Re: Exporting from Synolia Reports

    Hello,

    You can try with this setting, if it's OK, you should modify file modules/SYNO_Reports/SYNO_Reports.php, at the beginning of method create_export_query, add ini_set with your good configuration to override php setting only in this case.
    SYNOLIA
    Oldest SugarCRM partner in the world and Gold Partner / Partenaire GOLD SugarCRM
    Official French Translator / Responsable de la traduction Française

    51 Avenue Jean Jaurès - 69007 LYON - FRANCE - Tel : +33 4 27 70 53 70
    www.synolia.com | @synolia sur Twitter
    www.crm-france.com | Forum CRM-France

  7. #7
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Re: Exporting from Synolia Reports

    Hi,

    You will have to excuse me I'm not particularly good with PHP, I'm setting this up for a friend .... could you be more specific on the entries I need to make in the syno_reports.php file? I dont understand what is meant by "add ini_set with your good configuration to override php setting only in this case".

    Thanks for your patience.

    Rob

  8. #8
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Re: Exporting from Synolia Reports

    Hi

    Managed to get this rectified based on another post on the forums with a similar issue ...

    http://www.sugarcrm.com/forums/showt...640#post199640

    I actually had to comment out the same line but the file was called export.php and was located in the root folder of the sugar site.

    Many thanks for your help with the above.

    Cheers

    Rob

  9. #9
    cmourizard's Avatar
    cmourizard is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    150

    Default Re: Exporting from Synolia Reports

    If your php settings resolve your problem, you can try to modify file module/SYNO_Reports/SYNO_Reports.php to add this line

    Code:
              if (isset($line['description'])) {
                @set_time_limit(60);
                @ignore_user_abort(TRUE);
                ini_set("memory_limit", "256M");
                ini_set("max_input_time", "60000 ");
    
                return $line['description'];
              }
    to replace these original lines

    Code:
              if (isset($line['description'])) {
                return $line['description'];
              }
    SYNOLIA
    Oldest SugarCRM partner in the world and Gold Partner / Partenaire GOLD SugarCRM
    Official French Translator / Responsable de la traduction Française

    51 Avenue Jean Jaurès - 69007 LYON - FRANCE - Tel : +33 4 27 70 53 70
    www.synolia.com | @synolia sur Twitter
    www.crm-france.com | Forum CRM-France

  10. #10
    robert_f is offline Member
    Join Date
    Feb 2010
    Posts
    14

    Default Re: Exporting from Synolia Reports

    cmourizard, many thanks for all your help on this!

    I tried just using the code alterations you suggested but still had the same issue unfortunately. When I went back and commented out the line in export.php it worked fine again.

    However, I was having a problem with a "larger" version of my query running which your code changes in conjunction with the line commentted out in export.php seemed to cure.

    Once again many thanks for your assistance.

    Regards

    Rob

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Exporting Reports to Excel
    By malcolmh in forum Feature Requests
    Replies: 16
    Last Post: 2011-11-09, 03:13 PM
  2. Exporting date and time from reports
    By REByers in forum Help
    Replies: 0
    Last Post: 2008-04-21, 11:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •