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

Lightning Experience SuperBadge Step 6 Bug?

Bug in Lightning Specialist Superbadge step 6? - Automate fulfillment cancellation actions.   
The task is when fulfillment is Cancelled, the related OpportunityLineItem unitprice (i.e., salesprice) should be same as the Fulfillment's Deposit. Simple. I manually checked this and is working fine, but when the app checks, it fails with the error : System.AssertException: Assertion Failed: Same value.  
ISSUE: Now, if I see the debug logs (captured when Salesforce trailhead checks this).  In below snippet (from debug logs) see the last 2 lines.  There is assertEquals which checks deposit and unitprice - Match.  But assertNotEqual is also checking deposit and unitPrice.  It fails here.  Both the values will be same, the assertNotEqual is failing because both the values are same!
Execute Anonymous: // make sure the deposit matches the unit price
Execute Anonymous: System.assertEquals(f1.deposit__c, oli1.unitprice); // one way in the future
Execute Anonymous: System.assertNotEquals(f2.deposit__c, oli2.unitprice); // one way in the past

How to fix this? Is this a bug?
QUick question.  How were you able to update the OLI?  The ID on the Fullfillment is a Text field so it can't be used as a lookup.
OK, I found that I can go to the Opp, and then to the OpportunityLineItems, but when I go there, I can't match the Adv Pkg ID because the Record ID is not an available field...
Anyone was able to solve this? I even tried usng the Fulfillment ID on the Opportunity line item to match with the fufillment ID and didn't work