You saved my life. I spent one too many hours with this issue. Your solution to change the MAX value to an actual number worked and I also changed the type from NVARCHAR to just VARCHAR.