Skip to Content
avatar image
Former Member

Exception in UDF GET FILE NAME Dynamic configuration in PI PRD

Hi guys,

Recently we upgraded our PI system from 7.0 to 7.5 (dual split) we have been using UDF Dynamic file configuration java function to get the filename from ftp from one of our scenario, it was working perfectly fine before upgrade but now giving exception just PRD, while it is running fine in Qas. its giving exception in both end to end scenerio or mapping testing.

please guide me as i am already search on Scn but didn't find a solution

Code of UDF and screenshots are attached for reference please.

public String getFileName(Container container) throws StreamTransformationException

{

String fname = "";

Try

{

DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File","FileName");

fname = conf1.get(key1);

conf1.put(key1,fname);

}

catch(Exception ee)

{

fname = " " ;

}

}


udf.png (303.4 kB)
udf2.png (99.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 14 at 01:36 PM

    Hi David,

    I have to admit I don't understand the logic in your UDF. You read a value from the configuration in one line and then you put it back without any modification in the next line. Why? And the most important problem is that there is no "return" statement in your code. You shouldn't be able to compile it. So how is it possible that this code works on your test environment? Are you sure that's the correct code?

    Best Regards,

    Andrzej Filusz

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 13 at 08:08 AM

    Hi David!

    Dynamic Configuration object is not accessible in Message mapping Test.

    Try end-to-end testing instead.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 16 at 12:45 PM

    Hi,

    Test message in Operational Mapping.

    Regards,

    Anoop Rai

    Add comment
    10|10000 characters needed characters exceeded