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
TitoTito 

SuperBadge: Lightning Experience Specialist (Issue in challenge #6 )

After trying around for 2 days am lost over the challenge related to 'Fulfillment Cancellation Automation' sales process. It kept giving me below error:
 
The Fulfillment Cancellation Automation process does not appear to be working properly. Make sure that a cancelled Fulfillment updates the Adventure Package correctly.
 
I decided to look with an example test data
 
Steps:
  • Added an opportunity product (alias adventure package) into an existing opportunity.
  • Upon saving, it fires creating of a fulfillment record which is fine.
However the 'FulfillmentId' field of Adventure Package shows blank. Not sure if the data model is correct as I think I've set the PB correctly but unable to find the original adventure package that triggered the creation of the fulfillment record 
 
Has anyone had any luck with this PB? Any help would be greatly appreciated. Thanks!! 
Nayana KNayana K
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000kInmIAE

Refer this thread. It may help.
TitoTito
Nayana,

Now the error took a different shape altogether.The error now is as below. I even change the strict relationship as mentioned at https://developer.salesforce.com/forums?id=906F0000000kHdlIAE

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

 
Nayana KNayana K
Check with debug log. Atleast you will get to know where it might have gone wrong. If possible, copy paste debug log content here.
TitoTito
34.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO Execute Anonymous: Contact sam = new Contact(firstname='Sam', lastname='the ninja'); Execute Anonymous: insert sam; Execute Anonymous: Opportunity opp = new Opportunity(name='Make Kite to Fly', stagename='New', closedate=date.today()); Execute Anonymous: insert opp; Execute Anonymous: // insert product Execute Anonymous: Product2 product = new Product2(name='Butterfly Net', isActive=true); Execute Anonymous: insert product; Execute Anonymous: // insert the pricebookentry Execute Anonymous: Pricebook2 stdPrice = [Select id from Pricebook2 where isStandard=true limit 1]; Execute Anonymous: PricebookEntry pbe = new PricebookEntry( IsActive = true, Product2Id = product.id, UnitPrice = 2.00, Pricebook2Id = stdPrice.Id); Execute Anonymous: insert pbe; Execute Anonymous: // create the opp line item Execute Anonymous: OpportunityLineItem oli1 = new OpportunityLineItem(OpportunityId=opp.Id, UnitPrice=2, quantity=1,pricebookentryid=pbe.Id, servicedate = date.newInstance(2050, 1, 1), explorer__c = sam.id); Execute Anonymous: OpportunityLineItem oli2 = new OpportunityLineItem(OpportunityId=opp.Id, UnitPrice=2, quantity=1,pricebookentryid=pbe.Id, servicedate = date.newInstance(2010, 1, 1), explorer__c = sam.id); Execute Anonymous: insert oli1; Execute Anonymous: insert oli2; Execute Anonymous: // this will create a fulfillment record Execute Anonymous: // find the fulfillment -- by AdventurePackageId__c which is the opp line item Execute Anonymous: Fulfillment__c f1 = [select id, deposit__c from Fulfillment__c where AdventurePackageId__c = :oli1.Id]; Execute Anonymous: Fulfillment__c f2 = [select id, deposit__c from Fulfillment__c where AdventurePackageId__c = :oli2.Id]; Execute Anonymous: // update the fulfillment and set to cancelled Execute Anonymous: f1.Status__c = 'Cancelled'; Execute Anonymous: update f1; Execute Anonymous: f2.Status__c = 'Cancelled'; Execute Anonymous: update f2; Execute Anonymous: // get the fulfillment again to check the values Execute Anonymous: oli1 = [select id, unitprice from OpportunityLineItem where Id = :oli1.Id]; Execute Anonymous: oli2 = [select id, unitprice from OpportunityLineItem where Id = :oli2.Id]; 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 Execute Anonymous: // clean up Execute Anonymous: delete opp; Execute Anonymous: delete f1; Execute Anonymous: delete f2; Execute Anonymous: delete product; Execute Anonymous: delete sam; 04:08:26.8 (8459527)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.8 (8487683)|EXECUTION_STARTED 04:08:26.8 (8493398)|CODE_UNIT_STARTED|[EXTERNAL]|execute_anonymous_apex 04:08:26.8 (8686684)|VARIABLE_SCOPE_BEGIN|[19]|f1|Fulfillment__c|true|false 04:08:26.8 (8697048)|VARIABLE_SCOPE_BEGIN|[20]|f2|Fulfillment__c|true|false 04:08:26.8 (8719076)|VARIABLE_SCOPE_BEGIN|[13]|oli1|OpportunityLineItem|true|false 04:08:26.8 (8724393)|VARIABLE_SCOPE_BEGIN|[14]|oli2|OpportunityLineItem|true|false 04:08:26.8 (8739967)|VARIABLE_SCOPE_BEGIN|[3]|opp|Opportunity|true|false 04:08:26.8 (8759150)|VARIABLE_SCOPE_BEGIN|[10]|pbe|PricebookEntry|true|false 04:08:26.8 (8788271)|VARIABLE_SCOPE_BEGIN|[6]|product|Product2|true|false 04:08:26.8 (8818270)|VARIABLE_SCOPE_BEGIN|[1]|sam|Contact|true|false 04:08:26.8 (8840941)|VARIABLE_SCOPE_BEGIN|[9]|stdPrice|Pricebook2|true|false 04:08:26.8 (8942178)|HEAP_ALLOCATE|[72]|Bytes:3 04:08:26.8 (8971722)|HEAP_ALLOCATE|[77]|Bytes:152 04:08:26.8 (8984488)|HEAP_ALLOCATE|[342]|Bytes:408 04:08:26.8 (9000415)|HEAP_ALLOCATE|[355]|Bytes:408 04:08:26.8 (9018542)|HEAP_ALLOCATE|[467]|Bytes:48 04:08:26.8 (9060545)|HEAP_ALLOCATE|[139]|Bytes:6 04:08:26.8 (9089294)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:76 04:08:26.8 (9421115)|STATEMENT_EXECUTE|[1] 04:08:26.8 (9425829)|STATEMENT_EXECUTE|[1] 04:08:26.8 (9448315)|HEAP_ALLOCATE|[1]|Bytes:4 04:08:26.8 (9539255)|HEAP_ALLOCATE|[1]|Bytes:3 04:08:26.8 (9606720)|VARIABLE_ASSIGNMENT|[1]|this.FirstName|"Sam"|0x793d70de 04:08:26.8 (9612207)|HEAP_ALLOCATE|[1]|Bytes:9 04:08:26.8 (9638322)|VARIABLE_ASSIGNMENT|[1]|this.LastName|"the ninja"|0x793d70de 04:08:26.8 (9683954)|VARIABLE_ASSIGNMENT|[1]|sam|{"FirstName":"Sam","LastName":"the ninja"}|0x793d70de 04:08:26.8 (9687625)|STATEMENT_EXECUTE|[2] 04:08:26.8 (9722599)|HEAP_ALLOCATE|[50]|Bytes:5 04:08:26.8 (9743626)|HEAP_ALLOCATE|[56]|Bytes:5 04:08:26.8 (9752990)|HEAP_ALLOCATE|[64]|Bytes:7 04:08:26.8 (9800968)|HEAP_ALLOCATE|[2]|Bytes:8 04:08:26.8 (9817251)|DML_BEGIN|[2]|Op:Insert|Type:Contact|Rows:1 04:08:26.8 (9863867)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:26.8 (107241663)|DML_END|[2] 04:08:26.8 (107279779)|STATEMENT_EXECUTE|[3] 04:08:26.8 (107310005)|HEAP_ALLOCATE|[3]|Bytes:4 04:08:26.8 (107428558)|HEAP_ALLOCATE|[3]|Bytes:16 04:08:26.8 (107517218)|VARIABLE_ASSIGNMENT|[3]|this.Name|"Make Kite to Fly"|0x464cd837 04:08:26.8 (107525856)|HEAP_ALLOCATE|[3]|Bytes:3 04:08:26.8 (107565957)|VARIABLE_ASSIGNMENT|[3]|this.StageName|"New"|0x464cd837 04:08:26.8 (107661974)|HEAP_ALLOCATE|[3]|Bytes:4 04:08:26.8 (107737622)|VARIABLE_ASSIGNMENT|[3]|this.CloseDate|"2016-08-04T00:00:00.000Z"|0x464cd837 04:08:26.8 (107816545)|VARIABLE_ASSIGNMENT|[3]|opp|{"Name":"Make Kite to Fly","StageName":"New","CloseDate":"2016-08-04T00:00:00.000Z"}|0x464cd837 04:08:26.8 (107823063)|STATEMENT_EXECUTE|[4] 04:08:26.8 (107883516)|HEAP_ALLOCATE|[4]|Bytes:8 04:08:26.8 (107903867)|DML_BEGIN|[4]|Op:Insert|Type:Opportunity|Rows:1 04:08:26.8 (107977268)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:26.8 (264632098)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Opportunity 04:08:26.8 (286948203)|WF_RULE_EVAL_BEGIN|Workflow 04:08:26.8 (286998597)|WF_CRITERIA_BEGIN|[Opportunity: Make Kite to Fly 0062800000BQP8s]|Sales_Automation30128000000NLXk|01Q280000008JOb|ON_ALL_CHANGES|0 04:08:26.8 (287085639)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:26.8 (287091594)|WF_CRITERIA_END|true 04:08:26.8 (288160100)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:26.8 (288208318)|WF_ACTION| Flow Trigger: 1; 04:08:26.8 (288213155)|WF_RULE_EVAL_END 04:08:26.8 (288839576)|WF_FLOW_ACTION_BEGIN|09L280000005d4X 04:08:26.288 (288924179)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.288 (288955502)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LaHR|30128000000NLXk 04:08:26.288 (291122564)|FLOW_CREATE_INTERVIEW_END|32839306fd3b17c669fa3d57100a156551c4964-7d87|Sales Automation 04:08:26.291 (291479521)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.291 (291499501)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:26.291 (292447686)|FLOW_START_INTERVIEW_BEGIN|32839306fd3b17c669fa3d57100a156551c4964-7d87|Sales Automation 04:08:26.291 (293365962)|FLOW_START_INTERVIEW_END|32839306fd3b17c669fa3d57100a156551c4964-7d87|Sales Automation 04:08:26.291 (418226867)|FLOW_START_INTERVIEWS_END|1 04:08:26.8 (421331346)|WF_FLOW_ACTION_END|09L280000005d4X 04:08:26.8 (421376892)|WF_RULE_EVAL_BEGIN|Workflow 04:08:26.8 (421389187)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:26.8 (421394120)|WF_ACTION| None 04:08:26.8 (421396362)|WF_RULE_EVAL_END 04:08:26.8 (421462828)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:26.8 (421468346)|CODE_UNIT_FINISHED|Workflow:Opportunity 04:08:26.8 (423529907)|DML_END|[4] 04:08:26.8 (423563739)|STATEMENT_EXECUTE|[6] 04:08:26.8 (423596150)|HEAP_ALLOCATE|[6]|Bytes:4 04:08:26.8 (423706347)|HEAP_ALLOCATE|[6]|Bytes:13 04:08:26.8 (423770376)|VARIABLE_ASSIGNMENT|[6]|this.Name|"Butterfly Net"|0x28e1dc2c 04:08:26.8 (423806232)|VARIABLE_ASSIGNMENT|[6]|this.IsActive|true|0x28e1dc2c 04:08:26.8 (423906686)|VARIABLE_ASSIGNMENT|[6]|product|{"Name":"Butterfly Net","IsActive":true}|0x28e1dc2c 04:08:26.8 (423912768)|STATEMENT_EXECUTE|[7] 04:08:26.8 (423967771)|HEAP_ALLOCATE|[7]|Bytes:8 04:08:26.8 (423989187)|DML_BEGIN|[7]|Op:Insert|Type:Product2|Rows:1 04:08:26.8 (424059434)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:26.8 (484076013)|DML_END|[7] 04:08:26.8 (484114001)|STATEMENT_EXECUTE|[9] 04:08:26.8 (484128025)|HEAP_ALLOCATE|[9]|Bytes:57 04:08:26.8 (484152510)|HEAP_ALLOCATE|[9]|Bytes:4 04:08:26.8 (484442556)|SOQL_EXECUTE_BEGIN|[9]|Aggregations:0|SELECT id FROM Pricebook2 WHERE isStandard = TRUE LIMIT 1 04:08:26.8 (488048548)|SOQL_EXECUTE_END|[9]|Rows:1 04:08:26.8 (488071495)|HEAP_ALLOCATE|[9]|Bytes:8 04:08:26.8 (488084667)|HEAP_ALLOCATE|[9]|Bytes:29 04:08:26.8 (488246079)|HEAP_ALLOCATE|[9]|Bytes:8 04:08:26.8 (488259752)|HEAP_ALLOCATE|[9]|Bytes:36 04:08:26.8 (488354161)|HEAP_ALLOCATE|[9]|Bytes:8 04:08:26.8 (488429893)|VARIABLE_ASSIGNMENT|[9]|stdPrice|{"s":1,"v":{"Id":"01s2800000AI0AxAAL"}}|0x6609cbb0 04:08:26.8 (488436966)|STATEMENT_EXECUTE|[10] 04:08:26.8 (488457429)|HEAP_ALLOCATE|[10]|Bytes:4 04:08:26.8 (488632956)|VARIABLE_ASSIGNMENT|[10]|this.IsActive|true|0x42603f40 04:08:26.8 (488715084)|VARIABLE_ASSIGNMENT|[10]|this.Product2Id|"01t28000001p1X2AAI"|0x42603f40 04:08:26.8 (488724053)|HEAP_ALLOCATE|[10]|Bytes:4 04:08:26.8 (488779178)|HEAP_ALLOCATE|[10]|Bytes:28 04:08:26.8 (488832019)|VARIABLE_ASSIGNMENT|[10]|this.UnitPrice|2.00|0x42603f40 04:08:26.8 (488916583)|VARIABLE_ASSIGNMENT|[10]|this.Pricebook2Id|"01s2800000AI0AxAAL"|0x42603f40 04:08:26.8 (488981290)|VARIABLE_ASSIGNMENT|[10]|pbe|{"IsActive":true,"Product2Id":"01t28000001p1X2AAI","UnitPrice":2.00,"Pricebook2Id":"01s2800000AI0AxAAL"}|0x42603f40 04:08:26.8 (488987822)|STATEMENT_EXECUTE|[11] 04:08:26.8 (489031721)|HEAP_ALLOCATE|[11]|Bytes:8 04:08:26.8 (489053364)|DML_BEGIN|[11]|Op:Insert|Type:PricebookEntry|Rows:1 04:08:26.8 (489102244)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:26.8 (566007837)|DML_END|[11] 04:08:26.8 (566042144)|STATEMENT_EXECUTE|[13] 04:08:26.8 (566070857)|HEAP_ALLOCATE|[13]|Bytes:4 04:08:26.8 (566279561)|VARIABLE_ASSIGNMENT|[13]|this.OpportunityId|"0062800000BQP8sAAH"|0x613b24f2 04:08:26.8 (566337413)|HEAP_ALLOCATE|[13]|Bytes:28 04:08:26.8 (566343905)|HEAP_ALLOCATE|[13]|Bytes:28 04:08:26.8 (566394666)|VARIABLE_ASSIGNMENT|[13]|this.UnitPrice|2|0x613b24f2 04:08:26.8 (566411532)|HEAP_ALLOCATE|[13]|Bytes:28 04:08:26.8 (566416287)|HEAP_ALLOCATE|[13]|Bytes:28 04:08:26.8 (566461159)|VARIABLE_ASSIGNMENT|[13]|this.Quantity|1|0x613b24f2 04:08:26.8 (566542297)|VARIABLE_ASSIGNMENT|[13]|this.PricebookEntryId|"01u28000002n2A1AAI"|0x613b24f2 04:08:26.8 (566635592)|HEAP_ALLOCATE|[13]|Bytes:4 04:08:26.8 (566716681)|VARIABLE_ASSIGNMENT|[13]|this.ServiceDate|"2050-01-01T00:00:00.000Z"|0x613b24f2 04:08:26.8 (566876667)|VARIABLE_ASSIGNMENT|[13]|this.Explorer__c|"0032800000WgnfkAAB"|0x613b24f2 04:08:26.8 (566964055)|VARIABLE_ASSIGNMENT|[13]|oli1|{"OpportunityId":"0062800000BQP8sAAH","UnitPrice":2,"Quantity":1,"PricebookEntryId":"01u28000002n2A1AAI","ServiceDate":"2050-01-01T00:00:00.000Z","Explorer__c":"0032800000WgnfkAAB"}|0x613b24f2 04:08:26.8 (566971326)|STATEMENT_EXECUTE|[14] 04:08:26.8 (566988431)|HEAP_ALLOCATE|[14]|Bytes:4 04:08:26.8 (567050959)|VARIABLE_ASSIGNMENT|[14]|this.OpportunityId|"0062800000BQP8sAAH"|0x52828c10 04:08:26.8 (567070602)|HEAP_ALLOCATE|[14]|Bytes:28 04:08:26.8 (567075596)|HEAP_ALLOCATE|[14]|Bytes:28 04:08:26.8 (567117684)|VARIABLE_ASSIGNMENT|[14]|this.UnitPrice|2|0x52828c10 04:08:26.8 (567133395)|HEAP_ALLOCATE|[14]|Bytes:28 04:08:26.8 (567138485)|HEAP_ALLOCATE|[14]|Bytes:28 04:08:26.8 (567182061)|VARIABLE_ASSIGNMENT|[14]|this.Quantity|1|0x52828c10 04:08:26.8 (567232932)|VARIABLE_ASSIGNMENT|[14]|this.PricebookEntryId|"01u28000002n2A1AAI"|0x52828c10 04:08:26.8 (567280176)|HEAP_ALLOCATE|[14]|Bytes:4 04:08:26.8 (567330623)|VARIABLE_ASSIGNMENT|[14]|this.ServiceDate|"2010-01-01T00:00:00.000Z"|0x52828c10 04:08:26.8 (567381099)|VARIABLE_ASSIGNMENT|[14]|this.Explorer__c|"0032800000WgnfkAAB"|0x52828c10 04:08:26.8 (567418727)|VARIABLE_ASSIGNMENT|[14]|oli2|{"OpportunityId":"0062800000BQP8sAAH","UnitPrice":2,"Quantity":1,"PricebookEntryId":"01u28000002n2A1AAI","ServiceDate":"2010-01-01T00:00:00.000Z","Explorer__c":"0032800000WgnfkAAB"}|0x52828c10 04:08:26.8 (567422949)|STATEMENT_EXECUTE|[15] 04:08:26.8 (567457299)|HEAP_ALLOCATE|[15]|Bytes:8 04:08:26.8 (567476865)|DML_BEGIN|[15]|Op:Insert|Type:OpportunityLineItem|Rows:1 04:08:26.8 (567538058)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:26.8 (867450425)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:OpportunityLineItem 04:08:26.8 (895125191)|WF_RULE_EVAL_BEGIN|Workflow 04:08:26.8 (895163825)|WF_CRITERIA_BEGIN|[Adventure Package: 00k280000083zoP]|Fulfillment_Creation30128000000Ih2m|01Q280000001gOU|ON_CREATE_ONLY|0 04:08:26.8 (895287953)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:26.8 (895292041)|WF_CRITERIA_END|true 04:08:26.8 (896080904)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:26.8 (896109279)|WF_ACTION| Flow Trigger: 1; 04:08:26.8 (896112314)|WF_RULE_EVAL_END 04:08:26.8 (896180471)|WF_FLOW_ACTION_BEGIN|09L28000000MB2q 04:08:26.896 (896254677)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.896 (896293148)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LZCZ|30128000000Ih2m 04:08:26.896 (899120100)|FLOW_CREATE_INTERVIEW_END|32849306fd3b17c669fa3d57100a156551c4964-7d89|Fulfillment Creation 04:08:26.899 (899535432)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.899 (899559342)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:26.899 (900436696)|FLOW_START_INTERVIEW_BEGIN|32849306fd3b17c669fa3d57100a156551c4964-7d89|Fulfillment Creation 04:08:26.899 (903075480)|FLOW_START_INTERVIEW_END|32849306fd3b17c669fa3d57100a156551c4964-7d89|Fulfillment Creation 04:08:26.982 (982107169)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.982 (982124763)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01I28000001ZLbC 04:08:26.982 (989293075)|WF_RULE_EVAL_BEGIN|Workflow 04:08:26.982 (989326389)|WF_CRITERIA_BEGIN|[Fulfillment: Butterfly Net-00k280000083zoPAAQ a002800000i69Kl]|Fulfillment_Cancellation_Automation30128000000IhTI|01Q280000001hJh|ON_ALL_CHANGES|0 04:08:26.982 (989517391)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:26.982 (989530189)|WF_CRITERIA_END|true 04:08:26.982 (990408030)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:26.982 (990444447)|WF_ACTION| Flow Trigger: 1; 04:08:26.982 (990450467)|WF_RULE_EVAL_END 04:08:26.982 (990526657)|WF_FLOW_ACTION_BEGIN|09L28000000MBAM 04:08:26.990 (990610447)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.990 (990644513)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|300280000000Qz2|30128000000IhTI 04:08:26.990 (992466229)|FLOW_CREATE_INTERVIEW_END|32859306fd3b17c669fa3d57100a156551c4964-7d8a|Fulfillment Cancellation Automation 04:08:26.992 (992757140)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:26.992 (992776838)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:26.992 (993465026)|FLOW_START_INTERVIEW_BEGIN|32859306fd3b17c669fa3d57100a156551c4964-7d8a|Fulfillment Cancellation Automation 04:08:26.992 (994426970)|FLOW_START_INTERVIEW_END|32859306fd3b17c669fa3d57100a156551c4964-7d8a|Fulfillment Cancellation Automation 04:08:26.992 (994439355)|FLOW_START_INTERVIEWS_END|1 04:08:26.982 (995477949)|WF_FLOW_ACTION_END|09L28000000MBAM 04:08:26.982 (995564236)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:26.982 (995570777)|CODE_UNIT_FINISHED|Workflow:01I28000001ZLbC 04:08:27.100 (1100285313)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.100 (1100307914)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Opportunity 04:08:27.100 (1111651095)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.100 (1111707616)|WF_CRITERIA_BEGIN|[Opportunity: Make Kite to Fly 0062800000BQP8s]|Sales_Automation30128000000NLXk|01Q280000008JOb|ON_ALL_CHANGES|0 04:08:27.100 (1111769157)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.100 (1111774564)|WF_CRITERIA_END|true 04:08:27.100 (1111804586)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.100 (1111835086)|WF_ACTION| Flow Trigger: 1; 04:08:27.100 (1111839520)|WF_RULE_EVAL_END 04:08:27.100 (1111913013)|WF_FLOW_ACTION_BEGIN|09L280000005d4X 04:08:27.111 (1111984062)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.111 (1112014566)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LaHR|30128000000NLXk 04:08:27.111 (1112046847)|FLOW_CREATE_INTERVIEW_END|32869306fd3b17c669fa3d57100a156551c4964-7d8b|Sales Automation 04:08:27.112 (1112391353)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.112 (1112409192)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:27.112 (1112437144)|FLOW_START_INTERVIEW_BEGIN|32869306fd3b17c669fa3d57100a156551c4964-7d8b|Sales Automation 04:08:27.112 (1113175713)|FLOW_START_INTERVIEW_END|32869306fd3b17c669fa3d57100a156551c4964-7d8b|Sales Automation 04:08:27.112 (1202660308)|FLOW_START_INTERVIEWS_END|1 04:08:27.100 (1204189635)|WF_FLOW_ACTION_END|09L280000005d4X 04:08:27.100 (1204275743)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.100 (1204282405)|CODE_UNIT_FINISHED|Workflow:Opportunity 04:08:26.899 (1473520038)|FLOW_START_INTERVIEWS_END|1 04:08:27.476 (1476089617)|WF_FLOW_ACTION_END|09L28000000MB2q 04:08:27.476 (1476147793)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.476 (1476159613)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.476 (1476164883)|WF_ACTION| None 04:08:27.476 (1476167227)|WF_RULE_EVAL_END 04:08:27.476 (1476236257)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.476 (1476241521)|CODE_UNIT_FINISHED|Workflow:OpportunityLineItem 04:08:27.476 (1529257436)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Opportunity 04:08:27.476 (1539469305)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.476 (1539514244)|WF_CRITERIA_BEGIN|[Opportunity: Make Kite to Fly 0062800000BQP8s]|Sales_Automation30128000000NLXk|01Q280000008JOb|ON_ALL_CHANGES|0 04:08:27.476 (1539569350)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.476 (1539573405)|WF_CRITERIA_END|true 04:08:27.476 (1539597307)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.476 (1539621625)|WF_ACTION| Flow Trigger: 1; 04:08:27.476 (1539624514)|WF_RULE_EVAL_END 04:08:27.476 (1539695178)|WF_FLOW_ACTION_BEGIN|09L280000005d4X 04:08:27.539 (1539769833)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.539 (1539803888)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LaHR|30128000000NLXk 04:08:27.539 (1539840957)|FLOW_CREATE_INTERVIEW_END|32879306fd3b17c669fa3d57100a156551c4964-7d8d|Sales Automation 04:08:27.540 (1540211530)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.540 (1540229859)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:27.540 (1540259487)|FLOW_START_INTERVIEW_BEGIN|32879306fd3b17c669fa3d57100a156551c4964-7d8d|Sales Automation 04:08:27.540 (1541044580)|FLOW_START_INTERVIEW_END|32879306fd3b17c669fa3d57100a156551c4964-7d8d|Sales Automation 04:08:27.540 (1641491380)|FLOW_START_INTERVIEWS_END|1 04:08:27.476 (1642733976)|WF_FLOW_ACTION_END|09L280000005d4X 04:08:27.476 (1642847376)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.476 (1642855125)|CODE_UNIT_FINISHED|Workflow:Opportunity 04:08:27.476 (1644155601)|DML_END|[15] 04:08:27.476 (1644191137)|STATEMENT_EXECUTE|[16] 04:08:27.476 (1644255338)|HEAP_ALLOCATE|[16]|Bytes:8 04:08:27.476 (1644275621)|DML_BEGIN|[16]|Op:Insert|Type:OpportunityLineItem|Rows:1 04:08:27.476 (1644325979)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 04:08:27.476 (1718778628)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:OpportunityLineItem 04:08:27.476 (1737860200)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.476 (1737891411)|WF_CRITERIA_BEGIN|[Adventure Package: 00k280000083zoQ]|Fulfillment_Creation30128000000Ih2m|01Q280000001gOU|ON_CREATE_ONLY|0 04:08:27.476 (1737943080)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.476 (1737947302)|WF_CRITERIA_END|true 04:08:27.476 (1737972284)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.476 (1737996784)|WF_ACTION| Flow Trigger: 1; 04:08:27.476 (1738000114)|WF_RULE_EVAL_END 04:08:27.476 (1738065595)|WF_FLOW_ACTION_BEGIN|09L28000000MB2q 04:08:27.738 (1738134950)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.738 (1738163904)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LZCZ|30128000000Ih2m 04:08:27.738 (1738204350)|FLOW_CREATE_INTERVIEW_END|32889306fd3b17c669fa3d57100a156551c4964-7dd1|Fulfillment Creation 04:08:27.738 (1738575352)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.738 (1738593943)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:27.738 (1738623683)|FLOW_START_INTERVIEW_BEGIN|32889306fd3b17c669fa3d57100a156551c4964-7dd1|Fulfillment Creation 04:08:27.738 (1740154461)|FLOW_START_INTERVIEW_END|32889306fd3b17c669fa3d57100a156551c4964-7dd1|Fulfillment Creation 04:08:27.869 (1869254065)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.869 (1869274843)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:01I28000001ZLbC 04:08:27.869 (1875751474)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.869 (1875771277)|WF_CRITERIA_BEGIN|[Fulfillment: Butterfly Net-00k280000083zoQAAQ a002800000i69Km]|Fulfillment_Cancellation_Automation30128000000IhTI|01Q280000001hJh|ON_ALL_CHANGES|0 04:08:27.869 (1875814168)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.869 (1875817817)|WF_CRITERIA_END|true 04:08:27.869 (1875842117)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.869 (1875865502)|WF_ACTION| Flow Trigger: 1; 04:08:27.869 (1875868444)|WF_RULE_EVAL_END 04:08:27.869 (1875922560)|WF_FLOW_ACTION_BEGIN|09L28000000MBAM 04:08:27.875 (1875971752)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.875 (1875992306)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|300280000000Qz2|30128000000IhTI 04:08:27.875 (1876028519)|FLOW_CREATE_INTERVIEW_END|32899306fd3b17c669fa3d57100a156551c4964-7e14|Fulfillment Cancellation Automation 04:08:27.876 (1876343681)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.876 (1876366494)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:27.876 (1876393380)|FLOW_START_INTERVIEW_BEGIN|32899306fd3b17c669fa3d57100a156551c4964-7e14|Fulfillment Cancellation Automation 04:08:27.876 (1877377706)|FLOW_START_INTERVIEW_END|32899306fd3b17c669fa3d57100a156551c4964-7e14|Fulfillment Cancellation Automation 04:08:27.876 (1877388519)|FLOW_START_INTERVIEWS_END|1 04:08:27.869 (1878320180)|WF_FLOW_ACTION_END|09L28000000MBAM 04:08:27.869 (1878393540)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.869 (1878398777)|CODE_UNIT_FINISHED|Workflow:01I28000001ZLbC 04:08:27.984 (1984584888)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.984 (1984607275)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Opportunity 04:08:27.984 (1994315664)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.984 (1994404784)|WF_CRITERIA_BEGIN|[Opportunity: Make Kite to Fly 0062800000BQP8s]|Sales_Automation30128000000NLXk|01Q280000008JOb|ON_ALL_CHANGES|0 04:08:27.984 (1994460545)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.984 (1994464887)|WF_CRITERIA_END|true 04:08:27.984 (1994490300)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.984 (1994515162)|WF_ACTION| Flow Trigger: 1; 04:08:27.984 (1994518055)|WF_RULE_EVAL_END 04:08:27.984 (1994579319)|WF_FLOW_ACTION_BEGIN|09L280000005d4X 04:08:27.994 (1994651074)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.994 (1994681275)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LaHR|30128000000NLXk 04:08:27.994 (1994713342)|FLOW_CREATE_INTERVIEW_END|32909306fd3b17c669fa3d57100a156551c4964-7e15|Sales Automation 04:08:27.995 (1995038890)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:27.995 (1995056364)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:27.995 (1995083477)|FLOW_START_INTERVIEW_BEGIN|32909306fd3b17c669fa3d57100a156551c4964-7e15|Sales Automation 04:08:27.995 (1995819009)|FLOW_START_INTERVIEW_END|32909306fd3b17c669fa3d57100a156551c4964-7e15|Sales Automation 04:08:27.995 (2103640853)|FLOW_START_INTERVIEWS_END|1 04:08:27.984 (2104720368)|WF_FLOW_ACTION_END|09L280000005d4X 04:08:27.984 (2104834271)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.984 (2104844085)|CODE_UNIT_FINISHED|Workflow:Opportunity 04:08:27.738 (2242218367)|FLOW_START_INTERVIEWS_END|1 04:08:27.476 (2246325277)|WF_FLOW_ACTION_END|09L28000000MB2q 04:08:27.476 (2246394596)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.476 (2246410725)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.476 (2246417261)|WF_ACTION| None 04:08:27.476 (2246420889)|WF_RULE_EVAL_END 04:08:27.476 (2246505741)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.476 (2246514096)|CODE_UNIT_FINISHED|Workflow:OpportunityLineItem 04:08:27.476 (2311290602)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Opportunity 04:08:27.476 (2321797797)|WF_RULE_EVAL_BEGIN|Workflow 04:08:27.476 (2321847117)|WF_CRITERIA_BEGIN|[Opportunity: Make Kite to Fly 0062800000BQP8s]|Sales_Automation30128000000NLXk|01Q280000008JOb|ON_ALL_CHANGES|0 04:08:27.476 (2321901322)|WF_FORMULA|Formula:ENCODED:[treatNullAsNull]true|Values: 04:08:27.476 (2321906955)|WF_CRITERIA_END|true 04:08:27.476 (2321940097)|WF_SPOOL_ACTION_BEGIN|Workflow 04:08:27.476 (2321976771)|WF_ACTION| Flow Trigger: 1; 04:08:27.476 (2321982148)|WF_RULE_EVAL_END 04:08:27.476 (2322068486)|WF_FLOW_ACTION_BEGIN|09L280000005d4X 04:08:28.322 (2322163850)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:28.322 (2322198649)|FLOW_CREATE_INTERVIEW_BEGIN|00D28000001ei8e|30028000000LaHR|30128000000NLXk 04:08:28.322 (2322247580)|FLOW_CREATE_INTERVIEW_END|32919306fd3b17c669fa3d57100a156551c4964-7e16|Sales Automation 04:08:28.322 (2322609053)|USER_INFO|[EXTERNAL]|00528000004IYtR|sfsi_superbadge_les@trailhead.com|Pacific Standard Time|GMT-07:00 04:08:28.322 (2322633177)|FLOW_START_INTERVIEWS_BEGIN|1 04:08:28.322 (2322671788)|FLOW_START_INTERVIEW_BEGIN|32919306fd3b17c669fa3d57100a156551c4964-7e16|Sales Automation 04:08:28.322 (2324179884)|FLOW_START_INTERVIEW_END|32919306fd3b17c669fa3d57100a156551c4964-7e16|Sales Automation 04:08:28.322 (2397493003)|FLOW_START_INTERVIEWS_END|1 04:08:27.476 (2398709792)|WF_FLOW_ACTION_END|09L280000005d4X 04:08:27.476 (2398827389)|WF_ACTIONS_END| Flow Trigger: 1; 04:08:27.476 (2398835909)|CODE_UNIT_FINISHED|Workflow:Opportunity 04:08:27.476 (2400147169)|DML_END|[16] 04:08:27.476 (2400180007)|STATEMENT_EXECUTE|[19] 04:08:27.476 (2400192447)|HEAP_ALLOCATE|[19]|Bytes:80 04:08:27.476 (2400209554)|HEAP_ALLOCATE|[19]|Bytes:4 04:08:27.476 (2400223300)|HEAP_ALLOCATE|[19]|Bytes:7 04:08:27.476 (2400675053)|SOQL_EXECUTE_BEGIN|[19]|Aggregations:0|SELECT id, deposit__c FROM Fulfillment__c WHERE AdventurePackageId__c = :tmpVar1 04:08:27.476 (2451130262)|SOQL_EXECUTE_END|[19]|Rows:0 04:08:27.476 (2451166967)|HEAP_ALLOCATE|[19]|Bytes:4 04:08:27.476 (2451179641)|HEAP_ALLOCATE|[19]|Bytes:0 04:08:27.476 (2451273483)|HEAP_ALLOCATE|[19]|Bytes:4 04:08:27.476 (2451289346)|HEAP_ALLOCATE|[19]|Bytes:40 04:08:27.476 (2451391028)|HEAP_ALLOCATE|[19]|Bytes:46 04:08:27.476 (2451511031)|FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject AnonymousBlock: line 19, column 1 04:08:28.451 (2451558276)|CUMULATIVE_LIMIT_USAGE 04:08:28.451 (2451558276)|LIMIT_USAGE_FOR_NS|(default)| Number of SOQL queries: 11 out of 100 Number of query rows: 10 out of 50000 Number of SOSL queries: 0 out of 20 Number of DML statements: 19 out of 150 Number of DML rows: 19 out of 10000 Maximum CPU time: 0 out of 10000 Maximum heap size: 0 out of 6000000 Number of callouts: 0 out of 100 Number of Email Invocations: 0 out of 10 Number of future calls: 0 out of 50 Number of queueable jobs added to the queue: 0 out of 50 Number of Mobile Apex push calls: 0 out of 10 04:08:28.451 (2451558276)|CUMULATIVE_LIMIT_USAGE_END 04:08:27.476 (2451607528)|CODE_UNIT_FINISHED|execute_anonymous_apex 04:08:27.476 (2454125997)|EXECUTION_FINISHED
TitoTito
I wish I could attach it in some mail for you : ).
Nayana KNayana K
Seems like you have missed this condition in process builder :

Field Update Filter condition : 
Line Item ID  equals Formula [FullFillment__c].AdventurePackageId__c

Because error is in line 19.
By referring https://developer.salesforce.com/forums/ForumsMain?id=906F0000000kIudIAE thread, line 19 query is not returning record.
Nayana KNayana K
If you are still facing issue, post screenshot of process builder steps, so that I can see if you are missing anything.
TitoTito
No Nayana.I wish that was the case.That's why Iam confused
Here are the steps I have done in my PB (is Active also):

1.Process builder name: Fulfillment Cancellation Automation
2.Trigger on Fulfillment object
3.Criteria condition : Fulfillment Status=Cancelled AND Fulfillment schedule date greater than Today ()
4.Immediate action :
a)Record=[Fulfillment__c].Opportunity.OpportunityLineItems
b)Criteria for updating records= Line Item ID equals formula Fulfillment__c.AdventurePackageID__c
c)Set new field values for the records you update : Sales Price Reference Fulfillment__c.Deposit__c
 
Nayana KNayana K
Oh, even I am confused. 

While doing 'Fulfillment Creation' part, we have set AdventurePackageID = Adventure Package (Opportunity Product)'s Id. Ideally it should work.