Remedy - Workflow - Performing PERFORM-ACTION-SAVE-ATTACHMENT through Filter action gives error

Version 1
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Remedy AR System Server


    COMPONENT:

    Remedy AR System Server


    APPLIES TO:

    AR Server : 9.1.02 OS Version : Windows/Linux



    PROBLEM:


    -   While performing run process “PERFORM-ACTION-SAVE-ATTACHMENT” through Filter action gives below error :
    ......................
    Error : java.lang.NumberFormatException: For input string: "551;352;NAC-Test.csv
    ......................
    -   Following error could be seen in the server side API/SQL/Filter log while reproducing problem.
     
    Error Snippet from Logs :
    ……………………………………………………………………………………………………………………………………….
     
    <FLTR> <TID: 0000000357> <RPC ID: 0001823211> <Queue: Fast      > <Client-RPC: 390620   > <USER: TWRIG01                                      > <Overlay-Group: 1         > /* Mon Jul 17 2017 14:28:30.3080 */ Command: PERFORM-ACTION-SAVE-ATTACHMENT $304315230$ E:\ABC.csv
    <FLTR> <TID: 0000000357> <RPC ID: 0001823211> <Queue: Fast      > <Client-RPC: 390620   > <USER: TWRIG01                                      > <Overlay-Group: 1         > /* Mon Jul 17 2017 14:28:30.3080 */ PERFORM-ACTION-SAVE-ATTACHMENT 551;352;NAC-Test.csv
    java.lang.NumberFormatException: For input string: "551;352;NAC-Test.csv"
                    at java.lang.NumberFormatException.forInputString(Unknown Source) ~[na:1.8.0_131]
                    at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_131]
                    at java.lang.Integer.parseInt(Unknown Source) ~[na:1.8.0_131]
                    at com.bmc.arsys.server.domain.util.process.FormFieldProcessEvaluatorFactory$SaveAttachProcessEvaluator.execute(FormFieldProcessEvaluatorFactory.java:891) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.util.process.ProcessEvaluatorFactory.executeProcess(ProcessEvaluatorFactory.java:238) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.util.process.ProcessEvaluatorFactory.execute(ProcessEvaluatorFactory.java:195) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.actions.RunProcessActionExecutor.execute(RunProcessActionExecutor.java:42) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.actions.RunProcessActionExecutor.execute(RunProcessActionExecutor.java:1) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.WorkflowExecutorImpl.executeAction(WorkflowExecutorImpl.java:117) ~[bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.FilterExecutorImpl.executePhase3(FilterExecutorImpl.java:1641) [bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.FilterExecutorImpl.execute(FilterExecutorImpl.java:762) [bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.runtime.impl.FilterExecutorImpl.execute(FilterExecutorImpl.java:1) [bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.domain.service.impl.EntryServiceImpl.serviceEntry(EntryServiceImpl.java:2220) [bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.facade.impl.EntryFacadeImpl.serviceEntry_aroundBody138(EntryFacadeImpl.java:410) [bundlefile:9.1.02-SNAPSHOT]
                    at com.bmc.arsys.server.facade.impl.EntryFacadeImpl$AjcClosure139.run(EntryFacadeImpl.java:1) [bundlefile:9.1.02-SNAPSHOT]
    ……………………………………………………………………………………………………………………………………….
     


    CAUSE:

    - It was found that the Run Process was written in-correctly using Dollar symbol "$" with the field id, due to Dollar symbol AR Server was considering the field id as value during the run time and converted it to a value.


    SOLUTION:

    - Open the Filter in the Developer studio.
    - Removed the "$" symbol from the "Run Process" and saved the filter.
     
    Example :
     
    Incorrect Action:
    PERFORM-ACTION-SAVE-ATTACHMENT $304315230$ E:\Test.csv
    Correct Action:
    PERFORM-ACTION-SAVE-ATTACHMENT 304315230 "E:\Test.csv"
     


    Article Number:

    000139578


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles