What module are you using? Is it possible there’s an update available for it already?
Here’s the documentation about that (or maybe a similar) method deprecation:
https://docs.mendix.com/refguide7/moving-from-6-to-7#6-4-removed-data-storage-functionality
It says to use this instead:
getValue(context, 0)