You need to sign in to do that
Don't have an account?
Trailhead Challenge Create a flow to streamline entry of new accounts, contacts, and opportunities.
I'm working on Trailhead Challenge to Create a flow to streamline entry of new accounts, contacts, and opportunities.
I've got a screen with:
Then Record Create to Create Account:
Then Record Create to Create Contact:
Then Record Create to Create Opp:
The flow saves. But when I run it and enter info, I get error:
"An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information."
At first, I thought it was because my formula weren't working to concatanate company name and last name, or to add 30 days to date for close date. But even when I remove the formulas and just use the screen fields, I get the same error.
What am I doing wrong?
I've got a screen with:
- First Name
- Last Name
- Company Name
- Opportunity Amount
- Opportunity Stage
Then Record Create to Create Account:
- Name = Company Name
- Variable AccountId
Then Record Create to Create Contact:
- FirstName = First Name
- LastName = Last Name
- AccountId = AccountID
Then Record Create to Create Opp:
- Name = Company Name (Can i use formula for Company_Name + "-" + Last_Name?)
- CloseDate = Flow.CurrentDate (can I use Flow.CurrentDate + 30?)
- AccountId = AccountID
- StageName = Prospecting
- Amount = Opportunity_Amount
The flow saves. But when I run it and enter info, I get error:
"An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information."
At first, I thought it was because my formula weren't working to concatanate company name and last name, or to add 30 days to date for close date. But even when I remove the formulas and just use the screen fields, I get the same error.
What am I doing wrong?
I had the same issue when I first executed my flow. I followed the hint provided here (http://salesforce.stackexchange.com/questions/9146/debugging-visual-workflow" target="_blank) and added an output screen to each create step (see screenshot below) showing the following text: Flow Messsge: {!$Flow.FaultMessage}
By doing this I found out that I created the formula for opportunity name but forgot the opportunity name in the field-value mapping.
For Opportunity Name I used the formula: {!Company_Name} & "-" & {!Last_Name}
Kind regards
Tobias
I was getting emails from the system, telling me that my Opportunity didn't have a required field (StageName). I added a few screens that displayed the fields right after they were gathered, and I was able to see where things went off track.
Like so:
UPSERT --- UPSERT FAILED --- ERRORS : (REQUIRED_FIELD_MISSING) Required fields are missing: [StageName] --- for SFDC record with ID : null,
I have mapped the StageName field to the Opportunity Stage input field, and from what I have read I have done it correctly, adding all the picklist oprions as choices.
On my initial input screen, I have an "Opportunity Stage" picklist with only one value, "Prospecting," like this:
Then on my Opportunity record creation, I have StageName mapped to the "Prospecting" picklist choice:
Can't figure out why that's not working.
While creating opportunity record please try to assign StageName as mentioned below,
StageName = Prospecting (Trick here is to select value from 'PICKLIST VALUES' not from 'CHOICES')
It should resolve this issue. I tried it for my trailead assignment and worked for me. I got full points.
Hope it helps.
Regards,
Biswa
- Instead, something like " {!Company_Name} - {!Last_Name}" should do. Its working for me.
CloseDate = Flow.CurrentDate (can I use Flow.CurrentDate + 30?)Activation Warnings (1) All issues must be fixed before you can activate this flow.
ClosingDate (formula): The formula expression is invalid: Formula result is data type (Date), incompatible with expected data type (Text).
I don't understand why the system is expecting the Text data type for this standard date field. Has anyone come accross a similar issue?
Many thanks!!
Theodore
Thanks!