subflow have a Record variable which is "Available for output" and its API name is same as the API name of subflow in Parent flow
Salesforce says this is fixed.
Summary
if subflow have a Record variable which is "Available for output" and its API name is same as the API name of subflow in Parent flow
flow fails with
Cause0: java.lang.ClassCastException: class moduleapi.interaction.FlowMap cannot be cast to class common.apex.runtime.SObjectRow (moduleapi.interaction.FlowMap and common.apex.runtime.SObjectRow are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @15723761)
flow fails with
Cause0: java.lang.ClassCastException: class moduleapi.interaction.FlowMap cannot be cast to class common.apex.runtime.SObjectRow (moduleapi.interaction.FlowMap and common.apex.runtime.SObjectRow are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @15723761)
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Deployed with 4 reports
Nov 30, 2026
Also open in Lightning Flow
Flow error emails are sent even when using fault connectors
In ReviewPlatform / Lightning FlowWinter '22Reported Apr 7, 2022754 reports754reports
Error on opening Update Records element which is configured on Custom Object with Lookup relationship to Standard Object
In ReviewPlatform / Lightning FlowWinter '23Reported Oct 11, 2022355 reports355reports
Deletion of flow metadata through destructive changes not supported
In ReviewPlatform / Lightning FlowWinter '22Reported Feb 7, 2022215 reports215reports
Opportunity Contact Role record not getting selected in Flow debug
In ReviewPlatform / Lightning FlowSpring '22Reported Jun 16, 2022209 reports209reports