Adding a JobPart with Service Connect

Why not first do a getbyid to return the jobentry dataset.

Then perform the actions you describe?





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Steven Pybus
Sent: 24 September 2008 01:03
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Adding a JobPart with Service Connect



I'm invoking three web services:

1 JobEntryService.GetNewJobPartRequest
- sending it the Company and existing Job that I want to add a job
part to.

2 JobEntryService.ChangeJobPartPartNumRequest
- sending it the JobHead and JobPart data that no 1 above returned
but replacing the JobPart Parnum w/ the actual.

3 JobEntryService.UpdateRequest
- sending it the JobHead and JobPart data that no 2 above returned
but replacing five JobPart fields with the actuals.

Following 3 is where it returns the error. It's weird in that you've
got to have a job to add a job part to it, but it's insiting on a
unique value.

Thanks for considering what might be causing this.

-Steve P.

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Stephen Edginton" <stephene@...> wrote:
>
> Have you tried testing with BL tester.
>
> It could be an error in the webservice dll's
>
> The BL tester uses the same objects as the Client, so if you can do it
> in the client it will work in BL Tester.
>
> However the Web service dll's do a little more than just wrappers
around
> these and sometime introduce there own errors.
>
>
>
> Are you calling getbyid first etc etc provide a little more detail
>
>
>
> Regards,
>
> Stephen
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
> Of Steven Pybus
> Sent: 24 September 2008 00:35
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Adding a JobPart with Service Connect
>
>
>
> I'm getting a strange error in my workflow when I try and add a
> JobPart to an existing job using service connect. When I try and
> execute the JobEntryService.Update, I get and error that says
> 'Company, JobNum' is constrained to be unique. When I turn tracing on
> and do this manually, the only company and job number returned in the
> data is the current job. Has anyone been successful in getting this
> done? We are using Vantage 8.03.305L.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>



[Non-text portions of this message have been removed]
I'm getting a strange error in my workflow when I try and add a
JobPart to an existing job using service connect. When I try and
execute the JobEntryService.Update, I get and error that says
'Company, JobNum' is constrained to be unique. When I turn tracing on
and do this manually, the only company and job number returned in the
data is the current job. Has anyone been successful in getting this
done? We are using Vantage 8.03.305L.
Have you tried testing with BL tester.

It could be an error in the webservice dll's

The BL tester uses the same objects as the Client, so if you can do it
in the client it will work in BL Tester.

However the Web service dll's do a little more than just wrappers around
these and sometime introduce there own errors.



Are you calling getbyid first etc etc provide a little more detail



Regards,

Stephen

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Steven Pybus
Sent: 24 September 2008 00:35
To: vantage@yahoogroups.com
Subject: [Vantage] Adding a JobPart with Service Connect



I'm getting a strange error in my workflow when I try and add a
JobPart to an existing job using service connect. When I try and
execute the JobEntryService.Update, I get and error that says
'Company, JobNum' is constrained to be unique. When I turn tracing on
and do this manually, the only company and job number returned in the
data is the current job. Has anyone been successful in getting this
done? We are using Vantage 8.03.305L.





[Non-text portions of this message have been removed]
I'm invoking three web services:

1 JobEntryService.GetNewJobPartRequest
- sending it the Company and existing Job that I want to add a job
part to.

2 JobEntryService.ChangeJobPartPartNumRequest
- sending it the JobHead and JobPart data that no 1 above returned
but replacing the JobPart Parnum w/ the actual.

3 JobEntryService.UpdateRequest
- sending it the JobHead and JobPart data that no 2 above returned
but replacing five JobPart fields with the actuals.

Following 3 is where it returns the error. It's weird in that you've
got to have a job to add a job part to it, but it's insiting on a
unique value.

Thanks for considering what might be causing this.

-Steve P.


--- In vantage@yahoogroups.com, "Stephen Edginton" <stephene@...> wrote:
>
> Have you tried testing with BL tester.
>
> It could be an error in the webservice dll's
>
> The BL tester uses the same objects as the Client, so if you can do it
> in the client it will work in BL Tester.
>
> However the Web service dll's do a little more than just wrappers around
> these and sometime introduce there own errors.
>
>
>
> Are you calling getbyid first etc etc provide a little more detail
>
>
>
> Regards,
>
> Stephen
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Steven Pybus
> Sent: 24 September 2008 00:35
> To: vantage@yahoogroups.com
> Subject: [Vantage] Adding a JobPart with Service Connect
>
>
>
> I'm getting a strange error in my workflow when I try and add a
> JobPart to an existing job using service connect. When I try and
> execute the JobEntryService.Update, I get and error that says
> 'Company, JobNum' is constrained to be unique. When I turn tracing on
> and do this manually, the only company and job number returned in the
> data is the current job. Has anyone been successful in getting this
> done? We are using Vantage 8.03.305L.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>