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
Invalid Prefix
Invalid Prefix
- Attachments
-
- prefix.JPG (44.9 KiB) Viewed 1691 times
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Invalid Prefix
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.
Bob Richards, Senior Software Developer, SoftPro
Re: Invalid Prefix
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
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
- Attachments
-
- profile.JPG (33.49 KiB) Viewed 1674 times
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Invalid Prefix
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.
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.
Bob Richards, Senior Software Developer, SoftPro