{"id":800,"date":"2010-10-29T01:23:01","date_gmt":"2010-10-29T05:23:01","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=800"},"modified":"2014-03-01T22:35:33","modified_gmt":"2014-03-02T06:35:33","slug":"troubleshooting-bulk-add-bulk-import-of-users","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/troubleshooting-bulk-add-bulk-import-of-users\/","title":{"rendered":"Troubleshooting Bulk-Add &#038; Bulk-Import Of Users"},"content":{"rendered":"<p><strong>Issue<\/strong>: You tried to <a href=\"http:\/\/digitalaccesspass.com\/doc\/importing-users-in-bulk-into-dap\/\">bulk-add users to DAP<\/a> (i.e., a bulk-import), and it is not working. No users have been added to the system.<\/p>\n<p><strong>Possible Solutions &amp; Troubleshooting Tips<\/strong><\/p>\n<h3>1. CSV File created?<\/h3>\n<p>First check if there&#39;s a .csv file that has been created in the folder <strong>\/dap\/bulk\/<\/strong> on your server. If there&#39;s more than one .csv file in there (from a previous import\/bulk-add), then see if there&#39;s a file whose timestamp is close to the time when you actually did the &quot;Users &gt; Add &gt; Bulk-add Multiple Users To A Product&quot; action.<\/p>\n<p>If there&#39;s no .csv file, then it&#39;s possible that the folder doesn&#39;t have the right permissions for DAP to be able to create the file. So CHMOD the &quot;bulk&quot; folder (in <strong>\/dap\/<\/strong> folder) to 755. Then re-try the bulk-add again.<\/p>\n<h3>2. Is Cron job running?<\/h3>\n<p>You see a .csv file in there sitting for a few hours, but none of the users inside the .csv file have been added to DAP.<\/p>\n<p>It&#39;s possible that the hourly cron job has either not been set up at all, or may have been setup incorrectly. Make sure the cron is setup and running correctly.<\/p>\n<p>See both these links: <\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/setting-up-cron-jobs\/\">i) Setting up Cron<\/a><\/p>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/all-about-dap-cron-job\/\">ii) All about Cron<\/a><\/p>\n<h3>3. Error in CSV File<\/h3>\n<p>Sometimes, it is possible that the .csv file was actually created, but it was actually corrupt. And you won&#39;t know this until the cron runs and that specific bulk-add job shows an error.<\/p>\n<div>\n<p>When you look at the &ldquo;<strong>System<\/strong> &gt; <strong>Job Queue<\/strong>&rdquo; screen, you see one line that shows this error&hellip;<\/p>\n<blockquote>\n<p>Action: BulkAddCSVToProduct<br \/>\n\t\t\tMessage: Error in CSV File<\/p>\n<\/blockquote>\n<p>You were probably trying to to Bulk-Add Users to DAP. Or do a Broadcast email to a CSV file. In either case, there was an error in processing your request, because one of the following happened:<\/p>\n<p>1) The CSV file could not be created in <strong>\/dap\/bulk\/<\/strong> folder because of a permission issue (try CHMOD 755), so when the cron task ran, it could not find the CSV file (or the file was corrupted for some reason).<\/p>\n<p>2) The list of email addresses within the CSV file were not in the right format &ndash; Order should be: <strong>Email,FirstName,LastName <\/strong>(<strong> <\/strong>LastName is optional)<\/p>\n<p><strong>How To Fix It<\/strong><\/p>\n<p>If a job fails, then there&rsquo;s no way to &ldquo;fix it and re-run it&rdquo; right now. So you basically have to delete the job, and then submit a new one. So if a Bulk-Add job errors with the above message, then here&rsquo;s what you need to do&hellip;<\/p>\n<p>A) Click on the &ldquo;Delete Jobs In Error&rdquo; link on the &ldquo;System &gt; Job Queue&rdquo; page. That will delete all jobs that have failed for whatever reason.<\/p>\n<p>B) You should also clear out the <strong>\/dap\/bulk\/<\/strong> folder to make sure you delete any old, or errored out CSV files from that folder.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Issue: You tried to bulk-add users to DAP (i.e., a bulk-import), and it is not working. No users have been added to the system. Possible Solutions &amp; Troubleshooting Tips 1. CSV File created? First check if there&#39;s a .csv file that has been created in the folder \/dap\/bulk\/ on your server. If there&#39;s more than [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[79,25,18,26,7],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/800"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":4,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":4285,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/800\/revisions\/4285"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}