Found the culprit for the com error between Expedient and FOAM, moving on to debugging api method calls one by one