Questions tagged [import-csv]

Import_Csv is a PowerShell command that creates a custom, table-like object and populates it with data from a CSV file. DO NOT use this tag for generally reading data from a CSV file. Instead, use the [csv] tag or other language-specific related tags

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Powershell Import-CSV - Get Name and Value from the same line

I'm trying to get from this file -> File 1: Name;Datum;Nominal;L_TOL;U_TOL;Value;Unit;Feature;low nat. Border;Type;No.;Date;Time;Operator abstrich_;; 0.00; 0.00; 0.00; 0.02;mm;0;0;9315;1;...
0 votes
0 answers
7 views

My import csv is responding unexpected indent

My program doesn't recon import csv. I've written it countless times and still can't find a way to make it work. Literally this is the 1st line and my program won't go beyond this point: import csv ...
1 vote
1 answer
26 views

Get a list of users name, email and proxyaddresses from csv in Powershell, but proxyaddress must be 1 per line

I am working on a script that provides an output with a specific data from some users from csv. The csv is in the following format: samacountname User1 User2 USer3 This is what I've got so far, but ...
  • 13
0 votes
1 answer
70 views

Problems when importing a CSV file and persisting information in a database using Java

I'm having a problem with a CSV data import code into the database. I'm using Java 11 with SpringBoot 2.7.3 REST API I have a Report class that has a Many-To-Many one-way relationship with the ...
0 votes
1 answer
66 views

Import CSV file into multiple tables in D365

I'm searching for a no-code solution to import data from a single CSV file into multiple tables in D365, in a single data import process. OOB Import Data in D365 can only import data into a single ...
0 votes
0 answers
20 views

FileNotFoundError while importing an arabic csv file using pandas in Jupyter notebook

I tried to import csv and excel file but there's error "The file in Arabic not English" --------------------------------------------------------------------------- FileNotFoundError ...
0 votes
1 answer
34 views

CSV File - Powershell - Converting Duplicates Values to Unique Ids using CountIF

I'm trying to use hash tables to do vlookup within powershell, but there are multiple matches for some of the values and as you know vlookup only matches the first value and then moves on. So I was ...
  • 1
0 votes
0 answers
19 views

How to import csv file to MySQL workbench? [duplicate]

I am trying to import .sql file of about 0.6 million rows to Mysql workbench, I am following this procedure ( Right click on database --> click on Table Data import Wizard --> browse to my csv --...
  • 11
1 vote
1 answer
117 views

Python connection to Oracle DB and then HOW TO export data as csv

I am a student attempting to impart what I recently learned in an introduction to Python course at school into the workplace. I am trying to connect to an Oracle database (I only have read access) and ...
0 votes
0 answers
29 views

How can I get these variables to output together? [duplicate]

I can't seem to get $d1 and $d2 to print together. Would like to include all columns in one output. (UID, HDate, Email and Office) $txt1 = "C:\Users\Alex\Downloads\New folder\datafile01.txt" ...
0 votes
0 answers
26 views

MS Access file size limitation error despite linking tables from SQL Server

I have SQL Server tables (backend) linked to my MS Access frontend. I am trying to import 9GB CSV file to my linked SQL Server table but in the middle of the importing I get file size limitation error,...
1 vote
1 answer
73 views

Update Multiple CSV files with a find and replace loop

I have multiple CSV files I need to recursively find and replace text inside of and am looking for the simplest way to do it. I know of .NET with [io.file]::readalltext, Get-Content, and Import-CSV, ...
2 votes
1 answer
51 views

How to make an in-variable change to objects that isn't slow with PSCustomObjects?

I have two tables as pscustomobjects and I tried doing the equivalent of a SQL join to add some properties back into the primary object that I need to read from. The issue is that my code below ran on ...
1 vote
0 answers
40 views

Error while importing CSV to sql using powershell

The below variable alone is not working during the import. I am new into entire coding area and I think this is some basics which I don't understand. $csvPath =$(Get-Date).AddMonths(-1) Get-Item \\...
0 votes
0 answers
26 views

Importing a CSV file in Java [duplicate]

I am creating a marketplace that users can import products into. I need to be able to import the CSV file through a network I/O so with a client-server functionality. Currently when I import the CSV ...
2 votes
1 answer
202 views

trying to import csv file to table in sql

I have 4 csv files each having 500,000 rows. I am trying to import the csv data into my Exasol databse, but there is an error with the date column and I have a problem with the first unwanted column ...
  • 25
0 votes
0 answers
26 views

powershell import csv gives back 2 different solutions

first second as you can see with the first laptop i get a complete different solution and i don't know why they both get the exact same csv file i runned this on 2 different computers i tried removing ...
0 votes
0 answers
85 views

Import csv file from K8s pod to Postgres DB

My goal is to migrate my local csv file to a Postgres DB which exist already on azure. My attempt so far was as follow: In my K8S cluster I connect to the pod (spring app) which is connected with the ...
  • 23
1 vote
2 answers
56 views

Powershell improperly reading data in a CSV

I currently am writing a Powershell script that remotely removes users from a local admin group on a list of servers. The CSV headers are Computer and Name. For each entry of user (name), matches the ...
  • 11
0 votes
1 answer
194 views

PowerShell: Removing users from specified groups

Edit: Based on input from Scepticalist and TheStingPilot, I have cobbled together the following: $users = import-csv usersfromgroups.csv Foreach ($user in $users){ remove-adgroupmember -identity &...
  • 117
0 votes
0 answers
116 views

CSV to Snowflake - Converts some data to Uppercase Automatically

Hello Techies, Thanks for your time in reading this and trying to help. I have a peculiar situation where I have a CSV file with data (separated by commas) in an external stage. I have snowflake ...
  • 29
0 votes
1 answer
297 views

Using Import-csv and store multiple values of a column as a variable

I have a csv file that has a column named 'art': sequence art last first address city st zip -------- --- ---- ----- ------- ---- -- --- 1 3S Doe John 123 Any Street ...
1 vote
1 answer
799 views

Powershell: Using import-csv to select rows by column value and export to csv with a number of rows for each unique value

I have a csv that I want to have PowerShell extract 10 rows for each unique value in a column named "art". After the unique art values have been identified, I need sperate csv files for ...
0 votes
0 answers
156 views

Importing big size csv file into SQL Server

I'm trying to import a very big .CSV file (about 2 GB) as a table into a database in SQL Server (through SQL Server Management Studio). I tried doing it with the "Import Flat File..." and ...
  • 215
0 votes
1 answer
110 views

Changing/Casting strings to date data type in Postgresql

I have imported a csv file in my postgresql database. The file contains a column of dates. I have imported that column in 'varchar' form. the column contains dates that are not in one particular ...
0 votes
1 answer
22 views

I'm trying to load a simple csv archive on my macbook using pandas, but it's returning the biggest error i've ever seen. Yes, i'm using jupyter note

I'm using jupyter notebook, and the archive csv is in the same place of the .ipynb archive. This is the error: can someone help me, please? if someone know a course to help me with macos i'll be very ...
0 votes
1 answer
49 views

PowerShell - How can I get output in the shell to list all existing accounts from my variable without my script terminating first?

so I understand the problem is the code will iterate in the foreach loop once and then exit, listing only one existing account in the output. Is there a way to skip the "exit" statement ...
0 votes
0 answers
103 views

import script for CSV to PostgreSQL *Updated*

I am trying to create a simple script that imports old records to a new PostgreSQL database using the same Schema as the old one. My initial idea was to read the contents of the .csv and create a map ...
  • 41
0 votes
1 answer
76 views

Powershell import-CSV and process batches of 10 with a loop

I've been working on a script that imports CSV file, then depending on if some values are present, outputs contents in a specific format. Example: #all 4 variations are similar, with the only ...
  • 25
2 votes
1 answer
159 views

How to set relationship between fields of imported CSV files in mongodb database

I have successfully imported a csv file into my mongodb database using mongodb compass, while importing the file, I had the choice to select/choose the data type of a field but when I try to change a ...
1 vote
1 answer
45 views

Powershell: How can you Import-Csv part of a larger CSV if the larger CSV contains line breaks?

Update: Thanks to Keith-Miller's suggestion below, I was able to use StreamReader.ReadBlock() to pull out a block of characters, then search through that string for the last row delimiter using String....
3 votes
1 answer
205 views

Powershell import of a CSV file with line break in the header

For a project i would need to export data from an .xlsm file data to a CSV file and then process it with powershell. I do the export manually. In the original file, there are line breaks in the ...
3 votes
3 answers
323 views

How to specify column position when adding new column to a csv file using PowerShell

How can I specify the column position when adding a new column to an existing csv file? I want to add the new column as second column (Not at the end what the default is). The first column is always ...
  • 9,743
0 votes
1 answer
240 views

How can I import a CSV file without getting an error

df = pd.read_csv('movies_metadata.csv') I have gotten the following error back: UnicodeDecodeError Traceback (most recent call last) Input In [27], in <cell line: 1>() ---...
1 vote
1 answer
47 views

Import csv file and return the quantity of a specific fruit from a specific owner on powershell

I need to create a script that passes me the type of fruit and the owner as a parameter and returns the quantity of said fruit from this csv: amount;fruit;owner 3;orange;antonio 2;orange;harry 4;pear;...
0 votes
0 answers
35 views

Importing csv file into pgAdmin 4

When I'm importing a .csv file into pgAdmin 4, says error "invalid input syntax for type integer: "NA". ", CONTEXT: COPY results, line 42397, column home_score: "NA" I ...
0 votes
2 answers
41 views

Python - Pandas Search and update multiple values - is this possible or should I use Import CSV?

I have CSV with 10k lines. I want to first of all search for the rows with required info and then edit those lines. example below jobs = [ 'X01_TEST1_C', 'P01_TEST3_B' ] headers = ['job', '...
  • 25
0 votes
0 answers
136 views

Importing a .csv file with varying name into powershell

Complete novice here, Creating a basic GUI that allows me to automatically adjust a bill of materials .csv file with relatively minimal user input. Its basic function is to add a ".DXF" file ...
  • 1
0 votes
1 answer
247 views

phpmyadmin import csv file. How to skip error line

I´m trying to import about 3gb csv files to phpmyadmin. Some of them contains more terminated chars and then importing stops because of wrong fields. I have two colums which i want to fill. Im using : ...
0 votes
1 answer
57 views

mysql loading csv file plus additional columns into a table

I am reading articles and thread on how to load a csv file into a table, but I also need to add additional columns. Is this possible? Below is my table: +-----------+-------------+------+-----+-------...
  • 2,629
0 votes
1 answer
121 views

I'm unable to plot csv data using python

I have created a csv data like:csv image link to csv data: https://1drv.ms/x/s!AiBcPojQRu1SgRw-uiiRIQ0LhXYi?e=uEU9d5 and when I print the csv data it shows like this : printed using pandas code I used ...
  • 1
0 votes
0 answers
57 views

Wanting to import service accounts from a spreadsheet and set to password never expire

Import-CSV "C:\Users\$env:username\Desktop\azureadusers.csv" | ForEach { Set-AzureADUser -ObjectId $user.UserPrincipalName -PasswordPolicies DisablePasswordExpiration } The error I get ...
-1 votes
1 answer
103 views

google capstone data file import from mac desktop issue

I am very new to programming and am working on the Google Data Analytics Certificate. I have looked everywhere for assistance to my issue and nothing has worked. (I have watched videos, searched stack ...
  • 1
2 votes
3 answers
348 views

Powershell ConvertTo-Json from import-csv poor performance

I have a performance issue with the below Powershell script. I want to parse information from CSV file to JSON file. The performance of this conversion is very good when the CSV file size is small. ...
  • 2,072
0 votes
0 answers
95 views

How to import multiple csv file in laravel?

this is laravel function which will required to be loaded public function import(Request $request) { $files = $request['file']; foreach ($files as $file) { ...
3 votes
2 answers
244 views

Import a CSV, run port connection, then export to new csv

I have a Sources.csv which has columns "Source," "Host" and "Port" (Source is just the name of the device I'm trying to connect to). My goal is to go line-by-line ...
0 votes
1 answer
83 views

Powershell, if and elseif, and blank csv fields

Powershell, if and elseif, and blank csv fields Hi everyone. This one has me scratching my head. I have a csv file called logonscripts.csv which looks like | Name | Company_3LC | Office_3LC | ...
  • 21
0 votes
0 answers
63 views

how to import csv files in suiteCRM?

I am new to SuiteCRM and lately I’ve been trying to import csv files to the Accounts and Contacts modules but to no avail. I am using the Version 8.1.2. Here’s what I’ve tried to do: I had a json file ...
0 votes
1 answer
174 views

Convert CSV file to JSON file using PowerShell ignore scientific notation

I have .csv files containing long numbers. I used the following PowerShell script to convert from .csv file to .json. But the long numbers are importing as scientific notation. How to force import ...
  • 2,072
0 votes
0 answers
124 views

Importing CSV to mySQL (xampp)

So I wanted to import a CSV to make a new table, and while it's successful, I had 2 issues. First is, while it says drag and drop works, mine doesn't, it shows an icon which means wrong format. ...
  • 1

1
2 3 4 5
7