Solved

Import External Contacts in Office 365 <Cannot bind argument to parameter 'Name' because it is an empty string.>

Posted on 2013-06-05
2
2,659 Views
Last Modified: 2013-06-05
I am trying to import a list of 150+ external contacts into Microsoft 365.  I am following the directions on this page.

http://community.office365.com/en-us/wikis/exchange/579.aspx


I have used the example file to create an importation list.  I get the below error message.  I know that the data set should be fine, I am unsure as to why the import will not work.

I have attached the example file as well as an excerpt of the file I am trying to use to upload.


Cannot bind argument to parameter 'Name' because it is an empty string.
    + CategoryInfo          : InvalidData: (:) [New-MailContact], ParameterBin
   dingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAl
   lowed,New-MailContact
    + PSComputerName        : pod54444444psh.outlook.com
ExternalContacts-sampleCSV--1-.txt
fdafdsfasdfsdfsdafsdafsdafsdasdf.txt
0
Comment
Question by:Daeta42
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 39223621
I can see your csv file is tab separated, so when you read the file you need to use parameter -Delimiter `t with Import-Csv
For example..
Import-Csv .\ExternalContacts.csv -Delimiter `t | %{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -FirstName $_.FirstName -LastName $_.LastName}

Open in new window

0
 

Author Closing Comment

by:Daeta42
ID: 39223717
Thank you, Thank you!!!  I'd have never figured that out myself!!!
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question