<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to read message from Genie Conversation API in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/unable-to-read-message-from-genie-conversation-api/m-p/118734#M877</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am facing issue in getting the message details from the genie conversation API. I have created the conversation, which returns the message ID and conversation ID. But I am unable to see the message. I am getting error, when hitting the&amp;nbsp;&lt;SPAN&gt;Get conversation message&amp;nbsp;&lt;/SPAN&gt;API. Request details below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request:&lt;BR /&gt;&lt;SPAN&gt;curl --request GET \ --url https://&amp;lt;instance-url&amp;gt;/api/2.0/genie/spaces/01f02373ddca138c8fba681fbdbc6048/conversations/01f02d59328d15a0bff50c404a402104/messages/01f02d59329e1cfd994ada581f5a90d1 \ --header 'authorization: Bearer &amp;lt;redacted&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Response:&lt;BR /&gt;{&lt;BR /&gt;"id": "01f02d59329e1cfd994ada581f5a90d1",&lt;BR /&gt;"space_id": "01f02373ddca138c8fba681fbdbc6048",&lt;BR /&gt;"conversation_id": "01f02d59328d15a0bff50c404a402104",&lt;BR /&gt;"user_id": 4005002501632047,&lt;BR /&gt;"created_timestamp": 1746852157309,&lt;BR /&gt;"last_updated_timestamp": 1746852201368,&lt;BR /&gt;"status": "FAILED",&lt;BR /&gt;"content": "Give me the top five open opportunities from the Opportunity table ",&lt;BR /&gt;"error": {&lt;BR /&gt;"error": "INTERNAL_ERROR: AI service did not respond with a valid answer. Message-ID: 01f02d59329e1cfd994ada581f5a90d1. Code: 22.",&lt;BR /&gt;"type": "FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"&lt;BR /&gt;},&lt;BR /&gt;"auto_regenerate_count": 0,&lt;BR /&gt;"message_id": "01f02d59329e1cfd994ada581f5a90d1"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong? Any suggestions will be helpful.&lt;/P&gt;</description>
    <pubDate>Sat, 10 May 2025 04:58:50 GMT</pubDate>
    <dc:creator>RitikaKulshrest</dc:creator>
    <dc:date>2025-05-10T04:58:50Z</dc:date>
    <item>
      <title>Unable to read message from Genie Conversation API</title>
      <link>https://community.databricks.com/t5/generative-ai/unable-to-read-message-from-genie-conversation-api/m-p/118734#M877</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am facing issue in getting the message details from the genie conversation API. I have created the conversation, which returns the message ID and conversation ID. But I am unable to see the message. I am getting error, when hitting the&amp;nbsp;&lt;SPAN&gt;Get conversation message&amp;nbsp;&lt;/SPAN&gt;API. Request details below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request:&lt;BR /&gt;&lt;SPAN&gt;curl --request GET \ --url https://&amp;lt;instance-url&amp;gt;/api/2.0/genie/spaces/01f02373ddca138c8fba681fbdbc6048/conversations/01f02d59328d15a0bff50c404a402104/messages/01f02d59329e1cfd994ada581f5a90d1 \ --header 'authorization: Bearer &amp;lt;redacted&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Response:&lt;BR /&gt;{&lt;BR /&gt;"id": "01f02d59329e1cfd994ada581f5a90d1",&lt;BR /&gt;"space_id": "01f02373ddca138c8fba681fbdbc6048",&lt;BR /&gt;"conversation_id": "01f02d59328d15a0bff50c404a402104",&lt;BR /&gt;"user_id": 4005002501632047,&lt;BR /&gt;"created_timestamp": 1746852157309,&lt;BR /&gt;"last_updated_timestamp": 1746852201368,&lt;BR /&gt;"status": "FAILED",&lt;BR /&gt;"content": "Give me the top five open opportunities from the Opportunity table ",&lt;BR /&gt;"error": {&lt;BR /&gt;"error": "INTERNAL_ERROR: AI service did not respond with a valid answer. Message-ID: 01f02d59329e1cfd994ada581f5a90d1. Code: 22.",&lt;BR /&gt;"type": "FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"&lt;BR /&gt;},&lt;BR /&gt;"auto_regenerate_count": 0,&lt;BR /&gt;"message_id": "01f02d59329e1cfd994ada581f5a90d1"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong? Any suggestions will be helpful.&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 04:58:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/unable-to-read-message-from-genie-conversation-api/m-p/118734#M877</guid>
      <dc:creator>RitikaKulshrest</dc:creator>
      <dc:date>2025-05-10T04:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to read message from Genie Conversation API</title>
      <link>https://community.databricks.com/t5/generative-ai/unable-to-read-message-from-genie-conversation-api/m-p/118763#M878</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/163976"&gt;@RitikaKulshrest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see what's happening with your Genie conversation API issue. The problem is not with your API call but with the Genie service's attempt to execute your query.&lt;BR /&gt;The response indicates that your message was received but failed to process:&lt;/P&gt;&lt;P&gt;"status": "FAILED",&lt;BR /&gt;"content": "Give me the top five open opportunities from the Opportunity table",&lt;BR /&gt;"error": {&lt;BR /&gt;"error": "INTERNAL_ERROR: AI service did not respond with a valid answer. Message-ID: 01f02d59329e1cfd994ada581f5a90d1. Code: 22.",&lt;BR /&gt;"type": "FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;This specific error (FUNCTION_ARGUMENTS_INVALID_JSON_EXCEPTION) typically occurs when:&lt;/P&gt;&lt;P&gt;-- The Genie Agent tried to execute a SQL query but encountered an issue with the function arguments formatting&lt;BR /&gt;-- The Opportunity table might not exist or have the expected schema&lt;BR /&gt;-- There might be an issue with the underlying AI service's response format.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Troubleshooting Steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Verify Table Existence&lt;/STRONG&gt; Check if the Opportunity table exists in your Databricks catalog:&lt;BR /&gt;SHOW TABLES LIKE '*opportunity*'&lt;BR /&gt;2. &lt;STRONG&gt;Test Table Acces&lt;/STRONG&gt;s&lt;BR /&gt;Try running a simple query in a notebook to confirm the table is accessible:&lt;BR /&gt;SELECT COUNT(*) FROM Opportunity.&lt;BR /&gt;3. &lt;STRONG&gt;Simplify Your Initial Query&lt;/STRONG&gt; Start with a simpler query to see if it works:&lt;BR /&gt;Show me the schema of the Opportunity table&lt;BR /&gt;Or&lt;BR /&gt;List the available tables&lt;BR /&gt;4. &lt;STRONG&gt;Check Genie Configuration&lt;/STRONG&gt; Make sure Genie has access to the catalog/schema where your Opportunity table resides.&lt;BR /&gt;5. &lt;STRONG&gt;Examine API Permissions&lt;/STRONG&gt; Verify that the bearer token you're using has the necessary permissions for both the Genie API and the underlying data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 16:07:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/unable-to-read-message-from-genie-conversation-api/m-p/118763#M878</guid>
      <dc:creator>lingareddy_Alva</dc:creator>
      <dc:date>2025-05-10T16:07:30Z</dc:date>
    </item>
  </channel>
</rss>

