In the developer environment, I had to cast everything to Int32. With a really large max_partition_length was also really large, it resulted in a potential for overflow error. Working with Int64 might fix it.
OpenDPException:
MakeTransformation("potential for overflow when computing function")
During handling of the above exception, another exception occurred:
They key action-item for this issue is to update the error message to be more descriptive about how to fix the problem. We'll have to raise an error, but the error should point users in a direction to fix it.
In the developer environment, I had to cast everything to Int32. With a really large max_partition_length was also really large, it resulted in a potential for overflow error. Working with Int64 might fix it.
Run this to reproduce the error