title: Magento: Magmi Datadump API
body: <p>I'm having some problems importing custom options with the magmi datapump api. I can upload products with ease by passing the data in an array as given in magmi's example.</p>
  
  <p>However when I install the Custom Options module and enable it I receive the following error.</p>
  
  <pre><code>...
  $dp-&gt;beginImportSession("default","create");
  
  // Here we define a single "simple" item, with name, sku,price,attribute_set,store,description
  $item = array(
      'name'          =&gt; 'test a',
      'sku'           =&gt; 'testsku3',
      'price'         =&gt; '110.00',
      'attribute_set' =&gt; 'Default',
      'store'         =&gt; 'admin',
      'description'   =&gt; 'ingested with Datapump API',
      'meta_title'    =&gt; 'test meta',
      'qty'           =&gt; '1',
      'categories'    =&gt; '2',
      'weight'        =&gt; '1',
      'tax_class_id'  =&gt; '4',
      'Please enter your text:field:1:3' =&gt; ':fixed:0.5:Ref Text:35'
  );
  
  ...
  </code></pre>
  
  <p>Error returned:</p>
  
  <pre><code>Notice: Undefined index: xxx:field:1 in /var/www/vhosts/websitename.co.uk/magmi/plugins/extra/itemprocessors/customoptions/pablo_customoptions.php on line 33
  </code></pre>
  
  <p>Now this error code resolves to...</p>
  
  <pre><code>...
  public function getOptId($field)
  {
      return $this-&gt;_optids[$field];
  }
  ...
  </code></pre>
  
  <p>Does anyone have an idea as to how this can be resolved?</p>
  
  <p>Thanks! :)</p>