File hash generation

Hi,
I'm new to flex. I've searched trought the web and did not find any hint on how to do this. How can i generate a hash for a file uploaded in my app?
Is anything related with the ByteArray class?
Thanks a lot, Guilherme

I found this link
http://anirudhs.chaosnet.org/blog/2008.10.07.html . where can i get this package com.adobe.crypto?

Similar Messages

  • DFS File Hash Keeps Changing?

    First some background:
    2 DFS Servers running Storage Server 2008 w/ SP2
    Both servers are in a replication group that replicates a folder in the namespace to both servers.
    The servers are in different AD sites connected by a fast WAN connection.
    The replication schedule is set to 24/7
    The problem I am having is that the replication backlog never catches up.  The backlog is currently at 1,900,000+ files but only from SERVER1 -> SERVER2.  Replication from SERVER2 -> SERVER1 is successful with no backlog.  The majority
    of file changes are made on SERVER1.  After troubleshooting this for a week or so trying to find out why the backlog keeps increasing I've found the following:
    The file hashes on SERVER1 are different than the file hashes on SERVER2 when checked with the DFSRDIAG FILEHASH command.  The hashes are different even on files with the same modified date, NTFS permissions, and size.
    If I run a robocopy and copy files from SERVER1 to SERVER2 the hashes are the same.
    Files I've added as recently as 3/31/2014 with no changes made since have different hashes on both servers which is causing DFS to try to replicate them even though it doesn't need to.
    It seems like something is causing the file hashes to change on every single file in the replicated folder on one of the servers.  I've checked the antivirus (TrendMicro) and it is supported on DFS and isn't even configured to run any scheduled scans.
     I'd like to reseed SERVER2 via robocopy so the hashes are all the same again but I'm afraid that same problem will just happen again.
    Does anyone have any idea why the file hashes would be changing even if the file timestamp, permissions, size, etc the same?

    I've pre-staged all 4TB of files with robocopy and checked the hash on 100 or so files on both servers to make sure they are matching.
    After pre-staging I recreated the replication group and replicated folder.  I am currently waiting on initial sync.  The backlog is currently 2,000,000+ files and hasn't gone down much at all in the past 12 hours.
    SERVER1 is set as the primary and SERVER2 is showing that it is waiting to perform initial replication (Event ID 4102.
    How long should the initial sync take if all of the files have been pre-seeded?  I can't really tell if this is working or not.
    I'm also seeing these errors in the debug logs:
    20140422 09:34:59.293 8444 INCO   514 SessionTask::Step csId:{E8271D03-32D5-4A1B-89F5-35169E365CE3} csName:Corporate state:NEW_SESSION
    20140422 09:34:59.293 8444 DOWN   350 LogExtendedErrorInformation Failed RpcErrorStartEnumeration (not found)
    20140422 09:34:59.293 8444 DOWN  3991 [ERROR] DownstreamTransport::EstablishSession Failed on connId:{F499D9F0-3CC7-4BB0-BA6D-821B7B050CAD} csId:{E8271D03-32D5-4A1B-89F5-35169E365CE3} rgName:[removed] Error:
    + [Error:9027(0x2343) DownstreamTransport::EstablishSession downstreamtransport.cpp:3984 8444 C A failure was reported by the remote partner]
    + [Error:9051(0x235b) DownstreamTransport::EstablishSession downstreamtransport.cpp:3984 8444 C The content set is not ready]
    20140422 09:34:59.293 8444 INCO  3566 InConnection::RestartSession Retrying establish contentset session. connId:{F499D9F0-3CC7-4BB0-BA6D-821B7B050CAD} csId:{E8271D03-32D5-4A1B-89F5-35169E365CE3} csName:Corporate
    20140422 09:34:59.293 8444 INCO   774 [WARN] SessionTask::Step (Ignored) Failed, should have already been processed. Error:
    + [Error:9027(0x2343) InConnection::EstablishSession inconnection.cpp:3657 8444 C A failure was reported by the remote partner]
    + [Error:9027(0x2343) DownstreamTransport::EstablishSession downstreamtransport.cpp:4005 8444 C A failure was reported by the remote partner]
    + [Error:9027(0x2343) DownstreamTransport::EstablishSession downstreamtransport.cpp:3984 8444 C A failure was reported by the remote partner]
    + [Error:9051(0x235b) DownstreamTransport::EstablishSession downstreamtransport.cpp:3984 8444 C The content set is not ready]
    20140422 09:34:59.293 8444 TASK   948 TaskPool::Sleep New sleeper thread inserted. Sleepers: 2
    20140422 09:34:59.636 3640 CFAD 10537 Config::AdReader::Peek Subscriptions Checksum, old = 53893317, new = 53893317
    20140422 09:35:00.167 1312 USNC  1319 UsnConsumer::ProcessUsnRecord Filtered USN_RECORD:

  • I always get the following error msg when trying to update add-ons "Invalid file hash (possible download corruption) -261"

    I get the following error msg when I try to update add-ons ...
    ErrorFirefox could not install the file at
    http://releases.mozilla.org/pub/mozilla.org/addons/1865/adblock_plus-1.2.2-fx+sm+tb+fn.xpi
    because: Invalid file hash (possible download corruption)
    -261
    Why, and is there a solution. Im fully patched on osx.
    + Fredrik

    * "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    You can also try to enable third-party cookies<br />
    Firefox > Preferences > Privacy > Cookies: [X] "Accept third-party cookies"
    See [[Disabling third party cookies]] (you need to enable)

  • File HASH

    Hi, I'm not sure if I'm in the correct thread/category but here's my issue. I need to check the integrity of some .dll files in all of our Windows Servers and the checking is base on their specific hash keys. A sample of a file is linkinfo.dll
    I tried to check its hash by using MD5 checker software and the result is listed on the screenshot below:
    How do I check if the hash key is valid or if it has been compromised?
    Regards,
    Jeff

    Hi
    I agree with Rayzilt, I never seen a official list of file MD5, but I seen a KB that help to make that (but like Rayzilt's told, you still need another VM to compare);
    From http://support.microsoft.com/kb/841290
    How to verify the hash values for the files in the Windows directory and in all sub-directories
    You can also build a hash database of your sensitive files and verify them regularly.
    To create the database and to save it to the C:\Temp directory, type the following command:
    fciv.exe -add %systemroot% -r -XML c:\temp\windows-hashes.XML
    To list the contents of the database to the console, type the following command:
    fciv.exe -list -XML c:\temp\windows-hashes.XML
    To verify the contents of the XML database against the current file system files, type the following command:
    fciv -v -XML c:\temp\windows-hashes.XML
    Regards, Philippe
    Don't forget to mark as answer or vote as helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • Robohelp Deleting files during generation

    Hi everyone,
    I am hoping that you can help me. *crosses everything*
    I have created a help system that has two outputs, one for
    each platform of the web application we provide to our clients.
    During my last update, I noticed that the help system is deleting
    several files that existed in previous generations for one of the
    outputs. As a result, even though RoboHelp is providing a message
    that says the generation was successful, when I click View Results,
    I can't pull up the help. One of the files it is deleting the the
    first topic for the particular version that I am generating. In
    addition, it is deleting every wh*.* file in the main folder along
    with most of the wh*.* files in the sub wh* folders.
    I haven't dared regenerate the other version in fear that it
    will do the same thing to it. I haven't changed anything in the
    last update other than text within the files. The only thing I can
    think of that I have changed significantly in the previous update
    was re-applying the template to all of the pages.
    I'm on the edge of a release and need help desperately! Any
    help you can provide would be greatly appreciated!
    FYI: I am using RoboHelp X5.0.2
    TIA,
    Connie LaGoy

    Hi Connie and welcome to the RH community. You say the "help
    system is deleting" files. I've never known RH to do this so I
    don't think this is the problem. I'm wondering if there is a third
    party at fault here (e.g. virus software)? Have you tried creating
    the output to a different location (e.g. your C: drive) and see if
    you get the same results?

  • Dynamic file Name generation

    Hi Experts,
      i have the requirement
    I need to extract some records from Database (Scenario is Database to file) and we need to put it into file.
    then i need to change the file name based on certain conditions and send it to relevent file server which are globally located across the world.
    My Doubts are :-
    1- After extracting the records from Database From where i can get file name?? Can i get the file name from SXMB_MONI. If yes then How??
    2- Now I got the file name then i need to change this file name into different file names (Dynamically) based on some conditions to send it to different file servers. Can i do it in my mapping Or i need to write a module for it.??
    Thanks in Advance
    Regards Prajwal

    Hi Naluvala,
    Based upon your condition you can directly set the file name using this UDF:
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        u201Chttp://sap.com/xi/XI/System/Fileu201D,
        u201CFileNameu201D);
    String valueOld = conf.get(key);
    if (valueOld != null) {
        String valueNew = valueOld.replaceAll(u201Cinputu201D,u201Doutputu201D);
        conf.put(key, valueNew);
    Instead of using get function to populate the valueOld, you can use your own logic.
    Regards,
    Sanjeev.

  • Dynamic file Name Generation-problem

    Hi Friends..
    in My Idoc to File..
    i want to generate Dynamic File Name ..
    i put the logic in Message mapping -java intialization section
    Container container = null;
    SimpleDateFormat simpledatFormat = new SimpleDateFormat("yyyyMMdd");
    Date date = new Date();
    String datewithYear = simpledatFormat.format(date);
    SimpleDateFormat simpledatFormat1 = new SimpleDateFormat("HHmmss");
    Date date1 = new Date();
    String datewithMs = simpledatFormat1.format(date1);
    DynamicConfiguration conf = ((DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION));
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http:/"+"/"+"sap.com"+"/"+"xi"+"/"+"XI"+"/"+"System"+"/"+"File" , "FileName");
    String oldFileName=conf.get(key);
    String valueNew;
    if( oldFileName == null){
    valueNew = "HRXML"+datewithYear+datewithMs+".xml";
    else{
    valueNew =oldFileName+datewithYear+datewithMs+".xml";
    //set the new filename
    conf.put(key, valueNew);
    and i did in reciever File adaper adaper specific settings..
    i am getting error sxmb_moni..
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_ZHRMD5_to_HRMasterData_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>java.lang.NullPointerException</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_ZHRMD5_to_HRMasterData_MM_: java.lang.NullPointerException</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    if we remove the dynamic File configuration  logic in message mapping ..i am getting the result..
    please guide me..

    Container container = null;
    DynamicConfiguration conf = ((DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION));
    bound to get a NPE as your variable container is not getting intialized to a valid object ref here...

  • Problem in dynamically file name generation procedure

    Hi All,
              I had scenario where i need to generate target filename dynamically for that i'm using UDF mentioned in the below blog :
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    to generate filename  for target file adapter.
    UDF used:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keyHeader1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "HeaderFieldOne");
    conf.put(keyHeader1, a);
    return "";
    While giving filename in receiver file adapter what should be the filename given in receiver file communication channel?
    Regards,
    VKG.

    Hi,
           My scenario is asynchronus scenario. When i use that messaging tool i'm getting following error:
    There was an error processing your request.
    com.sap.aii.af.ra.ms.impl.app.AdminException: Reading Messages from Archive failed, due to: null
    With the following stack trace:
                     java.lang.NullPointerException
         at com.tssap.dtr.client.lib.protocol.Connection.(Connection.java:304)
         at com.sap.archtech.archconn.UnqualifiedArchSession.(UnqualifiedArchSession.java:33)
         at com.sap.archtech.archconn.ArchSessionFactory.getSession(ArchSessionFactory.java:62)
         at com.sap.aii.af.ra.ms.impl.core.archiving.ArchivingJobController.getMessageBeans(ArchivingJobController.java:1380)
         at com.sap.aii.af.ra.ms.app.ArchivingBeanImpl.getMonitorBean(ArchivingBeanImpl.java:171)
         at com.sap.aii.af.ra.ms.app.ArchivingRIObjectImpl0_0.getMonitorBean(ArchivingRIObjectImpl0_0.java:868)
         at com.sap.aii.af.ra.ms.app.ArchivingRI_Stub.getMonitorBean(ArchivingRI_Stub.java:1518)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)
         at $Proxy348.getMonitorBean(Unknown Source)
         at jsp_monitor1228729032638._jspService(jsp_monitor1228729032638.java:464)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

  • File Module Generation: Error: java.lang.NullPointerException in RWB.

    Hello XI Xpert's,
    I am following below SDN blog to generate file module...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805
    I have done all steps as mentioned using NWDS. We have sucessfully deployed same on J2EE engine using SDM. SDM logs shows that it is sucessfully deployed.
    I have configured Sender File adapter to call my customised module.( Called before standard file module).
    But when I checked in RWB, its gives me error :
    Sender Adapter v2703 for Party '', Service 'BS_DEV_XI_401_NA':
    Configured at 2007-08-27 12:28:14 EDT
    History:
    - 2007-08-27 12:32:04 EDT: Retry interval started. Length: 2.000 s
    - 2007-08-27 12:32:04 EDT: Error: java.lang.NullPointerException
    - 2007-08-27 12:32:04 EDT: An unknown error occured.
    - 2007-08-27 12:32:04 EDT: Processing started
    - 2007-08-27 12:32:02 EDT: Error: java.lang.NullPointerException
    If I do not put any file in respective folder status of Sender Communication channel shows as green...as soon as put any file in folder its getting red with above mention error.
    I have gone thru almost all SDN blogs/thread ..I also tried to debug code as mentioned in thread..Error in Module Processing- java.lang.NullPointerException
    But unfortunately it never goes to that point...hence never updates Log.
    In audit log I am getting same message..
    2007-08-27 12:42:50 Error Attempt to process file failed with null
    2007-08-27 12:42:50 Error Attempt to process file failed with java.lang.NullPointerException
    2007-08-27 12:42:52 Success Channel Sys_Dev_File_Client: Entire file content converted to XML format
    2007-08-27 12:42:52 Success Send text file "/usr/sap/tmp/ifATJmgs.csv", size 120436, character encoding ISO646-US with QoS EO
    2007-08-27 12:42:52 Error Attempt to process file failed with null
    2007-08-27 12:42:52 Error Attempt to process file failed with java.lang.NullPointerException
    But could not find my Custom Message... There is any way by which I can check if its calling my Custom Module itself?
    There is any setting / parameters which we need to do on J2EE engine in order to activate call to custome module?
    Any help would be really appreciated.
    Nilesh

    It is strange, but in that document of yours it never says anything about the JNDI name in the ejb-j2ee-engine.xml file.
    Check this doc here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
    According to it, if you properly configure the ejb-j2ee-engine.xml file, then you'd call your module using "localejbs/<JNDIName>".
    Regards,
    Henrique.

  • File name generation in file adpater

    Hi PI Experts
    I am using File adapter at reciever end. My requirement is to generate file name as "x_mmddyyyy_y.csv". Means, I need to include current system date in between x and y. Please suggest how can get this. will variable substitution helps?
    Regards
    Siva

    hi ,
    "x_mmddyyyy_y.csv". Means, I need to include current system date in between x and y
    that is very simple by using "Dynamic Configuration" .
    1.Constant(X_) + 2.currentDate(Date)+3.concat 4.Concat5.Constant(_Y)6.Conact7.constant(.csv)+dyn.conf(UDF) -> target rootnode
    udf:
    String DynamicConfig(String a, Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,a);
    return "";
    further info:
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    thyanks,

  • File name generation with sequence number

    Hi All,
    My scenario is, File to File.  I need to generate the filenames at the target side like File1.xml, File2.xml..File9999.xml for each file triggered from source system. The interface tiggesrs multiple times in a day.
    For example, for the first time, 5 files triggered, need to generate File1.xml,File2.xml..File5.xml. After some time the interface might trigger with 10 files, then need to generate files as File6.xml,File7.xml....File15.xml . Once the file count reaches 9999 then need to generate the files from  1 (File1.xml)again.
    Could you please suggest me the possible solutions. For this any Lookups required?
    Regards,
    Praveen Kumar

    Hi Praveen,
    Case 1: If a field in source data carries the information regarding the sequence.
                 You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a  Ztable  to store the sequence number , a function module to fetch the number , and then use a UDF  in which you will implement the  RFC call logic.Then the same process ....      assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • ADP file number Generation

    Hi Guru's,
    I had created a custom Infotype 9001 to generate ADP file number.SAP HCM  will be the first point of data entry for creating and maintaining the employee record.  Data is then passed to third party systems for payroll processing and time keeping.The 3 fields(ADP file number , ADP company code and Badge number.) will be stored and maintained in infotype .
    The problem is with ADP file number.The logic is :This is a required input field. Personnel Actions New Hire, Convert  Non-employee to employee and Retirement  will automatically generate a new file number and populate this field. For the other personnel actions, users will be prompted with a pop-up window displaying the message u201CDoes the employee need a new file number?u201D.If NO then, the program finds the most recent ADP file number and populates the field with this number.If the program does not find any ADP file number, then the field should be open for user input.If YES, the program extracts the next generated number using function module u2013 u201DNUMBER_GET_NEXTu201D.
    ADP file number screen field  is ZADPFN.
    I am not able to write the code as i am very new to Implementation i.e How the ADP file number field will get populated?
    Do i need to declare  some variables with same name as screen fields?
    Please help in ABAP code.

    Mr Lonely wrote:
    Here is my situation.
    1. I generate file_name through a function.
    2. File name like File_DD_MM_YY_FLXXX.
    3. Now this FLXXX is the filenumber. It will be 1 for the 1st run of the day and for each of the new run it will be +1. Again next day it will start from 1.
    So right now I am using a sequence and resetting it at 12 AM to 0. Is it a good approach to solve the scenario? Any better idea?Hmm.. not sure I like the idea of resetting a sequence.
    Your case is an exception where one can consider serialisation - as it is unlikely that having to serialise, will have any significant performance impact on the file create processing. It is very different than requiring surrogate keys for OLTP.
    I would use a PL/SQL function - that uses a date as input parameter, and returns the next sequential file number for that date. Underneath, a table can be used (day,file-sequence). If no row for the existing day exists, a new row is inserted and file sequence set to 1. Serialisation would be done via standard row locking. With the lock on the day's row, being held for a minimal time (e.g. autonomous transaction instead of being part of the file process's transaction).

  • File Number Generation

    Hi,
    Here is my situation.
    1. I generate file_name through a function.
    2. File name like File_DD_MM_YY_FLXXX.
    3. Now this FLXXX is the filenumber. It will be 1 for the 1st run of the day and for each of the new run it will be +1. Again next day it will start from 1.
    So right now I am using a sequence and resetting it at 12 AM to 0. Is it a good approach to solve the scenario? Any better idea?

    Mr Lonely wrote:
    Here is my situation.
    1. I generate file_name through a function.
    2. File name like File_DD_MM_YY_FLXXX.
    3. Now this FLXXX is the filenumber. It will be 1 for the 1st run of the day and for each of the new run it will be +1. Again next day it will start from 1.
    So right now I am using a sequence and resetting it at 12 AM to 0. Is it a good approach to solve the scenario? Any better idea?Hmm.. not sure I like the idea of resetting a sequence.
    Your case is an exception where one can consider serialisation - as it is unlikely that having to serialise, will have any significant performance impact on the file create processing. It is very different than requiring surrogate keys for OLTP.
    I would use a PL/SQL function - that uses a date as input parameter, and returns the next sequential file number for that date. Underneath, a table can be used (day,file-sequence). If no row for the existing day exists, a new row is inserted and file sequence set to 1. Serialisation would be done via standard row locking. With the lock on the day's row, being held for a minimal time (e.g. autonomous transaction instead of being part of the file process's transaction).

  • Autovue 19.3 Web version - Issues with seeing CAD files & image generation

    We recently upgraded to AutoVue 19.3 and face the following 2 issues
    1. When using the AutoVue applet with the latest JDK 6 update 17, we are unable to see any images in the applet. We were able to see images after downgrading to JDK 6 update 11.
    2. AutoVue is also being used to generate isometric (top, down, left, right, front, back) which are used in related reports. This feature is also not working with version 19.3
    Any help will be appreciated
    Regards

    This is most likely due to a known bug in the Sun JRE, as discussed in Oracle KM Note 755555.1. There are a couple of alternatives you could try rather than downgrading your client JRE:
    1. Disable the optimized rendering option in AutoVue client.
    a. Go to the applet menu item Options -> Configuration -> 3D.
    b. Uncheck option "Enable Optimized Rendering (requires restart)".
    c. Restart the AutoVue applet.
    2. Use a special API command from Sun to disable the mixing of lightweight / heavyweight modes in the JVM. This behavior can be disabled with a runtime parameter until it is incorporated into the actual AutoVue applet in a future release. To do this you need to:
    a. Open the Java Control Panel. (In Windows go to Start -> Control Panel -> Java)
    b. Go to the "Java" tab
    c. Select the "View" button under "Java Runtime Environment Settings"
    d. Add the following runtime parameter on the line for product 1.6.0_14: -Dsun.awt.disableMixing=true
    e. Click OK and OK
    f. Launch a new browser window and test viewing a 3D file again.
    Hope this helps.

  • Temporary file Generation issue - file Receiver Adapter(NFS)

    Hi Experts,
    We are using Dynamic Configuration for generating the Dynamic File name as per the requirement in the File receiver communication channel with transport protocol NFS. As, per the requirement we need to use the "Use Temporary File" in write mode under processing parameter of File Receiver channel - as, the  temporary file creation is one of the requirement of the target system.
    We have used the dynamic configuration for generating the Dynamic File name so, i have set the Adapter specific Message attribute for channel .
    Use Adapter Specific Message Attribute
    Fail if Adapter-Specific  Message Attributes
    File Name
    Temporary Name Scheme for Target File Name
    Now , at the run-time due to the last parameter Channel is giving the error.
    " Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'TargetTempFileName' was configured as mandatory element, but was not supplied in the XI Message header"
    Request you all to suggest the workaround that the with Dynamic File Name generation we, can use the temporary file name generation scheme.
    Regards,
    Gaurav Jindal

    Hi ,
    Thanks for the reply.
    If we are using the ASMA with the specific parameters:
    Use Adapter Specific Message Attribute
    Fail if Adapter-Specific Message Attributes
    File Name
    And I have choose the  " Use Temporary File" in the Write mode of Processing Parameters.
    As, per your suggestion, how we track the temporary file name is created as, i am not able to see that in the audit log.
    Regards,
    Gaurav Jindal

Maybe you are looking for

  • Streaming videos via iPhone 4S since downloading iOS7.1

    Since I've downloaded the latest iOS version to my iPhone 4s streaming any video and/or using airplay through my wireless connection is extremely slow and/or does not work at all (I get a request timed out notification). Looking for any advice as to

  • No GMail in Firefox 7

    I cannot get Firefox 7 to open my GMail though it is quick in Chrome. It does show the GMail account at the top but then fails to open and runs out of time. Windows 7 Professional FireFox 7.0.1

  • BEX: Aggregation question

    Hi to all, I think I need some help of a BEX expert. I have an issue with a query. Following scenario: In my cube I post the following values: Org-unit Employee Position P E 00000001 00000001 00000001 0 1 00000001 00000002 00000001 0 1 00000001 00000

  • How to determine which user uses which database-object

    Hi, currently we are in the process of consolidating our databases. One of the neccessary steps is to figure out which user connects to the database at all. That's easy, we implemented a logon-trigger and log the collected information into a separate

  • Executewithparams default values

    hi i'm having trouble using the executewithparamenter operation and was hoping for a little help. I'm trying to make a page with a bar graph on it. I created a view object with a query that has two bind variables, start_date and end_date. I dragged t