The createPartyRole service doesn't require a Person, only a Party and
a RoleType.
Are you sure you understand well the error message ? Maybe you can copy it here.

Cimballi


On Mon, Feb 1, 2010 at 4:14 PM, Patrick <[email protected]> wrote:
> In a simple-method, I create a user and give that user a "vendor" role
> with the createUserLogin and createPartyRole services.
>
> I can 1) create a user  and 2) give a user the role of "vendor".  The
> problem is I can't  create a user and give THAT user a vendor role in
> a single method.
>
> When I try, createPartyRole complains that the target "Person" doesn't
> exist, because it has a foreign key constraint.  So I think the
> createUserLogin hasn't completed.  So I need some kind of <sleep>
> until the createUserLogin is done.  What do you suggest?
>
> Thanks for all your help so far.  Patrick
>

Reply via email to