A flow error is preventing records from being written during integration. This has caused sales to be way off for the year.  - Answers - Salesforce Trailblazer Community
Trailblazer Community
Ask Search:
Aaron WallAaron Wall 

A flow error is preventing records from being written during integration. This has caused sales to be way off for the year. 

A flow error is preventing records from being written during integration. This has caused sales to be way off for the year. 

We have two custom objects in our org. 

"GP Item" are individual sales records from active accounts. 
  example: customer #12345 purchased 2 cases of widgets for $10 each. $20 total.

"Mission Records" are sales goals for our salesmen.  
  example: Jim's January Mission is for his new accounts to sell $1100 worth of GP Items.

I have a Process Builder process that triggers a Flow to assign Mission Record credit to each eligible GP Item during our daily integration. 
  example: Jim sold Customer #12345, their $20 sale of widgets contributes to his January Mission goal.     $20/$1100. 

The Flow identifies the Item Class of each GP Item and does not assign Mission Record credit for Item Class: Equipment. 

Problem: The Process/Flow is preventing our integration tool from creating GP Items with an Equipment item class. I need this fixed. 

This is the process that triggers the flowThis is the flow to add the Mission Records to each GP ItemHere are the requirements for the GP Item's item class to NOT be equal to EquipmentHere is the error message I receive for each GP Item with an Equipment item class. It fails to create the GP Item at all, resulting in sales for the year being off.

 
Best Answer chosen by Aaron Wall
Andreea DorofteiAndreea Doroftei
Hello Aaron, 

Considering that the flow is called from the Process Builder, would you mind sharing the criteria for the first node? The one named "Update Rev Mission Record". 

What I'm thinking about is since the flow is autolaunched from the Process Builder maybe we can get rid of the headache by excluding tem Class: Equipment from the very beginning, which is actually this node, before we even get to the flow. 

Would you mind trying this out if it's not already filtered out there?

All Answers

Andreea DorofteiAndreea Doroftei
Hello Aaron, 

Considering that the flow is called from the Process Builder, would you mind sharing the criteria for the first node? The one named "Update Rev Mission Record". 

What I'm thinking about is since the flow is autolaunched from the Process Builder maybe we can get rid of the headache by excluding tem Class: Equipment from the very beginning, which is actually this node, before we even get to the flow. 

Would you mind trying this out if it's not already filtered out there?
This was selected as the best answer
Aaron WallAaron Wall
I have updated the Process to exclude GP Items with item class Equipment. 

Before:
 User-added image


After: 
User-added image
Andreea DorofteiAndreea Doroftei
Looks good. Considering that the issue you highlighted is that the entire process prevents the " integration tool from creating GP Items with an Equipment item class", since now we are excluding those Equipment GP Items form the start of the process, that shouldn't happen anymore. 

What happened when the process ran? 
Aaron WallAaron Wall
This worked perfectly. Thanks Andreea! I'm glad I didn't have to completely rebuild the whole setup. 
Andreea DorofteiAndreea Doroftei
Glad to hear all is good now :) Happy new year!