Activity Log creation issue - "memberId" must be a number

I’m trying to create a hiking activity log for the pack, have added the information for the hike, and then clicked the

@BenSamways - so what is box you are clicking on

Great, this forum removes stuff on entering special characters..
OK i created, the activity, used the select all button to add all youth and adults, removed those not applicable, and then clicked the Record and Finish button.

It thought about it for a few seconds and then threw a toast message for Error Invalid Request - “memberId” must be a number

It didn’t tell me which member has an issue, just won’t let me save.

@BenSamways - did this also include parents ?

It did - I am partly through finding the issue (as a Software QA I can use Dev Tools to help) so the payload is showing one adult with a memberId of null. I just need to find out which one that is now…

I presume that the userId field is the Scoutbook Plus user id (14103610)

@BenSamways - yes that is correct. You could try a custom roster report to present the member id of all parents and perhaps see the one without one

Found it, and removed that parent so that the log would save. How did the parent get added in the Select All list though if they don’t have a BSA member Id? They aren’t in our list of adult members from a roster report, either (his wife and son are, but not him - so he has a SB Id but not a BSA Id, or they’re not joined up, maybe?)

Probably a manually entered parent by a user in Legacy

I reported it in - just a hanger from getting off the legacy platform

Maybe, as part of the select all functionality, add in a null check on memberId, and if the app sees a null, it doesn’t add that member?

yeah there are a few simple solutions - not throwing the error is easiest - it is a head shake

26 years of manual software testing helped me here :laughing: