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
Hitesh Khatri 13Hitesh Khatri 13 

How to resolve this error?


I am getting this error whenever i create an account. Fro QUICK account tab which has visual force makrup.

<apex:page > 
<flow:interview name="Quick_Account"></flow:interview> 

An error occurred at element Create_Account (FlowRecordCreate).

This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.

Flow Details
Flow Name: Quick_Account
Type: Flow
Version: 1
Status: Inactive

Flow Interview Details
Interview Label: Quick Account 10/25/2016 9:04 PM
Current User: Hitesh Khatri (00528000002r0Fi)
Start time: 10/25/2016 9:02 PM
Duration: 71 seconds

How the Interview Started
Hitesh Khatri (00528000002r0Fi) started the flow interview.

SCREEN: New_Account
Textbox: Account_Name
Label: Account Name
Value at run time: Sumeet Purohit

Number: Phone_number
Label: Phone number
Value at run time: 9,414,958,276

Selected Navigation Button: NEXT

RECORD CREATE: Create_Account
Create one Account record where:
Name = {!Account_Name} (Sumeet Purohit)
Phone = {!Phone_number} (9,414,958,276)
Failed to create record.

Error Occurred: INSERT --- INSERT FAILED --- ERRORS : (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) AccountDeletion: execution of BeforeInsert

SandhyaSandhya (Salesforce Developers) 

Please check if you have any trigger for BeforeInsert on Account.This might be stopping you from creating an account.

Please refer below links for the similar error you may get some information.
Hope this helps you!

If this helps you please mark it as solved.

Thanks and Regards

Hitesh Khatri 13Hitesh Khatri 13
Hi Sandhya,

Thank you so much.
Having removed BEFOREINSTERT trigger on Account, I could able to create Quick account. 

Best Regards 
Hitesh Khatri
SandhyaSandhya (Salesforce Developers) 

If this solves your question, please mark it as solved choosing BestAnswer so that it will make available for others as a proper solution and this will be removed from the unanaswered queue.Hope you consider.

Thanks and Regards