• Kruthika Ks
  • NEWBIE
  • 49 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 8
    Replies

Hi Guys, 

I am having a problem with Auto Approval process when case is created from Customer Community. This process was designed few years ago and working fine until last week. Suddently Auto approval functionality not working. 

Below is from debug log 

11:06:36.0 (789572586)|WF_RULE_FILTER|[Case : Case Record Type equals Vet Refusal, Complaint] AND
 ([Case : Case Origin equals Veterinary Portal] OR
 ([Case : Case Origin equals Web form] AND
 [Account : Account Record Type equals Veterinarian, Veterinarian School]))
11:06:36.0 (789599544)|WF_RULE_EVAL_VALUE|01250000000Qn2F
11:06:36.0 (790013307)|WF_RULE_EVAL_VALUE|Web form
11:06:36.0 (790025657)|WF_RULE_EVAL_VALUE|Web form
11:06:36.0 (790038537)|WF_RULE_EVAL_VALUE|0121T000000ARoR
11:06:36.0 (790050307)|WF_EVAL_ENTRY_CRITERIA|Palatability Refusals Process|00X50000001a8hG|false
11:06:36.0 (790087611)|WF_PROCESS_FOUND||No applicable approval process was found.
11:06:36.0 (790841041)|CODE_UNIT_FINISHED|Workflow:ApprovalProcessActions
11:06:36.0 (790980116)|DML_END|[251]
11:06:36.0 (791029629)|EXCEPTION_THROWN|[251]|System.DmlException: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process was found.: []
11:06:36.0 (791458699)|HEAP_ALLOCATE|[251]|Bytes:127
11:06:36.0 (791511759)|VARIABLE_SCOPE_BEGIN|[257]|e|System.DmlException|true|false
11:06:36.0 (791603768)|VARIABLE_ASSIGNMENT|[257]|e|"common.apex.runtime.impl.DmlExecutionException: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process was found.: []"|0x30f3a637

(791710185)|USER_DEBUG|[258]|DEBUG|PalatabilityRefusal_NewCaseController: Exception while submitting for approval: System.DmlException: Process failed. First exception on row 0; first error: NO_APPLICABLE_PROCESS, No applicable approval process was found.: []
below is from Controller page

 
Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
        req1.setComments('Auto-Submitted by controller for Approval.');
        req1.setObjectId(thisCase.id);
        
        System.debug('PalatabilityRefusal_NewCaseController:  Process Approval Request: '+ req1);
        Approval.ProcessResult result;
        try{
            result = Approval.process(req1);
            if (!result.isSuccess()){
                ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.FATAL, 'An Error Occurred when submitting the request.  Please contact your administrator.'));
                return (null);
            }
            System.debug('PalatabilityRefusal_NewCaseController: Successfully submitted for approval.');
        }catch(System.DMLException e){
            System.debug('PalatabilityRefusal_NewCaseController: Exception while submitting for approval: '+e);
            System.debug('PalatabilityRefusal_NewCaseController: Exception trace: '+e.getStackTraceString());
            System.debug('PalatabilityRefusal_NewCaseController: Exception details: '+e.getDMLId(0));
            System.debug('PalatabilityRefusal_NewCaseController: Exception details: '+e.getDMLFields(0));
            System.debug(thisCase);
            hasErrors = true;
            ApexPages.addMessages(e);
            return (null);
        }
W

We used to receive message in Approval Process Comments that "Auto-Submitted by controller for Approval." but right now we have to manually submit it. It's working fine in manual Approval. 

Somehow it stopped working through Controller. Let me know if you need more details to understand it better. 

What do you suggest. 

Thanks in advance. 
I ma new to salesforce. Can anyone please tell what exactly is a sales process and i twould be of great help if you can provide relavent documents.
Hi,
Can any one help me with an example of a standard object that’s also junction object in salesforce.

Thanks in Advance

Hello all,

 

I'm using Eclipse Kepler (4.3) and have successfully installed the Force.com plugin. I could even create a project and see all the components. However, everytime I try to access a piece of code or the schema browser, I get an error saying my password is wrong.

 

I check on my org, and my login lists multiple failed logins for 'Invalid Password'. In my project properties on Eclipse, the password and sec token fields are empty - no matter how many times I enter it, it forgets.

 

If it can't remember, I expect it to atleast prompt me each time. Can something be done?

 

Thanks,

LVS

  • July 24, 2013
  • Like
  • 0

Hi:

 

I have created a visualforce page as follows, I would like to make the fields appearing in the page read only, how do I achieve it?

 

The custom page is shown in the tab.

 

<apex:page showHeader="true" readOnly="false" >
    <apex:enhancedList type="Call_Report_Summary__c" customizable="false" height="700" rowsPerPage="50" id="CallReportListPage"/>
</apex:page>

 

 

I have following simple trigger to populate one field from account.

When I convert the lead and create new opportunity , this trigger does not get fired .. However if I change something in opportunity after creation , trigger gets fired and this is due to  before update. I also tried to insert opportunity directly and trigger is working as expected

Seems like "before insert" is not working after lead conversion to opportunity

Is there any limitation of the Triggers that it does not get fired when lead is converted ? Can someone please let me know if there is a workaround ?

trigger OpportunityInsert on Opportunity (before insert,before update)
{
    for (Opportunity o : Trigger.new)
    {
        if (o.regpartner != NULL)
        {
               //dc --> Distributor Center
                Account dc = [Select Id, oc from Account where id = :o.regpartner];
             
                    o.oc = dc.oc;
}}}
  • April 23, 2008
  • Like
  • 0