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
Satria Akbar NugrohoSatria Akbar Nugroho 

Can't find the forceContent:fileUpload Lightning component in the 'New Lead' flow. Make sure the field’s unique name is 'Upload_File'

Hi,
I'm doing trailhead challenge, and get some error, do you know how to fix this ?
Here's the challenge
Challenge Requirements:
Create a flow:
Name: New Lead
Type: Screen Flow
In the flow, add a screen with these required screen fields.
Last Name
Company Name
In the flow, create a lead record.
Use the screen fields to set the lead’s Last Name and Company.
Store the lead’s ID in a Text variable called leadId.
In the flow, add another screen with a Lightning component screen field.
Name the field Upload_File
Choose the forceContent:fileUpload Lightning component.
Use the leadId variable to set the component's Related Record ID attribute.
Activate the New Lead flow.
Create a new Lightning page:
Type: Home page
Label: Process Automation Home
In Process Automation Home, add a Flow component that references the New Lead flow.
Activate the page and set it as the default Home page.

And i get this error :
Can't find the forceContent:fileUpload Lightning component in the 'New Lead' flow. Make sure the field’s unique name is 'Upload_File'

here's my work, i already change the name of field into "Upload_File" but it can't
User-added image

help me to fix this. thank you
Best Answer chosen by Satria Akbar Nugroho
Satria Akbar NugrohoSatria Akbar Nugroho
Hi actually i've found the answer, so first what you change is name of the screen into anyname then unique name for the field same as on the challenge "Upload_File"

All Answers

Ajay K DubediAjay K Dubedi
Hi Satria

Please refer the statement given by trailhead team from below link.

https://developer.salesforce.com/forums#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=9060G0000005XSiQAM

Sorry for the trouble. We investigated and discovered the challenge checker is looking for the screen name to be Upload_Files rather than the lightning component field name. 

We will get this resolved in our next release. In the meantime, if you update the second screen name to Upload_Files you should be able to pass.

This knowledge article walks you through it:

https://force.desk.com/customer/portal/articles/2932027-lightning-flow-workaround-for-challenge-guide-users-through-your-business-processes-with-cloud-flow-designer?b_id=13478

Please let me know if you have any query and make it Best Answer if it helps.

Thanks,
Ajay Dubedi
Satria Akbar NugrohoSatria Akbar Nugroho
@ajay thanks for your information but i already tried and still got same error

User-added image
Satria Akbar NugrohoSatria Akbar Nugroho
anybody can pass this challenge ?????????/
Ajay K DubediAjay K Dubedi
Hi Satria,

Please follow these steps, hope these steps resolve your problem.

1. Search for flow in Quick Find and then click on new flow.
2. Drag and Drop Screen to the Canvas Screen.
3. Give any name of your choice to Screen and then click on Add a Field Tab, select textbox twice one for the Last Name, Company Name.
4. Click on Field Settings tab and give label as Last Name and Company Name and click a Required checkbox.
5. Click Ok.
6. Now Drag and drop Record Create, give an appropriate name, and Select "Lead" as an object.
    For Fields, search for LastName and for value click on Screen Input Field Values and select the Last Name.
    Similarly for Company Name.
7. Click on (+) on Screen as to mark it as start and connect 'screen' with 'create record' by dragging the connector.
8. Now Save the Flow with New Lead and type Flow and activate it. 
9. Now for the last step, search for Lightning App Builder in Quick Find, and on clicking New App, select Home Page, then give a name as "Process Automation Home", click next and then click on "Clone Salesforce Default Page", then Finish.
                
10. Drage and drop "Flow"  from Standard Object to the Canvas.
11. Click Save and Activate.

12. If it is not done Challenge then create new Trailhead Playground and do all the following step.

Please let me know if you have any query.

Thanks,
Ajay Dubedi
Satria Akbar NugrohoSatria Akbar Nugroho
Hi actually i've found the answer, so first what you change is name of the screen into anyname then unique name for the field same as on the challenge "Upload_File"
This was selected as the best answer
Alicia LuiAlicia Lui
Hi Ajay,
It didnt work still comes back with a 
Can't find the forceContent:fileUpload Lightning component in the 'New Lead' flow. Make sure the field’s unique name is 'Upload_File'
Preetam Dubey 23Preetam Dubey 23
last screen name :

User-added image


Choose lightning component :

User-added image

lightning component name :

User-added image

overall:
User-added image


MARK IT BEST IF YOU LIKE IT