Import users from A…
 
Notifications
Clear all

[Solved] Import users from AD, with existing mailbox

12 Posts
2 Users
0 Reactions
7,334 Views
0
Topic starter

Hi, 

I have set up CloudPanel, and are trying to import some existing exchange users. 

My problem is, that when i try to import through “/CloudPanel/Company/[CompanyID]/Import/Users” i recieve an error “500, The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments ” 

I have tried with and without mailbox plan, (i’m unable to enable archiving on the user, due to license) 

When looking at the log CloudPanel.log, it seems the issue is from retrieving the username. 

I have written the last part of the log down below. (Though changed the email to email@dummydomain.com

[2018-05-07 09:04:46,737] | ERROR | CloudPanel.ActiveDirectory.ADUsers| Error retrieving user dummy@dummydomain.com. Exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
[2018-05-07 09:04:46,737] | ERROR | CloudPanel.Modules.Company.Import.ImportModule| Error importing a list of users for dummydomain: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for ‘string.IsNullOrEmpty(string)’ has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at CloudPanel.ActiveDirectory.ADUsers.GetUser(String username)
at CloudPanel.Modules.Company.Import.ImportModule.<.ctor>b__1_3(Object _)

6 Answers
0

A hotfix was provided to resolve this issue. Let me know if you have any further problems.

Anonymous Topic starter 2018-05-24 00:03

I haven’t received any hotfix. 

So where can i get this? 

KMI Support 2018-05-24 13:47

Svendsen,

I emailed you the hotfix directly. Can you please check your spam, it may have been caught?

0

Do you receive that 500 error as soon as you go to that page or only after trying to import a user? If you receive it when trying to go to that page can you please enable Exchange Archiving in the CloudPanel settings and create a new Archive Plan? It not having an archive plan could be throwing the error (even though you may not be using archiving)

Anonymous Topic starter 2018-05-09 07:20

The problem first occurs after selecting the users to import, and pressing the “import” button. 

I have enabled Archiving and created a archive plan to test this, but exactly the same error occurs. 

KMI Support 2018-05-09 07:21

Do you have any users in that organizational unit that are missing the DisplayName attribute? Active Directory allows you to leave it blank but it is required for CloudPanel

0
Topic starter

DisplayName is filled for the users. Do you eventually have a list of requirements for import AD user? 

KMI Support 2018-05-11 08:00

Honestly the null data on the DisplayName shouldn’t even of thrown an error.

In the web.config there is options for <level value=”ALL” /> but yours problem says “INFO”. Can you change them to “ALL” and reproduce the issue and send me the log files from the Log directory? Email is jdixon@knowmoreit.com

0
Topic starter

It was set to “ALL” all the time. 

I have sent you an email with a cleared log, with the information from a recreated issue. 

0
Topic starter

After applying hotfix, i can import the users into cloudpanel, but the mailbox in not enabled, even tho i have chosen a mailbox plan. 

When i go to the user, and try to enable the mailbox, it seems i have to create a new mailbox? And i’m unable to see any databases. 

I have tried to locate a way to login as super admin (Seen this is the only user that can select database on the forum) 

KMI Support 2018-05-18 13:28

Was the company enabled for Exchange and/or not at the company plan limit? Can you send me the log files?

0
Topic starter

I have sent you an email with logile, and a couple of pictures showing the results after import. 

Share: