You need to sign in to do that
Don't have an account?
Vinod Kumar
A workflow or approval field update caused an error when saving this record.
Hi all,
I am trying to update all records through scheduling job daily. Records are not updating and throwing this error mesaage "A workflow or approval field update caused an error when saving this record. Contact your administrator to resolve it". Why i am getting this error message? how to resolve this error?
Thanks,
Vinod.
check with workflows that are firing on field updates , Is there any field related to your task and the workflow .
If this answers your question , make is as solution
hi suree,
I have one object with the name application. I am trying to update all the records of that object at that time it is throwing error message "A workflow or approval field update caused an error when saving this record. Contact your administrator to resolve it. Division undefined: []" . Why i am getting this error? Application object having some workflow rules with the field update action. I am trying to upadte xyz field with abc field. abc is a formul field it is returning value null. i am updating xyz field with null, i think that reason only i am getting this error. Is this correct or not, if it is correct how to resolve this issue. Please let me know.
being it is a formula field i think u can not update it, And also check with profiles do you have access to all the fields you are using
It may seems crazy but.. I have the same situaion now where you were.. Could you tell the solution if u remember.
Thanks.
I just ran into this issue and figured the solution for the same.
So if you are using a formula field on the approval process's entry criteria and if the formula throws "#Error" or NULL, then there are chances that you will hit upon the "Divisions Undefined Error".
So the solution is to either treat a value as blank as per this knowledge article - https://help.salesforce.com/HTViewSolution?id=000003605
or associate a error value which we can bucket and ignore.
Hope this helps!
It was really troublesome issue and from the error its very difficult to figure out the root cause. So, again thank you so much for helping me out with it.
1) you need check which is field update or insert in Record. With help of System.debug statement you can find also of some extra field just like formula field
Example: List<Account> acclist=[Select Id From Account limit 1];
System.debug(acclist);
2)after check those field where is this field used
setup->Object manger -> Account(object) -> open field information -> after open then click button 'Where is this used' -> check which formula field used that field and check those field datatype is formula. if datatype is fomulat then if division operation is perform then that In formula that used variable value come or not
Example: a = null, b = null
c=a/b -> occur error Division undefined: []