Skip to main content
Nintex Community Menu Bar

Cannot copy InfoPath form from K2 to SharePoint: The request failed with HTTP status 401: Unauthorized

  • October 23, 2007
  • 1 reply
  • 6 views

Forum|alt.badge.img+2

Hi


I've recently migrated a K2 process from our dev environment into our test environment. Although the code below has not changed between each version it is now generating an error in K2:


 if(spsList.UploadDocumentFromUrl(strWorkSpaceName, FileURL, oByte, true, ref errMess))
 {
    Console.WriteLine("Trying to upload document from url...");
    //do more stuff
 }


The error that is thrown is: The request failed with HTTP status 401: Unauthorized. What is the cause of this error? Why has it begun to occur even though this code has not changed?


Best Regards
Tim

1 reply

Forum|alt.badge.img+8
  • October 23, 2007

Hi Tim,


I suspect that the service account for the K2.net 2003 Service is diffeent on the test environment and that the service account used does not have permissions on the SharePoint site.