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,377 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
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
Comment Utility
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
Comment Utility
Thank you, Thank you!!!  I'd have never figured that out myself!!!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you don't know how to downgrade, my instructions below should be helpful.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now