{"id":4738,"date":"2025-08-30T08:00:46","date_gmt":"2025-08-30T08:00:46","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4738"},"modified":"2025-08-30T08:00:46","modified_gmt":"2025-08-30T08:00:46","slug":"fixing-the-403-forbidden-error-on-account-creation-in-field-service-app","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4738","title":{"rendered":"Fixing the &#8220;403 Forbidden&#8221; Error on Account Creation in Field Service App"},"content":{"rendered":"\n<p>Recently, while working with the <strong>Field Service app<\/strong>, we ran into a strange issue. Every time we tried to <strong>create a new Account<\/strong> with address information, the system threw an error:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"338\" height=\"100\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror1.png\" alt=\"\" class=\"wp-image-4739\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror1.png 338w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror1-300x89.png 300w\" sizes=\"(max-width: 338px) 100vw, 338px\" \/><\/a><\/figure>\n\n\n\n<p>At first, this message didn\u2019t tell us much as this is generic message. A \u201c403 Forbidden\u201d usually means something is blocked or not authorized, but I was using Sys Admin role so there this was strange to me. I started troubleshooting further and found that we were only getting error when populating address details. <\/p>\n\n\n\n<p>While checking error log file I found that one of the Field Service plugin for geocoding was failing. We opened Microsoft support case and while troubleshooting with team we found that this error was coming from the <strong>Bing Maps integration<\/strong> used in the Field Service app. Our <strong>Bing Maps Key<\/strong> was either <strong>expired<\/strong> or <strong>not valid<\/strong>, which caused the system to block the request when creating an Account (because of geocode plugin). We removed this key and tested account creation again \u2013 and it worked without any errors. It was geocoding fine without this key as well<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror2.png\"><img decoding=\"async\" loading=\"lazy\" width=\"513\" height=\"318\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror2.png\" alt=\"\" class=\"wp-image-4740\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror2.png 513w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2025\/08\/accountcreateerror2-300x186.png 300w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Summary<\/strong><\/p>\n\n\n\n<p>If you see a <strong>&#8220;403 Forbidden&#8221; error<\/strong> when creating records in Field Service, don\u2019t forget to check the <strong>Bing Maps Key<\/strong> configuration. A missing or invalid key can silently cause issues that look unrelated at first.<\/p>\n\n\n\n<p>Hope it will help someone!!<br><strong>Keep learning and Keep Sharing!!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, while working with the Field Service app, we ran into a strange issue. Every time we tried to create a new Account with address information, the system threw an error: At first, this message didn\u2019t tell us much as this is generic message. A \u201c403 Forbidden\u201d usually means something is blocked or not authorized, but I was using Sys&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4738\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4739,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,402,522],"tags":[1139,1138,1140],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4738"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4738"}],"version-history":[{"count":2,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4738\/revisions"}],"predecessor-version":[{"id":4742,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4738\/revisions\/4742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4739"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}