I'm working on the Trailhead Visual Workflow unit, and my flow keeps failing and I'm not sure why. The error message I get says, "caused by element : FlowRecordCreate.New_Opportunity caused by: UPSERT --- UPSERT FAILED --- ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [StageName] --- for SFDC record with ID : null," but clearly you can see in the photo I have the Stage Name field. What am I missing? Thanks!!! Now adding my input screen as well. [inputScreenFail] Now adding prospecting choice screen. prospectingchoicefail1


  • The Field you're using on the left is more of a "label". The {!Opportunity_Stage} is the input field in your page. Do you really have all the required fields that Salesforce expects when inserting a record using the proper syntax? {!OneMonthFromToday} is not Opportunity.CloseDate.
    – crmprogdev
    Aug 28, 2015 at 16:41
  • Thanks @crmprogdev, that's super helpful and I understand what you're saying! So if I want to have a close date that is one month from today, would I set that up on the first screen, the input screen? Aug 29, 2015 at 17:27
  • So the weird thing is when I go to associate 'opportunity stage' from the screen input field, because I've put 'Prospecting' as the default field, it's showing up under 'screen choice fields', not screen input fields. Could that be the issue? Again, still not sure how to set default values as the trailhead module is asking, while still meeting the required fields need. Aug 29, 2015 at 17:46
  • 1
    Hi Missy! I think your problem might be back at the initial Screen where you are collecting the information. Can you put a screen shot for that up also?
    – Jenny B
    Aug 29, 2015 at 18:02
  • Sorry one more screen, can you also add the Prospecting choice setup screen?
    – Jenny B
    Aug 29, 2015 at 18:35

1 Answer 1


The stored value needs to be assigned to the Prospecting choice. Think of the Label/Unique Name as a variable name and "Prospecting" as the value inside of the variable. I've seen conventions where people put a c_ in front of the variable name to help differentiate what type of variable it is.
So on the entry screen, it will check what is inside the variable and assign it to the stage as a default, currently it is assigning null since stored value is empty.
Default Stage Choice variable


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .