Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Not able to call the rest service, failing while loading the RestSharp.dll. Please suggest me if i am missing anything

  • 1.  Not able to call the rest service, failing while loading the RestSharp.dll. Please suggest me if i am missing anything

    Posted Tue April 27, 2021 06:29 PM

    D:\Datacap\dcshared\NET\FNWLValidations.dll. AssemblyVersion: 9.1.7.0. AssemblyFileVersion: 9.1.7.0 64Bit: False

    13:18:11.322 (31) t:16BC p:173A518 call "Datacap.Libraries.FNWLValidations.Actions->Datacap.Libraries.FNWLValidations.Actions->policyLookup"

    13:18:11.323 (0) t:16BC p:173A518 Action execution failed, ApplicationException [0x80020009 (DISP_E_EXCEPTION)] : object [Datacap.Libraries.FNWLValidations.Actions] method [policyLookup]

    13:18:11.323 (0) t:16BC p:173A518 result 1[1] = false

    13:18:11.323 (0) t:16BC p:173A518 /call

    13:18:11.323 (0) t:16BC p:173A518 action returned false

    13:18:11.323 (0) t:16BC p:173A518 execute statement On Action False

    13:18:11.323 (0) t:16BC p:173A518 nothing to exec

    13:18:11.323 (0) t:16BC p:173A518 /execute statement On Action False

    13:18:11.323 (0) t:16BC p:173A518 execute statement On Action Abort

    13:18:11.323 (0) t:16BC p:173A518 nothing to exec

    13:18:11.323 (0) t:16BC p:173A518 /execute statement On Action Abort

    13:18:11.323 (0) t:16BC p:173A518 /action

    13:18:11.323 (0) t:16BC p:173A518 /func

    13:18:11.323 (0) t:16BC p:173A518 /rule

    13:18:11.323 (0) t:16BC p:173A518 /dco

    13:18:11.323 (0) t:16BC p:173A518 /ruleset

    13:18:11.323 (0) t:16BC p:173A518 Error (385875969=hex:17000001). In CIMainAlgorithm::execute4DCO: Aborting: Action [policyLookup] requested abort [api source:]

    13:18:11.323 (0) t:16BC p:173A518 EXCEPTION: code="385875969" msg="Aborting: Action [policyLookup] requested abort" loc="CIMainAlgorithm::execute4DCO" API=""

    13:18:11.323 (0) t:16BC p:173A518 CIMainAlgorithm::Execute::finalize_after_process:

    13:18:11.323 (0) t:16BC p:173A518 execute statement On Process End



    #IBMDatacap
    #Support
    #SupportMigration


  • 2.  RE: Not able to call the rest service, failing while loading the RestSharp.dll. Please suggest me if i am missing anything

    Posted Tue April 27, 2021 10:29 PM

    Hello Chandra,

    For starter I don't see this file in my 9.17 ifix 4 system ie. Datacap\dcshared\NET\FNWLValidations.dll.

    If you are using wTM REST api. This have document on how to use and call the wTM REST API. You can use logman to test the logon and connection.

    Ref: https://www.ibm.com/docs/en/datacap/9.1.6?topic=reference-datacap-web-services-rest-api-methods

    There is a ValidationsAndTextAdjustments.dll which I can see in dstudio. There is also a Validations.dll in the RRS directory and it's in dstudio also.

    Not familiar with Datacap.Libraries.FNWLValidations.Actions. Must be a custom action?



    #IBMDatacap
    #Support
    #SupportMigration


  • 3.  RE: Not able to call the rest service, failing while loading the RestSharp.dll. Please suggest me if i am missing anything

    Posted Tue April 27, 2021 10:38 PM

    Datacap.Libraries.FNWLValidations.Actions, is my custom action developed and in this one of the operation is policylookup(), in this operation I wrote rest client (consumed a rest service using restSharp.dll). when this operation is called from RuleRunner, i see the exception as shown in the above post.


    Please let me know if I am missing anything. Or Provide any sample C# project where you invoked a third part rest service.. That will really help me.

    Thanks

    Chandra



    #IBMDatacap
    #Support
    #SupportMigration