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
Amit Visapurkar 5Amit Visapurkar 5 

Getting the below error

Insert failed. First exception on row 0; first error: INVALID_CROSS_REFERENCE_KEY, invalid cross reference id: []

User-added image

User-added image

When I click on save I get the above mentioned error. This is a custom process for adding products to order. Its urgent
Nayana KNayana K
From the error message it seems you are supplying wrong SF Id or providing SF Id of some other object , Please make sure your are assigning proper object's SF Id in code.