<?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>question Re: Ranger  API - Import Policies from File Occasional Error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-API-Import-Policies-from-File-Occasional-Error/m-p/369083#M240372</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79092"&gt;@drewski7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="flex-1 overflow-hidden"&gt;&lt;DIV class="react-scroll-to-bottom--css-hkzrg-79elbk h-full dark:bg-gray-800"&gt;&lt;DIV class="react-scroll-to-bottom--css-hkzrg-1n7m0yu"&gt;&lt;DIV class="flex flex-col items-center text-sm dark:bg-gray-800"&gt;&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654] sm:AIPRM__conversation__response"&gt;&lt;DIV class="text-base gap-4 md:gap-6 md:max-w-2xl lg:max-w-xl xl:max-w-3xl p-4 md:py-6 flex lg:px-0 m-auto"&gt;&lt;DIV class=""&gt;&lt;DIV class="flex flex-grow flex-col gap-3"&gt;&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert light AIPRM__conversation__response"&gt;&lt;P&gt;The error you're seeing suggests that Ranger Admin can't find the "XXPolicy" during the import process. This can happen due to a corrupted policy file or an issue with Ranger Admin. Restarting Ranger Admin temporarily fixes the issue, but it's not a permanent solution. To troubleshoot the issue, you can check the policy file for errors, look at the Ranger Admin logs for any warnings, verify that the policy exists in the Ranger database, and ensure that Ranger Admin is configured correctly. If you can't identify the root cause, you can contact Cloudera support for assistance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="flex justify-between lg:block"&gt;&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;I hope this will help you.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 21 Apr 2023 10:42:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2023-04-21T10:42:36Z</dc:date>
    <item>
      <title>Ranger  API - Import Policies from File Occasional Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-API-Import-Policies-from-File-Occasional-Error/m-p/369049#M240359</link>
      <description>&lt;P&gt;I have a NiFi flow that is exporting Ranger Policies from one Cloudera Cluster and another NiFi flow that is importing them into another NiFi cluster. The API call to export them is&amp;nbsp;${ranger.local.baseurl}/service/plugins/policies/exportJson? and the API call to import them is&amp;nbsp;${ranger.local.baseurl}/service/plugins/policies/importPoliciesFromFile?&lt;BR /&gt;&lt;BR /&gt;Everything works great but once in a blue moon when trying to import the Policies I get -&amp;nbsp;{"statusCode":1,"msgDesc":"XXPolicy not found","messageList":[{"name":"DATA_NOT_FOUND","rbKey":"xa.error.data_not_found","message":"Data not found","objectId":295}]}&lt;BR /&gt;&lt;BR /&gt;The best solution I have right now is to restart Ranger Admin and after it works. Does anyone know why this happens or how it gets into this state?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 18:24:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-API-Import-Policies-from-File-Occasional-Error/m-p/369049#M240359</guid>
      <dc:creator>drewski7</dc:creator>
      <dc:date>2023-04-20T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger  API - Import Policies from File Occasional Error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-API-Import-Policies-from-File-Occasional-Error/m-p/369083#M240372</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79092"&gt;@drewski7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="flex-1 overflow-hidden"&gt;&lt;DIV class="react-scroll-to-bottom--css-hkzrg-79elbk h-full dark:bg-gray-800"&gt;&lt;DIV class="react-scroll-to-bottom--css-hkzrg-1n7m0yu"&gt;&lt;DIV class="flex flex-col items-center text-sm dark:bg-gray-800"&gt;&lt;DIV class="group w-full text-gray-800 dark:text-gray-100 border-b border-black/10 dark:border-gray-900/50 bg-gray-50 dark:bg-[#444654] sm:AIPRM__conversation__response"&gt;&lt;DIV class="text-base gap-4 md:gap-6 md:max-w-2xl lg:max-w-xl xl:max-w-3xl p-4 md:py-6 flex lg:px-0 m-auto"&gt;&lt;DIV class=""&gt;&lt;DIV class="flex flex-grow flex-col gap-3"&gt;&lt;DIV class="min-h-[20px] flex flex-col items-start gap-4 whitespace-pre-wrap"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert light AIPRM__conversation__response"&gt;&lt;P&gt;The error you're seeing suggests that Ranger Admin can't find the "XXPolicy" during the import process. This can happen due to a corrupted policy file or an issue with Ranger Admin. Restarting Ranger Admin temporarily fixes the issue, but it's not a permanent solution. To troubleshoot the issue, you can check the policy file for errors, look at the Ranger Admin logs for any warnings, verify that the policy exists in the Ranger database, and ensure that Ranger Admin is configured correctly. If you can't identify the root cause, you can contact Cloudera support for assistance.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="flex justify-between lg:block"&gt;&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="text-gray-400 flex self-end lg:self-center justify-center mt-2 gap-2 md:gap-3 lg:gap-1 lg:absolute lg:top-0 lg:translate-x-full lg:right-0 lg:mt-0 lg:pl-2 visible"&gt;I hope this will help you.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Apr 2023 10:42:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-API-Import-Policies-from-File-Occasional-Error/m-p/369083#M240372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2023-04-21T10:42:36Z</dc:date>
    </item>
  </channel>
</rss>

