Data table error 400

Hi Team,

I am trying the Data table. I am trying to add and get data from the table.I followed the steps given in the document yet I am getting error.

Please guide me if I am wrong.
Thank u.

Hi @meem.khan,

The dataService “Test” only works in case of Static data. When we provide context values, the data will not be available without invoking a dialog flow. Hence, we receive a 400 error as the values are not present to test the insertion.

The dataService “Test” will not work with Dynamic data now.

Regards,
Yoga Ramya

Ok thank you @yogaramya.mendu :smile:

Hi @yogaramya.mendu, I am trying to add data in a data table but keeps giving me an error even though I had tested it with static data it does not help me. Also not able to retrieve the details also from the table.
How do we get to know whether the data that we have inserted into the table has been inserted or not successfully?
Please help me

1 Like

Hi @aditya.singhania,

Please let us know if you have followed the below steps to add data into data-table:

https://developer.kore.ai/docs/bots/advanced-topics/data-as-a-service/#Add_Data

Also, kindly send us the screenshots of your configuration.

Regards,
Yoga Ramya

How can I fetch data from data table depending on user input? Can you help on this?

@kartik.chakkarwar1,

You can fetch data by filtering it through a value from the context.

You will have the user input in the context object and that context value can be passed to the filter criteria.

https://developer.kore.ai/docs/bots/advanced-topics/data-as-a-service/#Get_Data

Also, please refer the link regarding context object and variables

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/context-object/

https://developer.kore.ai/docs/bots/bot-builder-tool/dialog-task/using-session-and-context-variables-in-tasks/

Let us know if you need any further clarification.

Regards,
Yoga Ramya

Thanks @yogaramya.mendu it’s working. I have another doubt. I am working for a client and in that have a requirement regarding the faq. so here is the process:
1)Welcome dialog task is trigger once user is connected.
2)user will authenticate
3) user will ask question regarding sales.
4)we have 40 faq in KG .the bot will search user question in kg if found then will answer the question otherwise raise service now ticket.
so my question is how access user question and store in a variable beacuse we have to raised a ticket depending upon user question.please provide some solution for this.

I’m having the same problem.