Page 1 of 1

Invalid Prefix

Posted: Thu May 28, 2020 4:35 pm
by patel
Hi

We are getting invalid prefix error on line 192.

I have made sure that Profile we are connected to has that prefix available. We are getting this error on multiple profiles but not all.

Thanks,
Parth

Re: Invalid Prefix

Posted: Fri May 29, 2020 11:12 am
by BobRichards
I can't tell what might be happening. Make sure the current profile is what you expect. We have not add any reported problems in this area.

Re: Invalid Prefix

Posted: Fri May 29, 2020 3:45 pm
by patel
Hi Bob,

This is how we are setting profile

selectServer.ChooseProfile += new EventHandler<ChooseProfileEventArgs>(chooseProfile);

chooseProfile method code in screenshot below.

Do you see any issue in code ? Or is there any place in Select Admin where i should check (in case i am missing something when i created this profiles)

Thanks,
Parth

Re: Invalid Prefix

Posted: Fri May 29, 2020 4:55 pm
by BobRichards
This is called if the user has more than one profile and none are selected as the default.

So what happens if the desired profile (Profile) is not in the collection of available profiles for the user? Does this routine ever leave the SelectedProfile unspecified? If nothing else, you should log the error. I would put an "else" there with a breakpoint to rule out any issues.

I'm not sure what would happen if you didn't specify a profile. But if there is no profile, then the Numbering Manager that validates prefixes may be confused. Probably the suffix validation is just as confused. Make sure you specify a profile.