Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"You must specify a table" #68

Open
Spookytheboy opened this issue Sep 21, 2021 · 7 comments
Open

"You must specify a table" #68

Spookytheboy opened this issue Sep 21, 2021 · 7 comments

Comments

@Spookytheboy
Copy link

I've filled out my config.json file and attempting to run the script, but getting a recurring error "You must specify a table" no matter what I attempt. I've tried wrapping my table name in quotes but no dice.

e.g: node dynamoDBtoCSV.js -t "tableName" > output.csv

@npartovi
Copy link

I am also getting the same issue as above. Followed the commands on the readme and running into the same issue. Not sure why but the tableName is not being parsed through commander it seems.

@Qambar
Copy link

Qambar commented Oct 4, 2021

same

@EA-Williams
Copy link

I'm experiencing the same issue.

@EA-Williams
Copy link

EA-Williams commented Oct 12, 2021

I think one of the 4 modules it depends on (aws-sdk, commander, dynamodb-marshaler, papaparse) may have updated recently, causing incompatibilities with dynamoDBtoCSV.

I solved the issue by replacing the node_modules folder in my DynamoDBtoCSV folder with one containing older versions, sent to me by a colleague. Perhaps you could install the previous versions of these modules.

My compatible versions are:

  • aws-sdk: 2.797.0
  • commander: 6.2.0
  • dynamodb-marshaler: 2.0.0
  • papaparse: 5.3.0

Also, my colleague recommended adding "-v{}" on the end like so:

node dynamoDBtoCSV.js -t TABLE_NAME -f FILE_NAME.csv -v{}

@jvendrig
Copy link

See #66

@Exceed-Arthur
Copy link

Second the recommendation for "-v{}". No need to change the dependencies. The error can be fixed at 'config.json'. #66 actually solves it perfectly. I just copied the code of config.json from that branch and it worked. I hope anyone who encounters this issue sees #66. Should be main branch. Thank you everyone for building this program and the wonderful documentation. -random guy

@amaya-ruiz
Copy link

Hi, sorry, I don't fully understand what is necessary to do to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants