Results 1 to 4 of 4

Thread: Importing Prospects not working Sugar 6.0.1.

  1. #1
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default [SOLVED] Importing Prospects not working Sugar 6.0.1.

    Hi Everyone,

    I'm no able to import prospects on SugarCE 6.0.1. I have a file with 3 fields: Account Name, Prospect Name and Email. I try to import it, and everything runs fine 'till step 3. On step 4, when import will be made, i get a dialog box telling me that there have been errors during the importation. (img 1)



    I've edited the file modules/import/views/view.step4.php and add this line to view php errors:

    PHP Code:
    ini_set("display_errors","1");
    set_error_handler('handleImportErrors',E_ALL E_STRICT); 
    Try the import once again, and NO errors are showed, but nothing is imported either (img 2)



    Thanks in advance for your help with this issue.

    SugarCE 6.0.1
    Linux Suse 10
    MySQL 5.1
    PHP 5.3.3
    Last edited by jasv; 2011-02-21 at 06:52 PM. Reason: Resolved

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Importing Prospects not working Sugar 6.0.1.

    Hello,

    Can you try importing the same file, while login in English language?
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default Re: Importing Prospects not working Sugar 6.0.1.

    Hi davidboris,

    Thanks for the reply.

    Yes, I just try this, but it makes no difference. The behavior is exactly the same.

  4. #4
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default Re: Importing Prospects not working Sugar 6.0.1.

    Finally i've solved the problem.

    I added this function to the file modules/Prospects/Prospects:

    PHP Code:
    public function unPopulateDefaultValues()
            {
                if ( !
    is_array($this->field_defs) )
                    return;

                foreach (
    $this->field_defs as $field => $value) {
                    if( (isset(
    $value['default']) || !empty($value['display_default']))
                            && !empty(
    $this->$field)
                            && ((
    $this->$field == $value['default']) || ($this->$field == $value['display_default']))
                            ) {
                        
    $this->$field null;
                    }
                }
            } 
    And it's working fine now.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2009-08-27, 07:07 AM
  2. Replies: 0
    Last Post: 2008-08-20, 10:11 PM
  3. Importing data for prospects
    By mdewstowe in forum Help
    Replies: 0
    Last Post: 2005-09-13, 12:39 PM
  4. Replies: 0
    Last Post: 2005-07-19, 12:57 PM
  5. Replies: 3
    Last Post: 2005-06-16, 01:52 PM

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
  •