We have recently upgraded Appian environment to 16.1. However, after upgrade the

A Score Level 2
We have recently upgraded Appian environment to 16.1. However, after upgrade the shpInvoke() function has stopped working. For all the requests it is giving one response.
[success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:sharepointinvoke function error,message:The external server for this system [key=SharepointExternalKey] generated an exception when calling a function [shpInvoke]. Details from external system: java.lang.IllegalArgumentException: Not a JSON object: ,detail:]]

It is giving the same response even for invalid tp credentials. I tried using same code in 7.9 and it is working fine.
I have also verified that SharePoint server is Accessible from Appian server and I am able to telnet it. Any pointers please?

OriginalPostID-194349

OriginalPostID-194349

  Discussion posts and replies are publicly visible

  • Hi Tajinder,

    Are both requests (7.9 and 16.1) coming from the same network? Meaning, are they both on premise? Also, does this work when you go to the URL from a browser? Have you taken a look at the IIS logs? Perhaps that can give us a little more detail on the response from the sharepoint server. I presume on the sharepoint side, there aren't any errors when the credential is correct?
  • Hi Vamsi, Yes the rest service is working fine in the browser. Appian server log is giving the same error as pasted above. Also I have included web-parts in SharePoint server and they are running fine. Its just that after upgrade shpInvoke() stopped working.
  • We also tried fetching the documents from SharePoint using shpInvoke() function, but we faced the same error
    [success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:sharepointinvoke function error,message:The external server for this system [key=SharepointExternalKey] generated an exception when calling a function [shpInvoke]. Details from external system: java.lang.IllegalArgumentException: Not a JSON object: ,detail:]]
    Please could you suggest on this.