Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

error in jython technology

911800Feb 13 2012 — edited Feb 15 2012
Hii 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.
This post has been answered by 774570 on Feb 15 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2012
Added on Feb 13 2012
3 comments
264 views