# Cannot create a component as it is not registered with a factory

**URL:** <https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [March 21, 2012, 9:53am UTC](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842 "2012-03-21T09:53:29Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![suyog](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/suyog/32/2132_2.png) [@suyog](https://verificationacademy.com/forums/u/suyog)\
**Post date:** [May 19, 2014, 1:49pm UTC](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842/11 "2014-05-19T13:49:50Z")

</div>

_In reply to [cgales](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842/10):_

I fixed this…  
Actually the issue was uvmgen script generates some ifdefs automatically which was skipping the code of interest(factory registration).  
Chagned the ifdefs and it worked.  
Thanks,  
Suyog

---

_[View the full topic](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842)._
