we created 3 custom columns in the database manually using the alter table command rather than let them get created by new sandbox > Form Designer > Catalog.
Now even after adding the three UDFs from Form Designer > Catalog, and adding those UDFs to the cart page in the catalog, we see that data is not reflected from database, for the those three fields in the card details page.
There should be a file in the MDS repository that contains the metadata for the Catalog object. Remove the values that reflect the fields you don’t want anymore and also drop the columns from the catalog database table. Reimport your file for the catalog object and that should solve the issue when you go to create a new UDF. You can also check the CatalogAM.xml file that gets generated with a new sandbox and remove references.
If you just made the change, you can rollback your sandbox changes through the enterprise manager and then you would just need to drop the columns and make the first change I mentioned.