Sometimes there is no id available for loading a model. If thats the case, the following code might help out. It loads a collection by an attribute like name or sku.

Afterwards, it is possible to iterate over the collection, get the id and load the model using that id.

Loading a model without using IDs
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!