function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VSK98VSK98 

Visual Flow Error after ran INSERT --- INSERT FAILED --- ERRORS : (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY)

Hi All,

I have Created sample Visual Flow and calling from Custom button. The logic is jsut creating Account Records. And I have a workflow when ever Account is created, updating the field in Account.

So when ever i ran the flow from button after the submitting the flow. I got the above error.
So i deactivated the workflow then the flow works fine. Can any one know why this is happened. Please help me out.

Error :
 
Flow Details
Flow Name: Sample_Account_Create
Type: Flow
Version: 1
Status: Inactive
Flow Interview Details
Interview Label: Sample Account Create 27/7/2016 7:35 PM
Current User: siva kumar (00590000003L0bm)
Start time: 27/7/2016 7:35 PM
Duration: 18 seconds
How the Interview Started
siva kumar (00590000003L0bm) started the flow interview.
SCREEN: Submit_Account_Details
Textbox: Account_Name
Label: Account Name
Value at run time: TestFlowRecord1

Number: Fax
Label: Fax
Value at run time: 554,646

Long Text Area: Description
Label: Description
Value at run time: 

Selected Navigation Button: NEXT
RECORD CREATE: Create_Record
Create one Account record where:
Description = {!Description} ()
Fax = {!Fax} (554,646)
Name = {!Account_Name} (TestFlowRecord1)
Result
Failed to create record.


Regards,
VSK
PavanKPavanK
Can you please explain workflow and flow logic in detail?
Krishna SambarajuKrishna Sambaraju
Why don't you set the field with in the flow itself, instead of using another workflow to update a field.

Regards,
Krishna.
VSK98VSK98
Pavan @ There is no rule for workflow....Jst updating the field when account is created
VSK98VSK98
Krishna@ We can do with flow...bt If existing workflow have some dependency or complexity. How could we control these things......

Regards,
VSK
VineetKumarVineetKumar
some trigger is trying to update in the existing record, in the before trigger.
Check what all triggers are getting executed
Krishna SambarajuKrishna Sambaraju
I don't see any issues in executing a workflow after creating an account using visual flow. Enable debug on the user account and check the debug log. This will give you more details on what is causing the flow to fail. It could be a trigger, workflow or a process builder. Hope this helps.

Regards,
Krishna.