{"id":1089,"date":"2022-07-30T12:26:52","date_gmt":"2022-07-30T10:26:52","guid":{"rendered":"https:\/\/www.gerjon.com\/?p=1089"},"modified":"2022-07-30T13:54:27","modified_gmt":"2022-07-30T11:54:27","slug":"error-creating-first-bot-power-virtual-agents-in-trial-environment","status":"publish","type":"post","link":"https:\/\/www.gerjon.com\/?p=1089","title":{"rendered":"Error creating first bot (Power virtual agents) in trial environment"},"content":{"rendered":"\n<p>For a certification I&#8217;m trying to achieve, I was playing around with AI Chatbots to see how they work. A colleague pointed me to a nice walkthrough by Microsoft on how to create a basic chatbot: <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/nl-nl\/learn\/modules\/how-build-basic-chatbot\/\" target=\"_blank\">https:\/\/docs.microsoft.com\/nl-nl\/learn\/modules\/how-build-basic-chatbot\/<\/a>.<\/p>\n\n\n\n<p>After starting the tutorial you have to set up Power Virtual Agents. That works by browsing to this URL: <a rel=\"noreferrer noopener\" href=\"https:\/\/aka.ms\/TryPVA\" target=\"_blank\">https:\/\/aka.ms\/TryPVA<\/a> and logging in with your Azure tenant username\/password. Then the trial should then create a bot after filling out a a bit of information<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"594\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?resize=878%2C594&#038;ssl=1\" alt=\"\" class=\"wp-image-1095\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?w=878&amp;ssl=1 878w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?resize=300%2C203&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?resize=768%2C520&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/create-new-bot-1.jpg?resize=443%2C300&amp;ssl=1 443w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/a><\/figure>\n\n\n\n<p> but in my case it gave an error: We ran into a problem creating your bot!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"599\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?resize=872%2C599&#038;ssl=1\" alt=\"\" class=\"wp-image-1096\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?w=872&amp;ssl=1 872w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?resize=300%2C206&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?resize=768%2C528&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/chatbot-problem-1.jpg?resize=437%2C300&amp;ssl=1 437w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/a><\/figure>\n\n\n\n<p>The reason behind the error is there needs to be a database deployed to host the information regarding the chatbots but this isn&#8217;t created during the setup wizard. So there is a small catch22 there :-). Luckily there is a solution&#8230; <\/p>\n\n\n\n<p>Log on to: <a rel=\"noreferrer noopener\" href=\"https:\/\/admin.powerplatform.microsoft.com\/\" target=\"_blank\">https:\/\/admin.powerplatform.microsoft.com\/<\/a> and click on environments. Select your environment and click on it. You should see a screen similar to this as you can see the database is not created and you can create it here by clicking add database<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"381\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase-1024x419.jpg?resize=932%2C381&#038;ssl=1\" alt=\"\" class=\"wp-image-1099\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?resize=1024%2C419&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?resize=768%2C314&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?resize=1536%2C628&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?resize=527%2C215&amp;ssl=1 527w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?w=1920&amp;ssl=1 1920w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/PPadmincenterdatabase.jpg?w=1864 1864w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/a><\/figure>\n\n\n\n<p>After clicking on add database you get a screen with some details regarding the setup of the database<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/databasesetup.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"332\" height=\"508\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/databasesetup.jpg?resize=332%2C508&#038;ssl=1\" alt=\"\" class=\"wp-image-1100\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/databasesetup.jpg?w=332&amp;ssl=1 332w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/databasesetup.jpg?resize=196%2C300&amp;ssl=1 196w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/a><figcaption>For now leave the default and click add. It will then create the database and you can see the state switching to preparing instance.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"932\" height=\"185\" src=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA-1024x203.jpg?resize=932%2C185&#038;ssl=1\" alt=\"\" class=\"wp-image-1101\" srcset=\"https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?resize=1024%2C203&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?resize=300%2C59&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?resize=768%2C152&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?resize=1536%2C304&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?resize=527%2C104&amp;ssl=1 527w, https:\/\/i0.wp.com\/www.gerjon.com\/wp-content\/uploads\/2022\/07\/perparinginstancePPA.jpg?w=1660&amp;ssl=1 1660w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/a><\/figure>\n\n\n\n<p>After the state is changed to ready you can run the wizard and the chatbot should be created \ud83d\ude42 Hope this helps someone as I scratched my head to fix this for a bit!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a certification I&#8217;m trying to achieve, I was playing around with AI Chatbots to see how they work. A colleague pointed me to a nice walkthrough by Microsoft on how to create a basic &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[32,31],"tags":[],"class_list":["post-1089","post","type-post","status-publish","format-standard","hentry","category-ai","category-powerapps"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p59CpB-hz","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1089"}],"version-history":[{"count":6,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions"}],"predecessor-version":[{"id":1103,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions\/1103"}],"wp:attachment":[{"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gerjon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}