error in jython technology
911800Feb 13 2012 — edited Feb 15 2012Hii GURUS...
I am using ODI 11g.
when i executed a procedure about remove special character from a file, written in jython language it shows the error
Session 117334
ODI-1217: Session removespclchar (117334) fails with return code 7000.
ODI-1226: Step removespclchar fails after 1 attempt(s).
ODI-1232: Procedure removespclchar execution fails.
Caused By: org.apache.bsf.BSFException: exception from Jython:
IndentationError: ('unindent does not match any outer indentation level', ('<string>', 8, 8, ' ft . write ( line )\n'))
"removespclchar" is my procedure name.
and my jython code is:
import os , re
file=' E:\odifiles '
fp= open ( file , ' r ' )
ft= open( ' E:\odifiles', ' w ' )
line= fp . readline ( )
while line :
line= line . replace ( ' \ " ' , ' ' )
ft . write ( line )
line = fp . readline ( )
fp . close ( )
ft . close ( )
please help me for correct execution.
regards
Soumya rn.