• zin pas
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi All,
I am getting this error on creating opportunity. 
I am system admin and i have read/write/modifyall access opportunity and opportunityactor object, but still facing this error. please let me know why this would be happening?

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, OpportunityAfterInsert: execution of AfterInsert caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, OpportunityActorAfterInsert: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on row 0 with id 0061j00000NAd7uAAD; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: a0557000011IPu7: [] Class.AP75OpportunityActor.updateOppCompetitorSummary: line 34, column 1 Trigger.OpportunityActorAfterInsert: line 18, column 1: [] Class.AP02Opportunity.createOpportunityActor
Hi, 
I am trying to create formula to calculate task due date based on few scenerios:
Task due date if call 1 = TODAY, call 2 = TODAY + 24 hours, call 3= TODAY + 48 hours, and
1. if lead owner in EU --> work from Monday til Friday
2. if lead owner in Asia --> work form Tuesday til Saturday

So far I've been trying with this but cant seem to work (logic of weekday: 1-Sunday, 2-Monday, ... 7-Saturday)

IF ({!$Record.Country} = "Europe" || {!$Record.Country} = "UK" &&           {!$Record.Week_Day__c} = 1, TODAY() + 1,                   {!$Record.Week_Day__c}= 7, TODAY() +2), TODAY()

IF {!$Record.Country} = "Asia" && (IF ({!$Record.Week_Day__c} = 2, TODAY() + 1, {!$Record.Week_Day__c}=1, TODAY() +1), TODAY()

Please help :((