FlatFilers / platform-sdk-starter

Basic starter for platform sdk
5 stars 23 forks source link

Importing sample file produces error 'toLowerCase is not a function' #96

Closed ashleygmulligan2 closed 1 year ago

ashleygmulligan2 commented 1 year ago

To reproduce:

Initialize a new project following the instructions on this page: https://flatfile.com/docs/get-started/quickstart/#initialize-a-project

Using the command npx flatfile publish ./examples/workbooks/FullExample.ts to publish this example workbook.

Import the employees_sample.csv against the Employees Portal that was created.

Move from header selection to column matching and see it just hangs, and this error is produced in the console:

Image

Reproduce Steps:

  1. Create a new set of access key + secret key
  2. Use the offered npx flatfile init command with included key and secret to download and install the platform SDK starter.
  3. cd into the project
  4. use the suggested command npx flatfile publish ./examples/workbooks/FullExample.ts to deploy the example workbook
  5. upload the employees_sample.csv file that comes in the project against the deployed Portal from the last step.
  6. Confirm header selection, then review developer console.

I've tested with various files and portals and this only seems to be happening with a combination of this file and this sheet. I can import this file against a different sheet/portal without an error, and I can import other sheets against this sheet without an error. I'm trying to recreate the file to provide this prospect with something to test but I haven't been able to get something working

To try to fix this file

This will be an error anyone testing out the platform SDK will encounter. Several have reported already.

alexhollenbeck commented 1 year ago

Fixed by https://github.com/FlatFilers/platform-sdk-mono/pull/297 and https://github.com/FlatFilers/platform-sdk-starter/pull/98. Update existing projects to @flatfile/configure 0.5.13 or later to get the fix. New projects from npx flatfile init should have the fix.