A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form.

learn more… | top users | synonyms

-2
votes
0answers
20 views

how to import csv from batch apex?

controller public class newImportSiteVisitFromCSVController{ public blob fileContent {get;set;} public string filename {get;set;} public List<List<String>> CSVlist{get;set;} public ...
0
votes
1answer
27 views

Error: Compile Error: Incompatible key type List<String> for Map<String,List<String>> at line 52 column 24

public class importSiteVisitFromCSVController{ public blob fileContent {get;set;} public string filename {get;set;} public List<List<String>> CSVlist{get;set;} /* ...
2
votes
0answers
33 views

Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 137.641KB

I have a csv file who have 4000 records exists so it showing Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 137.641KB Error on VFpage this is my class public ...
2
votes
2answers
43 views

Good practice in querying very large data from different objects inside batch process

Good day everyone, I have created an apex class which will save data from csv to account and contact object in salesforce. The concept of this class is that it will read the column in my csv and will ...
0
votes
1answer
37 views

Querying very large data without hitting too many query rows

Good day everyone I am trying to insert a new account and contact base on a data from csv file. The concept is that, when an account already exist I will not insert it. What I did is that I add ...
0
votes
1answer
26 views

csv not recognizing null on last line

The question is in regards to importing a csv into apex. The easiest way to explain this is to reference my debug log. In this log this is the test collection of 2 objects, account and registration, ...
3
votes
1answer
21 views

Upload .csv file to salesforce without converting its original encoding

I have created a functionality wherein I can upload a csv to salesforce. The problem I have at the moment is that when I try to upload an ANSI encoding, an error will occur 'Blob is not a valid UTF-8 ...
2
votes
0answers
24 views

how to create wrapper class so i can show two list data in csv

Header title show proper but its data not showing in proper format because two repeat i have applied, i want work only with one repeat this is my class public with sharing class ...
0
votes
0answers
12 views

Public and Private key Encryption in ANT

We need a solution for storing salesforce object's data as flat files in a S FTP folder as .csv files. But salesforce is not supporting to send files to S FTP/FTP. So we are trying to build a solution ...
1
vote
1answer
34 views

Using Test.loadData() for many level self-relationship data

I use loadData method very often in my test methods for custom settings and objects where lookup fields are not necessary for my case. Now, I ran into a situation where I need to create hundreds of ...
1
vote
1answer
50 views

Fahrenheit symbol (°F) causing “BLOB is not a valid UTF-8 string” exception

The requirement I'm working on requires to read a CSV file with temperature measurements. But Fahrenheit or Celcius symbols are causing exceptions when converting csv blob file to string using ...
2
votes
2answers
48 views

Issue while uploading CSV file with embedded comma within column

I am uploading CSV file using <apex:inputfile> in vf page. CSV file contains 4 columns. Scenario 1) When I try to upload a file without comma in any column, It gets uploaded without any ...
0
votes
3answers
28 views

Data Loader upsert with external id and opportunity id

Some of our opportunities are created in Salesforce and others are created in another system. I'm trying to make sure they all end up in both systems. When using upsert, in the data loader (just ...
0
votes
0answers
19 views

How to import contacts and opportunity records using npsp data import wizard

I am trying to upload contact that has opportunity in salesforce using npsp data import wizard. but when I try to upload my data, it successfully uploaded but when I click the opportunity record , the ...
0
votes
1answer
88 views

How to expose a CSV as a Webservice/odata for salesforce to show in lightning connect

We currently have a CSV file that is generated externally and this is is outside of salesforce, this is a master sheet and stored in a FTP and has details for all accounts together. We want to show ...
0
votes
1answer
40 views

Dynamic sObject to CSV class

I am trying to create a dynamic query to csv class that will take any query and convert it to a csv and send it back to the caller. I would like to use keith-c's format logic because it's way cool and ...
1
vote
2answers
28 views

How to assign leads to a campaign using der Data Import Wizard (for leads)

I want to import leads with a CSV-file and assign them to an existing campaign. The CSV contains a field 'campaign' with the name of the campaign. If you import the CSV with the Data Import Wizard ...
0
votes
1answer
102 views

How to create a new record from a CSV file attachment processed by the email service in salesforce

My requirement is that I need to create new records / update existing records based on the data from an email attachment consisting of .csv file format that is parsed to the Email Service that I've ...
0
votes
1answer
33 views

How to remove a data from a list

I got this CSV Data Debug: 15:40:47.129 (129957383)|USER_DEBUG|[77]|DEBUG|CSV:(Ticket__c:{First_Name__c=Mar, Last_Name__c=Roxas, Email_Address__c=maro@gmail.com , Status__c=Attended, ...
3
votes
1answer
70 views

One day less than original date while uploading data in salesforce

I am importing data via a CSV file. In CSV file the date is 15/08/2015(dd/mm/yyyy) but when i check it in salesforce it is 14/08/2015(dd/mm/yyyy). The date is always one day less than original date. I ...
1
vote
1answer
27 views

Bulk Data Insertion that includes relationships

Good day everyone, I just want to ask your idea in regards with my problem. I am trying to read a data from csv and upload the data to salesforce. Below is an image of sample data in my csv. This is ...
0
votes
2answers
179 views

how to generate an excel sheet using apex code such that the excel sheet has proper table and data in order

How will I be able to generate a proper excel sheet with a proper table with data pulled from salesforce and applied in the excel sheet in a proper table with proper columns and rows. And also would ...
1
vote
2answers
85 views

how to highlight a cell in a .csv file using an apex code

Is there any apex code that a generates a csv file of data where a particular data is being highlighted or the background color of the cell where the data is present could be changed by the apex code ...
2
votes
0answers
67 views

Get first row of CSV data in salesforce and use for mapping

I want to get data from csv and upload it to salesforce. I use this link http://www.blueengine.com.au/?p=40#comment-271 and ...
0
votes
0answers
83 views

Test class for http callout on documents

I have a class that makes a HTTP callout and gets the csv response and save it to the content in salesforce. Apex class: public class MYSQLCSV{ public Static void MySQLCSVContent(){ Http ...
0
votes
2answers
37 views

How to save a csv file to documents/content in salesforce

I have a requirement in salesforce through which I have to call a HTTP location which sends a csv in response. My question is Can I save it to salesforce on documents or Content so that the salesforce ...
0
votes
1answer
102 views

N>Help Optimizing Code to prevent “Apex CPU time limit exceeded” when saving

I got some code which is used to import csv, parse csv then save it in a custom object. My problem is when I try to save it to a custom object (using visual force) I finally reached an error of Apex ...
1
vote
1answer
24 views

csv file: error in uploading

I'm uploading Accounts in my org but the system doesn't let me do it. The values are separated by commas and at every end line there is '/r'. Why doesn't it work?
0
votes
1answer
43 views

CSV as Static Resource, Windows and newline characters not recognized

In our application we use Static Resources to store CSV files that contain record definitions. We have a CSV parser in Apex which usually works fine and correctly reads and upserts records when we ...
0
votes
1answer
51 views

Custom CSV Uploader save to lookup field with name rather than ID

I have put together a custom CSV uploader. I am uploading trees and one of the fields (Surgeon) is a lookup relationship to Contacts. Currently in order for it to work I need to have the ID of the ...
1
vote
1answer
191 views

How to download a file with remote action

I need to create a csv file based on passed parameters. I want to call my function from angular service using controller's remoteAction. How can I make the browser save the string output as a file?
3
votes
1answer
35 views

Custom Mapping Parameter File

This is kind of an odd scenario and I was wondering if anyone had seen anything like this before. We have a custom object called Financial_Account__c which stores information about our customers' ...
1
vote
2answers
181 views

Data Import Wizard: There was a problem uploading the CSV file. Try again, or choose another file

I'm trying to import a very simple .CSV file with the Data Import Wizard: FNAME,LNAME,CELL,EMAIL,SALUTATION,TITLE Andrea,Ianni,555-888-8888,aianni@example.com,Mr.,CEO ...
3
votes
2answers
148 views

send a Report as a CSV/TEXT through HttpRequest

i am new to salesforce programming , and i am trying to send a file through HttpRequest to a 3rd party . the file i am trying to send is a report converted to csv format or text !! is there a way to ...
2
votes
1answer
53 views

Handling CSV content returned from a 3rd Party API

We currently have a contract with a vendor to provide a set of multi-language travel guides. The latest list of branded guides available can be downloaded via HTTP API call that returns a CSV file. I ...
1
vote
2answers
604 views

Not able to export query results to Bulk Csv

I have a SOQL query that I am able to run in eclipse, developer console and the workbench (as a list). Here is my query. The query is based on two standard objects - User and UserRole. Select ...
1
vote
1answer
247 views

Bulk Querying AccountFeed results in Binary field not supported error

While running the Bulk export in Java in CSV format, I get an error while the XML does not return error. I tried documentation which does not yield any results. Can I get specific error that relates ...
1
vote
1answer
253 views

Import CSV into Salesforce (Group Edition) automatically

I'd like to import CSV file into Salesforce automatically, e.g. once a day. I can't use Data Loader (Bulk API), because I don't have the needed edition. Is there any other, simple way?
0
votes
0answers
26 views

Why are contacts(multiple) being created when importing Leads usng Import Wizard

I am having trouble importing my Leads using a CSV file. I have created all the correct columns for the mapping to match up on the leads page layouts. For some reason some of the leads(not all) have ...
1
vote
1answer
145 views

How to dummy mass update via Apex Data Loader?

I built a trigger on Object 1 which has a field, field1 which when updated will calculate another field, field2 in same object (had to use trigger for it's complexity). Now my question is that field1 ...
0
votes
2answers
58 views

Exception when Importing .csv file from CLI

I am able to import my .csv file using Apex Data Loader. When I try importing the same file from CLI I am getting an exception attached in the file. When the file contents are copied into a new csv ...
0
votes
1answer
109 views

Create Accounts and Contacts from single csv import

I have limited experience with the Data Import Wizard but I'm curious if it allows me to create new accounts and contacts from a single csv import. Rather then importing accounts from a csv, ...
0
votes
1answer
20 views

How to save a list of leads who opened a mailing to Salesforce?

I'm feeding data to Salesforce through a CSV using APEX. This works great to update the database, with new leads and updating lead information. I'm interested on also transfering lists to Salesforce ...
0
votes
2answers
104 views

Collect Child record fields into a CSV field on a parent

Because reporting on Opportunities with Team Members add rows for each member, I'd like to collect Opportunity Team Members into a single field and display them on the Opportunity Object - for ...
2
votes
1answer
515 views

Is it possible to populate a field of type Auto Number External ID?

I'm trying to populate a Lookup using External ID which is Auto Number field. It is giving the error: Compile Error: Field is not writeable: Opportunity.Opportunity_Number__c Opportunity_Number__c ...
0
votes
0answers
119 views

Importing an orders detail into a custom object via CSV file

I created a custom Object in sales force which I am calling past_orders . I then added a bunch of fields such as Sku, itemname, qty, itemprice, billingfirstname, etc. I then go to the Data Import ...
1
vote
2answers
2k views

Import excel csv data using apex class

I have an excel file with a lot of records, and I need to import these records to a salesforce object by implementing a class and a visualforce page in order to use it in the future if needed. So, I ...
0
votes
0answers
312 views

How to customize Date format in Exported CSV from Visualforce?

I'm trying to build an export to CSV Visualforce page with dynamic fields that may include Date/Datetime fields in the output. The trouble coming in my way is, if I don't format date/datetime fields, ...
0
votes
1answer
452 views

Display CSV data on a Visualforce page

I want to read in a CSV file and display the data as a table in a VF page. So for example my file might look like this: Name, category, description, Priority, Type, Status, Number, Issue11, Decision ...
1
vote
1answer
197 views

Regex to validate a generic CSV

I have two questions in order to make a custom csv importer in VF/Apex. I saw many samples out there but I'm not able to find validations samples. 1) I would like to know if is any regex to validate ...