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,427 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
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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Read this checklist to learn more about the 15 things you should never include in an email signature.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

867 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

22 Experts available now in Live!

Get 1:1 Help Now