You need to sign in to do that
Don't have an account?
Andrew Alldredge
REQUIRED_FIELD_MISSING: Required fields are missing: [Name]?
Hi All,
Working through Combine the Power of Process Builder and Cloud Flow Designer (https://trailhead.salesforce.com/modules/business_process_automation/units/business_process_automation_combined) and have an issue with REQUIRED_FIELD_MISSING: Required fields are missing: [Name].
Have Process Builder set up as:
Flow Designer is set up as:
Receive errors as: Error Occurred During Flow "Renew_Opportunity": This error occurred when the flow tried to create records
All Opportunities have an Opportunity Name (as seen in Opportunity details).
Can resolve issue by assigning constant "AssignNameTest" to {!http://opportunity.Name } in Flow designer.
In further attempts at resolution, created a validation on Opportunity Name to make sure it had an assigned name (even though an Opportunity Name was always visible in the details, as noted above) and removed assigned constant “AssignNameTest” to {!http://opportunity.Name } in Flow designer.
With Opportunity name validation, received the error:
FAST CREATE: Clone_Opportunity
Create Opportunity records using the values that are stored in {!opportunity}.
Variable Values
[StageName=Prospecting,CloseDate=8/5/2018 7:00 PM]
Result
Failed to create records.
Error Occurred: This error occurred when the flow tried to create records: FIELD_CUSTOM_VALIDATION_EXCEPTION: Enter an opportunity name.. For details, see API Exceptions.
Any advice on a direction to look in is appreciated!
Working through Combine the Power of Process Builder and Cloud Flow Designer (https://trailhead.salesforce.com/modules/business_process_automation/units/business_process_automation_combined) and have an issue with REQUIRED_FIELD_MISSING: Required fields are missing: [Name].
Have Process Builder set up as:
Flow Designer is set up as:
Receive errors as: Error Occurred During Flow "Renew_Opportunity": This error occurred when the flow tried to create records
All Opportunities have an Opportunity Name (as seen in Opportunity details).
Can resolve issue by assigning constant "AssignNameTest" to {!http://opportunity.Name } in Flow designer.
In further attempts at resolution, created a validation on Opportunity Name to make sure it had an assigned name (even though an Opportunity Name was always visible in the details, as noted above) and removed assigned constant “AssignNameTest” to {!http://opportunity.Name } in Flow designer.
With Opportunity name validation, received the error:
FAST CREATE: Clone_Opportunity
Create Opportunity records using the values that are stored in {!opportunity}.
Variable Values
[StageName=Prospecting,CloseDate=8/5/2018 7:00 PM]
Result
Failed to create records.
Error Occurred: This error occurred when the flow tried to create records: FIELD_CUSTOM_VALIDATION_EXCEPTION: Enter an opportunity name.. For details, see API Exceptions.
Any advice on a direction to look in is appreciated!
RENEW_OPPORTUNITY (FLOWS): myRule_1_A1
Inputs:
None
I went back into Process Builder and found that I did not have:
These instructions are noted in the next session of the Lightning Flow module: Combine the Power of Process Builder and Cloud Flow Designer (https://trailhead.salesforce.com/modules/business_process_automation/units/business_process_automation_combined).
I then cloned and edited my version of Process Builder to look as:
Activated new version in Process Builder and everything worked. Great learning experience!
All Answers
I did try that in a previous version, but re-activated it and re-ran it to show process and error results.
Here is the setup in Flow Designer, as suggested. This seems a worthwhile troubleshooting approach, but to my understanding is unnecessary for the exercise as this is only for field updates, with the entire record to be cloned in next step, Fast Create of the sObject variable {!opportunity}.
Upon moving opportunity to Closed Won, I receive this on-screen notification:
Flow - Process Builder error notification:
Note (from error above):
RENEW_OPPORTUNITY (FLOWS): myRule_1_A1
Inputs:
None
Flow error notiifcation:
Note (from error above):
Error element Update_Opportunity_Fields (FlowAssignment).
The flow failed to access the value for opportunity.Name because it hasn't been set or assigned.
RENEW_OPPORTUNITY (FLOWS): myRule_1_A1
Inputs:
None
I went back into Process Builder and found that I did not have:
These instructions are noted in the next session of the Lightning Flow module: Combine the Power of Process Builder and Cloud Flow Designer (https://trailhead.salesforce.com/modules/business_process_automation/units/business_process_automation_combined).
I then cloned and edited my version of Process Builder to look as:
Activated new version in Process Builder and everything worked. Great learning experience!
Once I fixed that, I was able to save the opportunity as Closed Won and it cloned no problem. However, it did not clone the Opportunity Products. Did you encounter this issue?
Thanks for the post. I am not exactly sure what you mean by "it cloned no problem."
The reason I cloned and edited my version of Process Builder (as noted in the accepted answer above) was to maintain the work that had been correctly done and then to edit what needed to be corrected.
I have since deleted the Trailhead Playground associated witth his exercise, and it seems that you have also come to a satisfactory conclusion of the exercise. If you have more questions, or insight into the issue, I am sure others will appreciate you posting as they may also come across the same problems.
In general, I found that sometimes I have gone through a Trailhead exercise and I am certain that it should be passing the test and researching the issue points in the same direction. In these few cases, I found the best approach was to create a new Trailhead Playground and redo the exercise. It can be frustrating at the time, but the extra effort is worth it!
Best,
Andy