Invalid "Opportunity Id" on order page. URL No Longer Exists

AR: Magento Admin is able to provide an invalid "Opportunity Id" on the order page. No validation for the "Opportunity Id" field

 

Step to reproduce

  1. Go to Magento Frontend and place order

  2. Go to Admin panel - Sales - Orders - open created order

  3. Select the "Salesforce" tab and check "Opportunity Id" field is filled

  4. Change "Opportunity Id" and click the "Save and Sync Order" button

  5. Click the "View in Salesforce" link to view the new Salesforce Opportunity page

Note1: "URL No Longer Exists" page opens

 

Our module does not have validation for manually provided Invalid "Opportunity Id"