# Problem with UUPS Proxy Upgrade: UUPSUnauthorizedCallContext Error When Using \`upgradeToAndCall\` in OpenZeppelin 5.0.0

**URL:** <https://forum.openzeppelin.com/t/problem-with-uups-proxy-upgrade-uupsunauthorizedcallcontext-error-when-using-upgradetoandcall-in-openzeppelin-5-0-0/39181>\
**Category:** Upgrades\
**Tags:** proxies\
**Created:** [January 10, 2024, 7:03pm UTC](https://forum.openzeppelin.com/t/problem-with-uups-proxy-upgrade-uupsunauthorizedcallcontext-error-when-using-upgradetoandcall-in-openzeppelin-5-0-0/39181 "2024-01-10T19:03:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![barakman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/barakman/32/855_2.png) [@barakman](https://forum.openzeppelin.com/u/barakman)\
**Post date:** [January 11, 2024, 2:33pm UTC](https://forum.openzeppelin.com/t/problem-with-uups-proxy-upgrade-uupsunauthorizedcallcontext-error-when-using-upgradetoandcall-in-openzeppelin-5-0-0/39181/4 "2024-01-11T14:33:13Z")

</div>

> [@new2](#):
>
> I made an update to an implementation that previously used OpenZeppelin contracts in versions 4.5.0 and 4.6.0, updating it to version 5.0.0

I'm pretty sure that this is not supported (i.e., your contract is not guaranteed to work as desired after the upgrade).

Oh, it is actually stated in [an answer given by the same user who has replied to this question earlier on](https://forum.openzeppelin.com/t/how-to-upgrade-a-contract-deployed-with-version-4-9-0-using-5-0-0-contracts/38463/2).

---

_[View the full topic](https://forum.openzeppelin.com/t/problem-with-uups-proxy-upgrade-uupsunauthorizedcallcontext-error-when-using-upgradetoandcall-in-openzeppelin-5-0-0/39181)._
