You need to sign in to do that
Don't have an account?
Aa Hash
insert failed records in custom object which are failed to import from csv
Hi all,
I have never done apex before,I want to insert failed records in the custom Log__c object which are failed to import from CSV file I have these fields:
Log Name, Field Name__c, error message__c
In the previous task I imported CSV file into a custom object using the vf page, noe this is its' extended task, If anyone did this before please send me a code.
I have never done apex before,I want to insert failed records in the custom Log__c object which are failed to import from CSV file I have these fields:
Log Name, Field Name__c, error message__c
In the previous task I imported CSV file into a custom object using the vf page, noe this is its' extended task, If anyone did this before please send me a code.
Can you confirm how many record you have and also are you trying to insert one by one record by giving the details or you want to insert from CSV file?
Thanks,
2. now if any record failed to import its record should be inserted into another Log__c object with error message, field name.
Now I am stuck on task 2.
Number of records are different in diferent csv files.