Issue Regarding Violated Column in Excel

Seven Stars

Issue Regarding Violated Column in Excel

I have a CSV File in which last Row is violated, ScreenShot is being Attached Below. 

How can i remove 3 semicolons using StringHandling.ERREPLACE() i.e.

which syntax will be use to remove 3 semicolons ";;;" using StringHandling.ERREPLACE().

Screenshot (37).pngTotal_Calls row is Violated by three semicolons


Accepted Solutions
Forteen Stars

Re: Issue Regarding Violated Column in Excel

@meetmahajan,can you use below funtion in tMap.

 

row1.total.replace(";","")

row1.total.replaceAll(";","")

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Fifteen Stars TRF
Fifteen Stars

Re: Issue Regarding Violated Column in Excel

Try StringHandling.ERREPLACE(yourString, ";;;$", "") or StringHandling.ERREPLACE(yourString, "\;\;\;$", "")

TRF

All Replies
Forteen Stars

Re: Issue Regarding Violated Column in Excel

@meetmahajan,can you use below funtion in tMap.

 

row1.total.replace(";","")

row1.total.replaceAll(";","")

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Fifteen Stars TRF
Fifteen Stars

Re: Issue Regarding Violated Column in Excel

Try StringHandling.ERREPLACE(yourString, ";;;$", "") or StringHandling.ERREPLACE(yourString, "\;\;\;$", "")

TRF
Seven Stars

Re: Issue Regarding Violated Column in Excel

@manodwhb @TRF

Thank you so much 

Both Method Works very Well :-)Screenshot (38).png 

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch