Saturday, May 9, 2015

TCC: Transition Attachments need to be unzipped twice

 

TCC (Taleo Connect Client) is Taleo's (Enterprise Edition) official data export/import tool, but it does not allow manipulations on files uploaded/attached into the Taleo system.  To work with files attached, you need the TCC Custom Steps library. But again, it appears though stores files uploaded into some modules differently on their system.

For documents in the Recruiting module, Taleo first compresses, and then encodes the file in Base64. This is because internally it uses webservices for TCC, and Base64 seems like the only way to send binary attachments over SOAP XMLs. So while using TCC Custom Steps to export the attached files, you have to first decode the Base64 content, and then unzip it. Fortunately, the library's com.taleo.integration.client.customstep.xml.ExtractAttachedFilePostStep class does this automatically.

But when I used the same step to export documents from the Transitions module, the final files appeared corrupted, they would not open up in file viewers for PDF or Doc format. Turns out, the files exported are still in zip format. They need to be unzipped once more to get the final file.

So for Transition module, Taleo Zips it twice, then Base64 encodes it once. For exporting the files using TCC, the need to be unzipped twice. The above mentioned class does not do this automatically.

Answer: Different Class

The Custom Library documentation mentions another class in the same library ,com.taleo.integration.client.customstep.xml.ExtractFilesPostStep , which has more options.

tmp9FFA 

According to the documentation, for documents, this step needs to have an operation value of "DecodeBase64,Gunzip". It does not mention whether operations can be chained.

They can. For transition documents, the operation has to be "DecodeBase64,Gunzip,Gunzip"

Here is the final configuration:

tmpDECF

The final files generated by this sequence perfectly opened up in a PDF reader, so all transition forms are stored in PDF format in Taleo.

10 comments:

  1. Hi,

    I tried this "ExtractFilesPostStep" class but it is giving An internal error has occured while running the export script. What will be the solution for this?
    Kindly let me know.

    ReplyDelete
    Replies
    1. Hi Usha,

      is this resolved for you? i am also facing the same issue. Could you please help me out if it worked for you

      Delete
    2. Hi Usha,

      Is this worked for you?If yes can you pls let me know the steps.

      Delete
  2. Thanks for your help with this. It was driving me crazy trying to work out what format the "first" unzipped file was in! Why they would zip it twice when writing to the database is beyond me, but at least we can now retrieve our documents :)

    ReplyDelete
  3. Brilliant blog I visit this blog it's incredibly awesome. Curiously, in this blog content formed doubtlessly and sensible. The substance of information is helpful.
    Workday HCM Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    Big Data and Hadoop Training In Hyderabad

    ReplyDelete
  4. Brilliant blog I visit this blog it's incredibly awesome. Curiously, in this blog content formed doubtlessly and sensible. The substance of information is helpful.
    Workday HCM Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    Big Data and Hadoop Training In Hyderabad

    ReplyDelete
  5. Hi, I am unable to view the images for this. Could someone please help?

    ReplyDelete
  6. Nice blog..clearly explained…Thankyou so much for your wonderful information…Looking for the best programming platforms in Hyderabad contact cyanous software solutions now.

    Best programming platform services in Hyderabad
    Best software & web development company in Hyderabad

    ReplyDelete
  7. Thank you so much for the information, I was scratching my head.

    ReplyDelete
  8. Thank you so much for the above info..Can anyone pls let me know what name and values pairs should be used if we are using this JAR file com.taleo.integration.client.customstep.xml.ExtractFilesPostStep to export transition document in PDF form

    ReplyDelete