Error in integration with spreadsheet