title: Getting object assignment error when attempting to create a dictionary (Robot Framework)
body: <p>I am attempting to create a dictionary based upon data in an xls spreadsheet. Below is my code. However, when performing the "set to dictionary" (last line of the code snippet below), I'm getting the following error: TypeError: 'unicode' object does not support item assignment. Any ideas as to what I'm missing?</p>
  
  <pre><code>*** Settings ***
  Library  ExcelLibrary
  Library  Collections
  
  *** Variables ***
  ${PageSheetName} =  Welcome Page
  ${WelcomeDict} =  Create Dictionary
  
  *** Test Cases ***
  Excel Sandbox Test
      Get Values from Spreadsheet
      #Print out the Dictionary
  
  *** Keywords ***
  Get Values from Spreadsheet
     # Open the file
     Open Excel Current Directory  ${Excel_File_Path}DataExtract.xls
     # Get the number of rows
     ${iTotalRows} =  Get Row Count  ${PageSheetName}
     # Loop through each row to get the data. Only need data from Columns A &amp; B
     : FOR  ${iRowNum}  IN RANGE  1  ${iTotalRows}+1
     \  ${KeyVal} =  Read Cell Data By Name  ${PageSheetName}  A${iRowNum}
     \  ${Value} =  Read Cell Data By Name  ${PageSheetName}  B${iRowNum}
     \  Create the Welcome Page Dictionary  ${KeyVal}  ${Value}
  
  Create the Welcome Page Dictionary
      [Arguments]  ${key}  ${val}
      Set To Dictionary  ${WelcomeDict}  ${key}  ${val}
  </code></pre>