top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Error while reading source file name starts with a number in informatica

+2 votes

The source file name in my project starts with a number for example 20070908abcd.csv. Informatica is not allowing to read the source in the designer and displays the following message:
The first character in this name cannot be a number.

Could you please let me know how to handle as many source files are of this format?

posted Apr 23, 2014 by Pooja Bhanout

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

The name of a source file can start with a digit and it will be processed correctly. However, the first character in the name of a source transformation cannot be a number.

When importing a file, enter a correct name (by default, file name is used) for the new source that will be created:

enter image description here

answer Apr 25, 2014 by Shweta Singh
I think there is a limitation in Informatica regarding the file name starting with number.
I don't think it will work, please try once and let me know if its working at your end.
0 votes

You can choose the file name as string while creating/importing the source structure, and in session properties you can give the desire path and file name.

answer Jun 12, 2014 by Shatark Bajpai
Similar Questions
+1 vote

i have an issue where i get flat file with date and time extension to flat file name like test_28-10-2012.txt

I can get the flat file name in mapping through checking the AddCurrentlyProcessedFileNameproperty in Source Analyzer,from there i can do my logic but my question is

how can i dynamically give the flat file name in Source file name property of session.

+3 votes

I have a mapping like

The source will be of the same structure and the tartget also.
There are a bunch of files(with the same structure) which will go through this mapping .
So i want to use a parameter file through which i will give the file names for every run manually.

How to use the param file in session for Source filename attribute
Please suggest..

+2 votes

If work flow run on informatica level how to create the automatically file create error reocrds and rejected records in one file.

0 votes

I have found the mapping sdk code samples, however without any documentation whatsoever.

Currently working with 9.0, I am looking for more info.

For one of the current issues, when I try to save the mapping to repository, (with lying in the same folder where the xml file is being generated), I am getting the following error:

Written the file..

Caught an exception in run() method Cannot run program ""C:\Informatica\pmrep"" (in directory "C:\Informatica"): CreateProcess error=2, The system cannot find the file specified Cannot run program ""C:\Informatica\pmrep"" (in directory "C:\Informatica"): CreateProcess error=2, The system cannot find the file specified

com.informatica.powercenter.sdk.mapfwk.exception.MapFwkOutputException: Error saving to repository :  Failed to connect to repository

    at Source)

    at Source)

    at TestRaghavExample.generateOutput(

    at TestRaghavExample.create(

    at TestRaghavExample.main(

Caught an exception in run() method
This is my initial example.. trying to find my way through the API..

0 votes

My source File Description:
In creating a mapping in Informatica designer where in my source is a fat file which is the collection of different types of data, as in customer details from customer table, his enrollment details from enrollment table and few more tables like this.
In this scenario how do I proceed in creating mapping and transformation to target?
If it were a single source file I define a simple source and target mapping.