You need to sign in to do that
Don't have an account?
Error: Cannot_Insert_Update_Activate_Entity. Need Help
Hello All,
I am getting this error from last 2 days now, I have tried every thing which I got from the forms but its not resolved.
I have a trigger on Opportunity after insert, after update.
Based on amount and Opportunity Start and end date I am generating monthly cash flow, which I insert in a new custom object Opportunities_cash_flow__c, this trigger is working fine in sandbox but when I try to move it in production I get error on 4 other test classes for different triggers.
On though triggers I am updating a different object called Project role and Opportunities.
I have no Idea why I am getting this error and how to solve it.
Thanks
Vivek Manchanda
this is mainly because You do not have permission to create, update, or activate the specified record... check it out which object record it is
could you just show the part of code where you getting the error
Hello Kiran,
Thanks for your reply, I have all the permissions as I am System Admin.
I also tried many different things like commenting my code and trying to do deployment validation to find the location of the error, but can't find the location.
Thanks
Vivek
Hello Steve,
Here is my code,
Please let me know if you need any other information.
Thanks
Vivek
just check your org wide settings of opportunity in production once...
Hey Kiran,
Is there any specific way through which I can check org wide setting or the only way is to go through individual profile.
Thanks
VIvek
is this trigger based on which events on which object?
Hello Kiran,
Trigger is on Opportunity after insert, after update.
Thanks
Vivek
Hello Kiran,
While deployment to production I am getting error on all the trigger and test class which are on Project Role object (Custom object). But on this trigger I am not even touching Project role.
But from trigger on project role I am updating Opportunity amount.
I am not sure but I think I am getting stuck in Infinite loop, as my old triggers (On Project Role) updates Opportunity and then this trigger invoke again.
Thanks
Vivek
When you get an error as cannot update create activity make sure you check for the field level security of the fields
Go to the user and check field level security for the particular obj
Hello Steve,
I have checked all the field level security settings as I am the system Admin I have all the rights.
Thanks
Vivek
I don't think there is any problem with your code. Its just there is some problem at FLS(Field Level Security) of Activity. Please make sure all fields of Activity , Task and Event is visible for System Administrator on both orgs (Also opportunity fields which your are using). Hopefully this will resolve your problem.
If this still doesn't resolves your problem then make sure CRUD rights are given to objects which you are using in this code
I don't think there is any problem with your code. Its just there is some problem at FLS(Field Level Security) of Activity. Please make sure all fields of ur respective objects is visible for System Administrator on prod orgs (Also opportunity fields which your are using). Hopefully this will resolve your problem.
If this still doesn't resolves your problem then make sure CRUD rights are given to objects which you are using in this code
Hello Kiran / Steve
Thanks for your help, The issue is still not resolve, I am trying to find any other way to resolve it. I have check all the settings but nothing seems wrong to me in settings, But still if you guys find any other solutions please let me know.
Thanks a lot for your advice and help.
Thanks
Vivek