Results 1 to 10 of 10

Thread: Can't import Date Created or Date Modified

  1. #1
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Can't import Date Created or Date Modified

    Hey all I'm running Sugar Version 5.2.0 (Build 5380). I'm trying to import Opportunities from Salesforce. I'd like to be able to import the Date Created as well as the Date Modified fields. Both fields in Sugar appear to not be importable. Does anyone know of a way to make either (preferably both) of them importable at least temporarily so that I can get the initial data imported?

    TIA for any ideas.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Can't import Date Created or Date Modified

    Edit the file cache/modules/Opportunities/Opportunityvardefs.php
    Look for date_entered and date_modified.
    set the attribute importable to true.

    When you finish importing restore the default value.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Re: Can't import Date Created or Date Modified

    Thanks (once again) for your response. When I do what you described, every time I go to a new page the file is updated with those fields being set to false and (I'm assuming) as a result they don't show up as importable in the import dialog. I also tried to copy those variable sections into \modules\Opportunities\vardefs.php and that didn't work either? Do you have another ideas?
    Last edited by ffletch; 2009-01-08 at 09:19 PM.

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Can't import Date Created or Date Modified

    Create an extended vardefs for Opportunities and update the attribute 'importable' for both 'date_entered' and 'date_modified' fields

    custom/Extension/modules/Opportunities/Ext/Vardefs/vardefs.ext.php

    PHP Code:
    <?php
    $dictionary
    ['Opportunity']['fields']['date_entered']['importable'] = true;
    $dictionary['Opportunity']['fields']['date_modified']['importable'] = true;
    ?>
    Then go to Admin -> Repair -> Rebuild Extension.

    You will see the cache/modules/Opportunities/Opportunityvardefs.php will be updated according to that customization and both fields will be importable.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Re: Can't import Date Created or Date Modified

    Ok, did that and I do see that cache/modules/Opportunities/Opportunityvardefs.php is updated. And when I look at the fields in Studio I see that they are updated there as well (they are blank as opposed to false). However when I look in the pulldowns in the "Database Field" column the Created Date (date_entered) and Modified Date (date_modified) don't show up. I do see that this info is stored in a blob in the import_maps table in the DB. I tried editing that blob and it still didn't import either of the fields. Or do you have any other ideas?
    Last edited by ffletch; 2009-01-09 at 06:18 PM.

  6. #6
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Re: Can't import Date Created or Date Modified

    *Bump*

    Anyone have any ideas on this one?

  7. #7
    jmavor is offline Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default Re: Can't import Date Created or Date Modified

    Hi

    We are experiencing this exact problem. I see that we are not the only ones. Can anyone help us?

  8. #8
    theone is offline Member
    Join Date
    Jan 2008
    Posts
    7

    Default Re: Can't import Date Created or Date Modified

    I'm running into the same problem with all date fields on an import for Account. Even some custom date fields will not import. Anyone import date created and modified into SugarCRM Accounts successfully?

    TIA

  9. #9
    wallydb is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: Can't import Date Created or Date Modified

    I had the same problem and for me this solved it:

    When you Import and get to Step 3: Confirm Fields and Import - Click on "Show Advances Options" at the bottom and make sure that your "Date Format" is set to the same format your fields are in. DD/MM/YYYY or whatever...

    Let me know ...

  10. #10
    erikbrown is offline Junior Member
    Join Date
    Jan 2010
    Posts
    2

    Default Re: Can't import Date Created or Date Modified

    I had this problem when trying to import using the Sugar Interface, so I imported directly into the tables. I think that is much easier. I am importing into SQL Server and so used SSIS. It's pretty slick once you get it set up. For dropdowns you need to remember to import the actual value, not the display value.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2008-01-31, 02:24 AM
  2. Date Created/Modified Timestamp on Subpanels
    By tfitzgerald in forum Developer Help
    Replies: 1
    Last Post: 2007-08-16, 04:54 AM
  3. Last Modified and Date Created in Projects Tab
    By ohiohs9 in forum General Discussion
    Replies: 0
    Last Post: 2007-04-30, 05:25 AM
  4. Replies: 2
    Last Post: 2006-11-22, 02:42 PM
  5. Replies: 2
    Last Post: 2005-05-18, 11:59 AM

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
  •