title: Power BI Embedded Analytics Client API: "FailedToValidateDataRole" when calling visual.AddDataField()
body: <p>I am attempting to add data to a blank Visual using Power BI Embedded Analytics Client API. The visual is type &quot;card&quot;.</p>
  <p>I am calling <code>visual.AddDataField(&quot;Fields&quot;, ...)</code> in my JavaScript code</p>
  <p>This produces the following error:</p>
  <p><a href="https://i.stack.imgur.com/9VuSC.png" rel="nofollow noreferrer">FailedToValidateErrorRole Screen shot</a></p>
  <p>Is <em><strong>Fields</strong></em> the correct first parameter here? This is the name of the field when using PowerBI itself:</p>
  <p><a href="https://i.stack.imgur.com/lcyph.png" rel="nofollow noreferrer">Power BI card example screen shot</a></p>