Results 1 to 5 of 5

Thread: Importing Opportunities and Permissions

  1. #1
    jleaman's Avatar
    jleaman is offline Senior Member
    Join Date
    May 2009
    Location
    Boston
    Posts
    58

    Exclamation Importing Opportunities and Permissions

    When creating/updating records on a Opportunities import I get the following error:

    "The record could not be updated due to a permissions issue" I find this error in the error_1.csv file.

    I have reviewed the permission settings for the file system and made sure to follow suit with no luck. Any ideas?
    Last edited by jleaman; 2009-10-20 at 01:56 PM.

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: Importing Opportunities and Permissions

    Do all the records get rejected or just one record?

  3. #3
    jleaman's Avatar
    jleaman is offline Senior Member
    Join Date
    May 2009
    Location
    Boston
    Posts
    58

    Default Re: Importing Opportunities and Permissions

    As far as I can tell, all. I am importing a portion of my list (300 entries). Watching the error file will show me that this error is printed about 6-15 times before the import fails and reports 0 entries imported. Sugar doesn't report this error to me in the webgui..

    I also checked the permissions of the defined user in the DB. This showed that the user had all privileges.. so that's out of the question.
    Last edited by jleaman; 2009-10-20 at 02:56 PM.

  4. #4
    jleaman's Avatar
    jleaman is offline Senior Member
    Join Date
    May 2009
    Location
    Boston
    Posts
    58

    Default Re: Importing Opportunities and Permissions

    I did find this line in the en_us.lang.php file:
    Code:
    'LBL_RECORD_CANNOT_BE_UPDATED' => 'The Record could not be updated due to a permissions issue',
    Where is this defined so I can see where this error is originating from? This is very strange.

  5. #5
    rrichey4430 is offline Junior Member
    Join Date
    Apr 2010
    Posts
    3

    Default Re: Importing Opportunities and Permissions

    In my case, this problem resulted because I originally had two duplicate records with the same information in them, but of course, each had its own unique ID. I had previously "deleted" one of the two duplicates. When I was doing the import, I was inadvertently using the ID of the "deleted" record instead of the ID of the ongoing record.

    When you delete a record in sugar, the record is actually not really deleted, but is simply flagged as having been deleted. In most circumstances, sugar behaves as if the record were in reality "gone". But when importing by ID with the express purpose of updating records, referencing the ID of one of these "deleted" records caused this "permissions" error message to be displayed, since the "deleted" record is effectively (and correctly) locked to any and all updates.

    So, to solve my problem, I simply replaced the erroneous "deleted" ID with the correct, ongoing ID for the duplicated record in my import file.

    If any of the Sugar gods ever read this note, it would sure be nice if you could make such messages a bit more explicit. In this case, something like, "The ID is locked because it corresponds to a record that has been previously deleted" would be really nice...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FunnyFIX: importing Opportunities
    By Superman in forum Developer Help
    Replies: 0
    Last Post: 2008-07-21, 07:50 AM
  2. Importing Opportunities
    By JayL in forum Help
    Replies: 21
    Last Post: 2008-04-18, 08:43 PM
  3. Error while importing Opportunities
    By sugarjunior in forum Developer Help
    Replies: 4
    Last Post: 2008-02-14, 01:41 AM
  4. Importing Opportunities from excel
    By weffner in forum Help
    Replies: 4
    Last Post: 2007-08-22, 01:02 PM
  5. Importing Opportunities
    By mrmmm in forum General Discussion
    Replies: 6
    Last Post: 2007-05-20, 09:53 PM

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
  •