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
Ashish Nag KAshish Nag K 

Challenge Not yet complete... here's what's wrong: There was an unexpected error in your org

For  Superbadge
Lightning Experience Specialist got stuck in Automate the creation of fulfillments:-


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.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Fulfillment Creation” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Related To ID: id value of incorrect type: 0036F00002qtGtxQAE. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1593817222-284171 (2129359818): []

Got this email :-


Error element myRule_1_A4 (FlowRecordCreate).
This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Related To ID: id value of incorrect type: 0036F00002qtGtxQAE. You can look up ExceptionCode values in the SOAP API Developer Guide.

Flow Details
Flow Name: Fulfillment_Creation
Type: Record Change Process
Version: 10
Status: Active
Org: Absyz (00D6F000001GbuR)

Flow Interview Details
Interview Label: Fulfillment_Creation-10_InterviewLabel
Current User: Ashish Nag K (0056F00000BvQtt)
Start time: 11/27/2018 5:20 AM
Duration: 0 seconds

How the Interview Started
Ashish Nag K (0056F00000BvQtt) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = OpportunityLineItem (00k6F0000142A4rQAE)

ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "11/27/2018 5:20 AM"

DECISION: myPreWaitDecision_myWait_myRule_1
Executed this outcome: myPreWaitRule_myWait_myRule_1
Outcome conditions: 
1. {!myVariable_current.Opportunity.StageName} (New) Does not equal Cancelled
2. {!myVariable_current.Fulfillment_Created__c} (false) Equals false
Logic: All conditions must be true (AND)

DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: 
1. {!myVariable_current.Opportunity.StageName} (New) Does not equal Cancelled
2. {!myVariable_current.Fulfillment_Created__c} (false) Equals false
Logic: All conditions must be true (AND)

RECORD CREATE: myRule_1_A1
Create one Fulfillment__c record where:
AdventurePackageId__c = {!myVariable_current.Id} (00k6F0000142A4rQAE)
Adventure_Package_Cost__c = {!myVariable_current.TotalPrice} (1)
Adventure__c = {!myVariable_current.Product2.Id} (01t6F00000ABhpEQAT)
Expedition_Leader__c = {!myVariable_current.Product2.Expedition_Leader__c} (null)
Explorer__c = {!myVariable_current.Explorer__c} (0036F00002qtGtxQAE)
Name = {!formula_2_myRule_1_A1_5299346317} (Lemons00k6F0000142A4rQAE)
Opportunity__c = {!myVariable_current.OpportunityId} (0066F00000x64XSQAY)
Schedule_Date__c = {!myVariable_current.ServiceDate} (January 1, 2050)
Status__c = New
Result
A record is ready to be created when the next Screen or Wait element is executed or when the interview finishes.

RECORD UPDATE: myRule_1_A2
Find all OpportunityLineItem records where:
Id Equals {!myVariable_current.Id} (00k6F0000142A4rQAE)
Update the records’ field values.
Fulfillment_Created__c = true
Result
All records that meet the filter criteria are ready to be updated when the next Screen or Wait element is executed or when the interview finishes.

RECORD UPDATE: myRule_1_A3
Find all Opportunity records where:
Id Equals {!myVariable_current.OpportunityId} (0066F00000x64XSQAY)
Update the records’ field values.
Needs_Insurance__c = {!myVariable_current.Product2.Needs_Insurance__c} (false)
Needs_Waiver__c = {!myVariable_current.Product2.Needs_Waiver__c} (false)
Result
All records that meet the filter criteria are ready to be updated when the next Screen or Wait element is executed or when the interview finishes.

RECORD CREATE: myRule_1_A4
Create one Task record where:
IsReminderSet = true
OwnerId = {!myVariable_current.Opportunity.Owner.Id} (0056F00000BvQttQAF)
Priority = Normal
Status = Not Started
Subject = Hello
WhatId = {!myVariable_current.Explorer__c} (0036F00002qtGtxQAE)
Result
Failed to create record.


 
SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below link for similar discussion.

https://developer.salesforce.com/forums/?id=906F0000000AzR2IAK
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya