I already had setup candidate, competitor and existing stores and wanted to delete those and create afresh. I deleted the Candidate stores and tried to add them back but this time made the BA to create its own id. After i click finish, it throws this exception. I found that if i don't use the "create a unique id field for me" and use an in-built store id, there will not be any issues.
Error message stack:
Failed to execute StoreSetupByTableComponent
Error HRESULT E_FAIL has been returned from a call to a COM component.
--------------------------------------------------------------------------------
Last call:
at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.ExecuteASync(String Name, IVariantArray ipValues)