
Sometimes, we have left over data on the MIDAP details section that cant be recalculated, to fix this we need to disable and enable the MIDAP in the application settings in these steps:
Disable the Database settings in the devtool (Via DB or Via the DB settings in Devtools)
Database:
Update DatabaseSettings set PropertyValue = 0 where PropertyName = 'MIDAPEnabled'
Go to: https://ims-miro-prod.cenosco.software/#devtools/databasesettings
Edit the Property value of MIDAPEnabled to 0
Run the Following script for your specific Circuit that needs recalculation:
UPDATE ComponentAndCircuit SET MIDAPEnabled = 0 WHERE ComponentAndCircuitId = #####
Recalculate your Circuit in the Circuit details screen. (Do not recalculate from S-IDAP or M-IDAP)

After recalculation run the following script with your ComponentAndCircuitID:
UPDATE ComponentAndCircuit SET MIDAPEnabled = 1 WHERE ComponentAndCircuitId = #####
Recalculate the Circuit again.
Enable the Database settings in the devtool (Via DB or Via the DB settings in Devtools)
Database:
Update DatabaseSettings set PropertyValue = 1 where PropertyName = 'MIDAPEnabled'
Go to: https://ims-miro-prod.cenosco.software/#devtools/databasesettings
Edit the Property value of MIDAPEnabled to 1