Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2019-09-20 07:24 AM
Hi All,
I am trying to use webservices API to Perform Mail Merge. I am using the below code. But I am getting this error. Please let me know what I can do to fix it.
CODE:
$ps = New-WebServiceProxy -Uri $api_url1 -Class Record -Namespace webservice
[Byte[]] $mailmerge= $ps.PerformMailMerge($session_token, 256146 , 1);
ERROR:
Exception calling "PerformMailMerge" with "3" argument(s): "Server was unable to process request. ---> There was an error
performing the mail merge. ---> There was an error performing the Mail Merge but no failure was reported to Web Service.
Additional information can be found in the log file."
At line:37 char:1
+ Byte[] $mailmerge= $ps.PerformMailMerge($session_token, 256146 , 1);
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SoapException
2019-09-20 08:26 AM
Pooja, have you looked and the Archer Jobs or Archer W3WP logs to see if there's further details about why it failed?
Advisory Consultant
2019-09-23 02:23 AM
David,
I'm new to archer and I am not aware of Archer Jobs or W3WP logs. Can you please guide me how to navigate to them?
Is it from Archer back-end or is there any report for failed logs?
2019-09-23 07:28 AM
Pooja, the logs are on the back-end and you'd have to check the Archer Control Panel (back-end) to see where they are located.
Advisory Consultant
2019-09-23 01:32 PM
Thanks David,
Unfortunately I do not have access to Control Panel. I have tried both PerformMailMerge and GetAsyncMailMergeDocument Webservices calls.
both run into an infinite loop of Bytes.
I tries to use Jeff Letterman's API toolBox as well. The script ran into an infinite loop there as well.
2019-09-23 04:17 PM
Are you calling StartAsyncMailMerge first?
Advisory Consultant
2019-09-24 02:19 AM
Yes, I used StartAsyncMailMerge to get the exportId first
2019-09-24 03:27 PM
At this point Pooja, it's hard to tell what's going on without looking at the logs.
Does running the mail merge through the UI work without any issues?
Advisory Consultant
2019-09-27 11:37 AM
Thanks David Petty for all the inputs. I have got this working now. There seemed to have been a glitch in the backend and the PerformMailMerge() worked after a few days on it's own.
Although my purpose has been served using PerformMailMerge(), there is still a something wrong with GetAsyncMailMergeDocument Webservices call.
2019-09-27 12:00 PM
Glad to help Pooja.
I'd open a ticket with support on GetAsyncMailMergeDocument call and see if it's known defect or not.
Advisory Consultant