jhegele / TabStein

Seamless integration between Tableau Prep Builder and Einstein Discovery's predictive capabilities!
https://jhegele.github.io/TabStein/
2 stars 0 forks source link

Issue when Running TabPy Script #7

Closed nicolaijohnson closed 4 years ago

nicolaijohnson commented 4 years ago

I got to the step of running the Einstein script, but ran into an issue. Here's the error message from the terminal: TypeError : list indices must be integers or slices, not str I set my predicted score field as a number (decimal), so not sure why I'm getting an error regarding string. Any ideas on how I can solve this?

jhegele commented 4 years ago

This is likely because the chunk size is set too high. I set the default to be 2,000 as that never gave me any issues during development but, per the Einstein Discovery API Documentation the actual limit is 200 rows per request. I'm still unsure why it worked for me so many times during development but my team and I saw this exact error and reducing the chunk size to 200 or lower corrected it for us. Let me know what you find!

nicolaijohnson commented 4 years ago

This solved the issue! Was able to score all the records in my dataset. Thanks for the help.

By the way, what you built is super powerful - both TabStein and Einstein Scenarios. I work for a Salesforce SI that specializes in Einstein implementations. We just became Tableau partners, I've already used Einstein Scenarios on one project and countless pre-sales engagements. Customer is now interested to auto-score records weekly, TabStein will help with that!

jhegele commented 4 years ago

Thanks @nicolaijohnson! Really glad that you've found these useful! I'm going to close this issue but let me know if anything else pops up.