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
Lionel KamdemLionel Kamdem 

Trailhead Superbadge: Lightning Experience Specialist (Challenge 6)

Working on Superbadge challenge, and I'm on part 6. 

Automate Fulfillment Cancellation Actions
User-added image

*Fulfillment is a custom object
*Adventure is the product object renamed 

This is the error I'm getting: 
User-added image

I believe I did everything correctly, but the error seems to be the cancelled fulfillment not updating the adventure package correctly. I believe I may not be referencing the original adventure package correctly. 

*adventure package is opportunity product renamed. 

Here is what I did:
User-added image

Please can anyone give me any insight into this. Thank you. 
Best Answer chosen by Lionel Kamdem
NagendraNagendra (Salesforce Developers) 
Hi Lionel,

Sorry for this issue you are encountering.

This one took me a while, and I had to piece together several different responses to make it work, so I'll recap it all here.

Process on the Fulfillment Object.
User-added imageCriteria:
1. [Fulfillment__c].Status__c  Equals  Picklist  Cancelled
2. [Fulfillment__c].Schedule_Date__c  Greater than  Formula  TODAY()
User-added image
IMMEDIATE ACTIONS
Record: [Fulfillment__c].Opportunity.OpportunityLineItems
Criteria for Updating Records: Updated records meet all conditions
Filter:
1. Line Item ID  Equals  Formula  [Fulfillment__c].AdventurePackageId__c
[note, I wanted to use Reference, but the AdventurePackageId field wasn't available to reference, so I used Formula]

Set new field values for the records you update:
Sales Price   Reference  [Fulfillment__c].Deposit__c
User-added image
As recommended, go to Setup > Object Manager > Adventure Package > Fields & Relationships, and edit the settings for the Explorer__c field. 
  • Uncheck the Required checkbox
  • Change "What to do if the lookup record is deleted?" to "Clear the value of this field"
User-added image

Hope this helps.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering the similar issue.

Thanks,
Nagendra

All Answers

NagendraNagendra (Salesforce Developers) 
Hi Lionel,

Sorry for this issue you are encountering.

This one took me a while, and I had to piece together several different responses to make it work, so I'll recap it all here.

Process on the Fulfillment Object.
User-added imageCriteria:
1. [Fulfillment__c].Status__c  Equals  Picklist  Cancelled
2. [Fulfillment__c].Schedule_Date__c  Greater than  Formula  TODAY()
User-added image
IMMEDIATE ACTIONS
Record: [Fulfillment__c].Opportunity.OpportunityLineItems
Criteria for Updating Records: Updated records meet all conditions
Filter:
1. Line Item ID  Equals  Formula  [Fulfillment__c].AdventurePackageId__c
[note, I wanted to use Reference, but the AdventurePackageId field wasn't available to reference, so I used Formula]

Set new field values for the records you update:
Sales Price   Reference  [Fulfillment__c].Deposit__c
User-added image
As recommended, go to Setup > Object Manager > Adventure Package > Fields & Relationships, and edit the settings for the Explorer__c field. 
  • Uncheck the Required checkbox
  • Change "What to do if the lookup record is deleted?" to "Clear the value of this field"
User-added image

Hope this helps.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering the similar issue.

Thanks,
Nagendra
This was selected as the best answer
Lionel KamdemLionel Kamdem
Thank you this is the best answer. 
Sumit Verma 33Sumit Verma 33
Thanks Nagendra for the Solution. Can you please put some brief reason behind making setting changes for Explorer__c field
Iftekhar UddinIftekhar Uddin
Hi Guys,
No one mentioned this before and I probably end up spending 20 hours on this SBadge.

=== You must have the APPROVAL PROCESS as Active
=== You must have other 2 Process Flows ACTIVE
=== Prior to press the Check Challange of Challange6 -- 
### Automate fulfillment cancellation actions 

Problem Solved: I'm still getting this error: System.QueryException: List has no rows for assignment to SObject.
Alexandre Menezes 8Alexandre Menezes 8
I'm with this error in challenge 6, I've searched the forum a lot but I didn't find a solution to my problem. Apparently my process is correct.

Ideas? Please

https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IMfeQAG
Jessica PethickJessica Pethick
Hi Nagendra, I'm getting the same error as someone else reported on Step 6: Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.QueryException: List has no rows for assignment to SObject.
My process reflects what you've shown above, and it all works when I test it, but I have no idea what this error means -- do you know what it means?
Jocelyn Cruz 8Jocelyn Cruz 8
I want to add that if you are getting this error:
User-added image

Make sure that all of the following 3 processes are ACTIVE:
User-added image
Fulfillment Cancellation Automation Process:
User-added image
Kunagu Varun Kumar SrinivasaraoKunagu Varun Kumar Srinivasarao
Guys, I'm more curious to know more about this.

Filter:
1. Line Item ID  Equals  Formula  [Fulfillment__c].AdventurePackageId__c
[note, I wanted to use Reference, but the AdventurePackageId field wasn't available to reference, so I used Formula]

Why AdventurePackageId is not available on Dropdown and why it has to be built as a Formula?
myat myatmyat myat
I am following exact steps as advised by @Nagendra but still couldn't pass it.
When I check on debug log, I found the error "Assertion Failed: Fulfillment list is empty".

Can anyone help with this?

I have been stuck with this for a couple days.

Thanks.
myat myatmyat myat
Thanks Jocelyn Cruz 8. Your post help me solved my issue.
I found that I have accidentally deleted one of the process and that made me getting error.