Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListImport CSV data into UDTImport CSV data into UDT
Previous
 
Next
New Post
9/2/2008 3:47 PM
 

For a long time ago I wrote a small console application that transforms CSV tables into UDT import files. Yesterday I updated it to reflect the latest changes and created a project inside the forge: http://www.dotnetnuke.com/Products/Development/Forge/tabid/824/ctl/Details/mid/3713/Projectid/159/Default.aspx

The application is limited, the only datatype supported is "String/Text". Please, this is no encouragement to upload big datasets! 

 
New Post
9/4/2008 12:26 PM
 

Here are my comments:

1. Dragging and dropping did not work.  I don't know why because it gave no error message (at least that I could see in the cmd window that dissappeared quickly.

2.  After creating an xml doc by running your app through the command prompt, I imported the file to my UDT, and it failed .. no error message except "An error occurred during the import".  Then, I went back to my UDT and all my columns were gone and the table was empty.

 

 
New Post
9/5/2008 2:48 AM
 

Thank you for testing and reporting.

Can you please send me your CSV and the XML file? Iwould like to reproduce what is happening.

Which UDT version are you running?

A module import always removes all data, the module will be rebuild with the new data. It needs to remove the old columns. Now import failed, did you notify new but empty columns?  I suggest to test import only using fresh inserted UDT modules.

I tested drag'drop again. The cmd windows opens for 0.5s, afterwards the XML file appears in the same folder as the source file. 

 
New Post
9/12/2008 1:32 PM
 

Stefan, did you ever get those sample files? I am seeing the same as j_ruez.
My excel spread sheet has 7 columns, and 149 records, this includes the column headers (labels).  Simple text, max cell length is around 35 characters.
I exported this to CSV file then tried the Drag-N-Drop method but it did not work. I executed this from the command prompt and it created an XML file but from what I could see the format was incorrect.

Example of Excel:

Code Asset Serial User Description End of Support Assignment
123456 AC679697 06830763UAKCT2YGG VACANT IBM DESKTOP M42, 8307-63U 6/27/2006 In use
123456 AC668727 SKPBPFDK LOOW IBM THINKPAD T40, 1.5GHZ 40GB 8/6/2006 In use

Example of CSV:
Code,Asset,Serial,User,Description,End of Support,Assignment,
123456,AC679697,06830763UAKCT2YGG,VACANT,"IBM  DESKTOP M42, 8307-63U",6/27/2006,In use,
123456,AC668727,SKPBPFDK,LOOW,"IBM THINKPAD T40, 1.5GHZ 40GB",8/6/2006,In use,

Example of XML:
<?xml version="1.0" encoding="utf-8" ?>
<content type="DNNUserDefinedTable" version="3.0.0">
<UserDefinedTable xmlns="DotNetNuke/UserDefinedTable">
  <Data>
    <Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>Code,Asset,Serial,User,Description,End of Support,Assignment,</Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>
    <CreatedBy>ImportFromCsv</CreatedBy>
    <CreatedAt>2008-09-12T13:28:39.29626-04:00</CreatedAt>
    <ChangedBy>ImportFromCsv</ChangedBy>
    <ChangedAt>2008-09-12T13:28:39.29626-04:00</ChangedAt>
    <UserDefinedRowId>-1</UserDefinedRowId>
  </Data>
  <Data>
    <Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>123456,AC679697,06830763UAKCT2YGG,VACANT,"IBM  DESKTOP M42, 8307-63U",6/27/2006,In use,</Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>
    <CreatedBy>ImportFromCsv</CreatedBy>
    <CreatedAt>2008-09-12T13:28:39.29626-04:00</CreatedAt>
    <ChangedBy>ImportFromCsv</ChangedBy>
    <ChangedAt>2008-09-12T13:28:39.29626-04:00</ChangedAt>
    <UserDefinedRowId>-1</UserDefinedRowId>
  </Data>
  <Data>
    <Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>123456,AC668727,SKPBPFDK,LOOW,"IBM THINKPAD T40, 1.5GHZ 40GB",8/6/2006,In use,</Code_x002C_Asset_x002C_Serial_x002C_User_x002C_Description_x002C_End_x0020_of_x0020_Support_x002C_Assignment_x002C_>
    <CreatedBy>ImportFromCsv</CreatedBy>
    <CreatedAt>2008-09-12T13:28:39.29626-04:00</CreatedAt>
    <ChangedBy>ImportFromCsv</ChangedBy>
    <ChangedAt>2008-09-12T13:28:39.29626-04:00</ChangedAt>
    <UserDefinedRowId>-1</UserDefinedRowId>
  </Data>

 
New Post
9/13/2008 7:35 AM
 

 Simon,

The application expects that the fields are separated with a semicolon, not a comma.

 

Code;Asset;Serial;User;Description;End of Support;Assignment;
123456;AC679697;06830763UAKCT2YGG;VACANT;"IBM  DESKTOP M42; 8307-63U";6/27/2006;In use;
123456;AC668727;SKPBPFDK;LOOW;"IBM THINKPAD T40; 1.5GHZ 40GB";8/6/2006;In use;

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListImport CSV data into UDTImport CSV data into UDT


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out