Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
2,763 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 2000 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

Introducing the WatchGuard 420 Access Point

WatchGuard's newest access point includes an 802.11ac Wave 2 chipset, providing the fastest speeds for VoIP, video and music streaming, and large data file transfers. Additionally, enjoy the benefits of strong security as the 3rd radio delivers dedicated WIPS protection!

Question has a verified solution.

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

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
I don't pretend to be an expert at this, but I have found a few things that are useful. I hope that sharing them here will help others, so they will not have to face some rather hard choices. Since I felt this to be a topic of enough importance and…
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…
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…

722 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