title: Multiple values for custom Umbraco datatype in U7
body: <p>I want multiple rows of values (more than 1 input) for a custom datatype in Umbraco 7. </p>
  
  <p>Currently, multiple rows and data are being added when saved, but after adding 5 rows I get the following error when saving:</p>
  
  <pre><code>Received an error from the server: 
  String or binary data would be truncated. The statement has been terminated.
  ...
  </code></pre>
  
  <p>I have set the manifest to expect JSON data (however it was previously undefined). </p>
  
  <p>Does anybody know what I have done wrong or how to save large amounts of data for a custom Umbraco 7 datatype?</p>
  
  <h3>Manifest</h3>
  
  <pre><code>{
    propertyEditors: [
      {
        alias: "Test",
        name: "Test",
        editor: {
          view: "~/App_Plugins/Test/test.html",
          hideLabel: false,
          valueType: "JSON"   
        }
      }
    ],
    javascript: [
      "~/App_Plugins/Test/test.controller.js"
    ] 
  }
  </code></pre>
  
  <h3>View</h3>
  
  <pre><code>...
  &lt;tbody&gt;
    &lt;tr ng-repeat="value in model.value.list"&gt;
      &lt;th&gt;{{value.name}}&lt;/th&gt;
      &lt;td&gt;{{value.size}}&lt;/td&gt;
      &lt;td&gt;{{value.weight}}&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;tfoot&gt;
    &lt;tr&gt;
      &lt;th&gt;&lt;input type="text" ng-model="addRowName" /&gt;&lt;/th&gt;
      &lt;td&gt;&lt;input type="text" ng-model="addRowSize" /&gt;&lt;/td&gt;
      &lt;td&gt;
        &lt;input type="text" ng-model="addRowWeight" /&gt;
        &lt;a ng-click="addRow()" href=""&gt;Add Row&lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tfoot&gt;
  ...
  </code></pre>
  
  <h3>JS/Controller (addRow function)</h3>
  
  <pre><code>...
  $scope.addRow = function() {
    $scope.model.value.list.push({
      name: $scope.addRowName,
      size: $scope.addRowSize,
      weight: $scope.addRowWeight
    });
  };
  ...
  </code></pre>