+ Start a Discussion
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7 

Process Builder Issue

Hi,

I have created a process builder which assign pricebook based on Zipcode. In "Zipcode" object having pricebookname assigned to each zipcode. I have inherited this field to Accounts. Using Account's i have cretaed process builder and it  is working fine.

But here my concern is that, Some cases when am using different Recordtype, i should assign particular recordtype's pricebook rather than actual.

I have also tried to build a seperate processflow. But it shows error as "The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID .."

How i can resolve it. I have attached my process flow for the reference.
1.Zipcode's Processflow
2.Zipcode's Processflow
User-added imageUser-added imageUser-added imageUser-added image

How can resolve this. Any help on this.


Thanks,
Selva
Best Answer chosen by Selvakumar Anbazhagan 7
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7
Hi,

I have resolved my issue. Just I have added a condition as Pricebook Id should be null and assigned Pricebook. Now i can choose correct record type's Pricebook.

For the reference screenshot attached.

User-added image

All Answers

Andy BoettcherAndy Boettcher
Can you post the full error?  The error message you started to reference has the reason the PB is erroring out.
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7
Hi,

When i Save my opportunity for the particular RecordType i getting the error. Attached screenshot. User-added image
Andy BoettcherAndy Boettcher
There should be an accompanying email that comes to the System Administrator that has the full debug information.
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7
Hi,

I got Email with the following details :

Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = 0069000000gdZboAAE


ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "1/7/2016 10:57 AM"


DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: and
1. {!myVariable_current.RecordTypeId} (01290000000A835AAC) Equals 01290000000A835AAC
Logic: All conditions must be true (AND)


RECORD UPDATE: myRule_1_A1
Find all Opportunity records where:
Id Equals {!myVariable_current.Id} (0069000000gdZboAAE)
Update the records’ field values.
Pricebook2Id = 01290000000A835
Result
Failed to update records that meet the filter criteria.

___________________________________________________________________________________--

Error Occurred: UPDATE --- UPDATE FAILED --- ERRORS : (FIELD_INTEGRITY_EXCEPTION) Price Book ID: id value of incorrect type: 01290000000A835AAC, 

__________________________________________________________________________________________--
 
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7
Hi,

I have resolved my issue. Just I have added a condition as Pricebook Id should be null and assigned Pricebook. Now i can choose correct record type's Pricebook.

For the reference screenshot attached.

User-added image
This was selected as the best answer
Andy BoettcherAndy Boettcher
Awesome!  That error email is the key to everything with troubleshooting flow.  Glad you saw it and figured it out!  =)
Selvakumar Anbazhagan 7Selvakumar Anbazhagan 7
Thanks Andy Voettcher!!  You made a way for it..