+ Start a Discussion
Sudhir Kumar 19Sudhir Kumar 19 

LeX superbadge challenge #4: The Fulfillment Creation process does not appear to be working properly.

LeX Superbadge Challenge 4 error

LeX superbadge challenge #4:

I followed this post https://developer.salesforce.com/forums/?id=906F0000000kEDkIAM however it doesn't seem working with me. Has anything changed lately in the requirement validation process. Appreciate your help!
Daniel Glaser 12Daniel Glaser 12
I also have the same issue. I recreated the Fulfillment Creation step by step, (NOT following the web post noted above), and it still fails. Looking at the debug log on the developer console this is what is shows:

12:59:16.1 (445883893)|CODE_UNIT_FINISHED|Workflow:Opportunity
12:59:16.1 (446487801)|DML_END|[15]
12:59:16.1 (446515576)|STATEMENT_EXECUTE|[17]
12:59:16.1 (446527196)|HEAP_ALLOCATE|[17]|Bytes:129
12:59:16.1 (446543497)|HEAP_ALLOCATE|[17]|Bytes:4
12:59:16.1 (446554068)|HEAP_ALLOCATE|[17]|Bytes:7
12:59:16.1 (446903652)|SOQL_EXECUTE_BEGIN|[17]|Aggregations:0|SELECT Product2.Needs_Insurance__c, Product2.Needs_Waiver__c, Fulfillment_Created__c FROM OpportunityLineItem WHERE Id = :tmpVar1
12:59:16.1 (452548887)|SOQL_EXECUTE_END|[17]|Rows:1
12:59:16.1 (452574467)|HEAP_ALLOCATE|[17]|Bytes:8
12:59:16.1 (452597934)|HEAP_ALLOCATE|[17]|Bytes:180
12:59:16.1 (452656504)|HEAP_ALLOCATE|[17]|Bytes:8
12:59:16.1 (452665405)|HEAP_ALLOCATE|[17]|Bytes:45
12:59:16.1 (452760227)|HEAP_ALLOCATE|[17]|Bytes:20
12:59:16.1 (452812209)|VARIABLE_ASSIGNMENT|[17]|oli|{"s":1,"v":{"Product2Id":"01t41000000SnJ5AAK","Fulfillment_Created_ (2 more) ...":false,"Id":"00k41000004HJxiAAG","Product2":{"s":2,"v":{"Id":"01t41000000SnJ5AAK","Needs_Insurance__c":false,"Needs_Waiver__c":false}}}}|0x184234ce
12:59:16.1 (452818382)|STATEMENT_EXECUTE|[19]
12:59:16.1 (452822259)|HEAP_ALLOCATE|[19]|Bytes:76
12:59:16.1 (452827169)|HEAP_ALLOCATE|[19]|Bytes:4
12:59:16.1 (453062171)|SOQL_EXECUTE_BEGIN|[19]|Aggregations:0|SELECT Needs_Insurance__c, Needs_Waiver__c FROM Product2 WHERE Id = :tmpVar1
12:59:16.1 (454695622)|SOQL_EXECUTE_END|[19]|Rows:1
12:59:16.1 (454714664)|HEAP_ALLOCATE|[19]|Bytes:8
12:59:16.1 (454726515)|HEAP_ALLOCATE|[19]|Bytes:78
12:59:16.1 (454753838)|HEAP_ALLOCATE|[19]|Bytes:8
12:59:16.1 (454761827)|HEAP_ALLOCATE|[19]|Bytes:34
12:59:16.1 (454818623)|HEAP_ALLOCATE|[19]|Bytes:16
12:59:16.1 (454842681)|VARIABLE_ASSIGNMENT|[19]|p|{"s":1,"v":{"Needs_Insurance__c":false,"Needs_Waiver__c":false,"Id":"01t41000000SnJ5AAK"}}|0x593d0eae
12:59:16.1 (454846888)|STATEMENT_EXECUTE|[21]
12:59:16.1 (454853939)|HEAP_ALLOCATE|[21]|Bytes:73
12:59:16.1 (454858778)|HEAP_ALLOCATE|[21]|Bytes:4
12:59:16.1 (455082477)|SOQL_EXECUTE_BEGIN|[21]|Aggregations:0|SELECT COUNT() FROM Fulfillment__c WHERE AdventurePackageId__c = :tmpVar1
12:59:16.1 (456988165)|SOQL_EXECUTE_END|[21]|Rows:1
12:59:16.1 (457001473)|HEAP_ALLOCATE|[21]|Bytes:4
12:59:16.1 (457048303)|STATEMENT_EXECUTE|[23]
12:59:16.1 (457166801)|EXCEPTION_THROWN|[23]|System.AssertException: Assertion Failed: Expected: true, Actual: false
12:59:16.1 (457320692)|HEAP_ALLOCATE|[23]|Bytes:51
12:59:16.1 (457396421)|FATAL_ERROR|System.AssertException: Assertion Failed: Expected: true, Actual: false

I have the Opportunity Set as :
Record: OpportunityLineitem.Opportunity ID
Field
Needs Insurance  =  [OpportunityLineItem].Product2.Needs_Insurance__c
Needs Waiver  =  [OpportunityLineItem].Product2.Needs_Waiver__c

I even tried [OpportunityLineItem].Needs_Insurance__c

None of these worked.






 
Sudhir Kumar 19Sudhir Kumar 19
@Trailhead Team  -  I wish there could be a small dedicated team to resolve trailhead related queries.  :( 
​This is helpless sometimes.
Dan Glaser 4Dan Glaser 4
I found the answers. 
FIrst I did follow 
https://developer.salesforce.com/forums/?id=906F0000000g2FbIAI

The last thing that made it work for me was under create task is
​Related to ID - reference -[OpportunityLineItem].Opportunity.Id
Naga ChokkanathanNaga Chokkanathan
Hello,

I am also facing the same problem in #4 of this superbadge. I have done all steps properly. But I am getting this error:

(In Traihead page)

There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30128000000JE1p. Contact your administrator for help.: []

(In Debug)

An error occurred at element myRule_1_A1 (FlowRecordCreate).
The flow failed to access the value for myVariable_current.Product2.Expedition_Leader__r.Id because it hasn't been set or assigned.

All my product records have the "Expedition Leader" filled properly. Not sure why this error appears. Can someone help me please? Thanks in advance