Getting this following error while running the flow. Its working in dev, but not in production.
We can't save this record because the “flow name” process failed. Give your Salesforce admin these details. <b>An unhandled fault has occurred in this flow</b> An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Error ID: 181343362-65539 (-1338048236) contact your system administrator for more information. Error ID: 181343362-65539 (-1338048236)
It's because of large number of records in the Object. It has 1.5 million records. If your object has more than 200k records it needs indexing.
Check out these links below:
- https://developer.salesforce.com/docs/atlas.en-us.salesforce_large_data_volumes_bp.meta/salesforce_large_data_volumes_bp/ldv_deployments_infrastructure_indexes.htm
- https://trailhead.salesforce.com/en/trailblazer-community/feed/0D54S00000A8JdySAF
You can contact Salesforce support and ask them to index the filed that's used in the query/flow and they will custom index it for you.