In the case you are facing JBO-25058:(JBO-25058: Definition CountryId of type Attribute not found in CountryId)
1. Verify the bc4j.xcfg (of Application Module). Specially the value of JBO.PROJECT attribute.
2. Verify the Attribute name in your code(if you are using any java code.).