You can remember the meaning of 不行 with this easy mnemonic:
No (不) one is qualified for this job, and the only person who is capable (行) of such work won't do it!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.