Token is not supported token

Disposable data is not supported in the FOREACH statement. Put disposable data in a nested BEGIN‑END block. You might also get this error if an array in a portable class library or a .NET Standard library for a Universal Windows Platform (UWP) app has more than three dimensions. These project types don’t support arrays with more than three dimensions.