Things are about to get technical! We love helping our customers and other Microsoft Dynamics CRM users have a smooth experience with their solutions, in this blog I talk about a recent error I found and how to approach it. Enjoy!
Recently I was importing records into a custom entity and ran into the following error attempting to upload the CSV data file of Zip Code data.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The column heading contains an invalid combination of data delimiters.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220668</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The column heading contains an invalid combination of data delimiters.</Message>
<Timestamp>2016-03-25T22:49:41.9691451Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
In reviewing the CSV source file, I saw that it looked like this:
Original file with bad headers.
"ZipCode,"Latitude","Longitude","City","State",County","ZipClass"
"00501","+40.92232","-072.63707","HOLTSVILLE","NY","SUFFOLK","UNIQUE"
"00544","+40.92232","-072.63707","HOLTSVILLE","NY","SUFFOLK","UNIQUE"
See the red fields with fixed delimiters around the ZipCode and County attributes.
"ZipCode","Latitude","Longitude","City","State","County","ZipClass"
"00501","+40.92232","-072.63707","HOLTSVILLE","NY","SUFFOLK","UNIQUE"
"00544","+40.92232","-072.63707","HOLTSVILLE","NY","SUFFOLK","UNIQUE"
The key to this problem was in downloading the error.txt log file and reviewing it to note that something was incorrect about the Header row in the import CSV file.
For more information please contact us.
