QSR opportunity missing parent opportunity
There are plenty errors in production about Salesforce QSR opportunity creation, due to the base(parent) opportunity is not found.
{\"message\"=>\"Any sales-assisted add on opportunity requires a parent opportunity. Please create an add on opportunity by going to the original new business opportunity the add on is based.\", \"errorCode\"=>\"FIELD_CUSTOM_VALIDATION_EXCEPTION\", \"fields\"=>[]}
Full message:
12272 07/14/00:00:00_00:59:59_S0.json:{"insertId":"9zqz62fidmggh","jsonPayload":{"class":"Salesforce::CreateOpportunityService","customer_id":352848,"data":{"amount":"857.64","arr_f rom_quote":1141.4400000000001,"close_date":"2023-07-21","name":"DILYNX SAS - QSR - 2023-07-14","qsr_notes":"https://customers.gitlab.com/admin/reconciliation/161211","qsr_status":"Pending","quote_start_date":"2023-07-14","reconciliation":{"completed_email_sent_at":null,"created_at":null,"error_message":null,"id":null,"order_id":284721,"qsr_opportun ity_id":null,"quoted_invoice_amount":"857.64","quoted_invoice_at":"2023-07-14T00:47:09.820Z","reconcile_done_at":null,"reconcile_on":"2023-07-14","skip_reason":null,"upcoming_email_sent_at":"2023-07-14T00:47:10.359Z","updated_at":null,"user_count":13},"stage_name":"6-Awaiting Signature","type":"Add-On Business"},"environment":"gprd","fqdn":"customers.gitlab.com","hostname":"10.185.6.3","message":"#<Restforce::ErrorCode::FieldCustomValidationException response={:status=>400, :headers=>{"date"=>"Fri, 14 Jul 2023 00:47: 13 GMT", "set-cookie"=>"CookieConsentPolicy=0:1; path=/; expires=Sat, 13-Jul-2024 00:47:13 GMT; Max-Age=31536000, LSKey-c$CookieConsentPolicy=0:1; path=/; expires=Sat, 13-Jul-2024 00:47:13 GMT; Max-Age=31536000, BrowserId=-SiF5SHfEe6kR6GeOtydCw; domain=.salesforce.com; path=/; expires=Sat, 13-Jul-2024 00:47:13 GMT; Max-Age=31536000", "strict-transport-security"=>"max-age=63072000; includeSubDomains", "x-content-type-options"=>"nosniff", "x-robots-tag"=>"none", "cache-control"=>"no-cache,must-revalida te,max-age=0,no-store,private", "sforce-limit-info"=>"api-usage=1206497/5900000", "content-type"=>"application/json;charset=UTF-8", "transfer-encoding"=>"chunked"}, :body=>[{"message"=>"Any sales-assisted add on opportunity requires a parent opportunity. Please create an add on opportunity by going to the original new business opportunity the add on is based.", "errorCode"=>"FIELD_CUSTOM_VALIDATION_EXCEPTION", "fields"=>[]}]}>","params":null,"path":null,"progname":null,"shard":"default","stage":"main","tier":"sv","type":"customersdot"},"labels":{"compute.googleapis.com/resource_name":"customers-02-inf-prdsub","tag":"rails.production"},"logName":"projects/gitlab-subscriptions-prod/logs/rails.production","receiveTimestamp":"2023-07-14T00:47:58.162834697Z","resource":{"labels":{"instance_id":"5461124419763837649","project_id":"gitlab-subscriptions-prod","zone":"us-east1-d"},"type":"gce_instance"},"severity":"ERROR","timestamp":"2023-07-14T00:47:15.168Z"}
This did not happen in the last 30 days though. Not sure whether it was fixed? But I did not find a Gitlab issue for it.