custom-learning-office-365
custom-learning-office-365 copied to clipboard
Reprise: "I can't create subcategories under the Scenarios category"
Describe the bug
@juliemturner, I'm bringing you in directly due to your correspondence on the virtually identical bug previously posted on August 5, 2020: "I can't create subcategories under the Scenarios category" (https://github.com/pnp/custom-learning-office-365/issues/334).
Hi, I've been working with a client to set up a custom learning pathways experience. The idea was to simply set up three content packs, each only containing high-level categories so that they could create sub-categories, playlists, and assets via the UI on their own without assistance or any intervention from our end.
Now, the three content packs are
- Technical
- Business
- Interpersonal
I mention this because only the "Technical" content pack is experiencing the issue of not being able to create subcategories under certain categories.
Currently, the "Technical" content pack looks like this:
- Company Knowledge -- Company direction -- Office 365: Excel -- Tender writing -- [working subcategories exist here and we can create more]
- Computer Science -- [working subcategories exist here and we can create more]
- Data Science -- [working subcategories exist here and we can create more]
- Industry Knowledge -- [working subcategories exist here and we can create more]
- Modelling -- [working subcategories exist here and we can create more]
- LITERALLY ANY OTHER CATEGORY THAT IS CREATED -- [cannot create subcategories via UI]
When attempting to create any subcategories under any categories as depicted above in the CustomLearningAdmin site, I get a console error in dev tools:
π M365LP:CustomLearningAdmin (upsertSubCategory) - TypeError: Cannot read properties of undefined (reading 'SubCategories')
To Reproduce
I cannot say exactly what triggered it, but:
- The "Technical" content pack was the first one to get provisioned;
- It has seen the most changes due to a shift in requirements leading us to end up with a vastly different approach to layout/structure;
- I don't believe any Categories have had their IDs changed;
- Categories have had their names changed;
- Audiences were added, removed, and generally shifted around the categories
Way To Fix (by way of reset and data loss - NOT an option)
Simply recreating the content pack from https://infexious-dev.github.io/tf-learning-pathways-technical/custom/ resets everything, giving the content pack a new Id in the CustomConfig list and everything works as expected, without a single issue. This is not an option due to the sheer amount of data currently present as custom config.
I think the cause is because the existing content pack has seen quite a few changes that something is inherently broken with in the CustomConfig list.
Screenshots
These are the items in "CustomConfig" from which I have exported the "JSONData" field.
Learning Pathways version number
4.3.1.0 (fresh install via look book service)
Attachments
I've attached five files spread across two .zip files:
A "metadata.json" which dictates the layout of the "Technical" content pack. There are no assets or playlists directly in the content pack. Note please that I have removed the additional categories that aren't working as the client needed to go live with their users.
I've also attached a .zip "CustomSubCategories.json", "CustomConfig-1.json", "CustomConfig-2.json", and "CustomConfig-3.json" are all exports of respective JSONData fields from the "CustomConfig" list. See the screenshot above for context.
Hi @tandrasi,
Thanks for reporting the issue. Please allow us sometime to replicate the issue in our side and get back to you.
Hi @tandrasi ,
Just to inform you, we are still looking into this issue. Will keep you posted. Thanks!
Good morning, any update on this? I have a customer that is experiencing the same exact issues.
Hi @lamargardner565 ,
This seems to be a bug and Derek would be checking on that to fix it.
The issue happens when I have some Categories and SubCategories already created in the custom content pack and then if I try to add new Category in Metadata.json file as given below. { "Id": "f4874a2c-8788-4631-93ac-d5203a888009", "Name": "Business Management", "Image": "", "TechnologyId": "", "SubjectId": "", "Source": "", "SubCategories": [] }
Once I refresh the admin webpart after adding the new Category in the metadata.json file, an entry for the above category will be automatically added to the JSONData of the "CustomConfig" item but not to the "CustomSubCategories" item. This missing entry in the CustomSubCategories item is throwing an error.
As a workaround, I have manually added the below entry in the JSONData of the CustomSubCategories item and refreshed the webpart. Then tried to add a SubCategory under this new Category from UI and it worked as expected. { "Id": "f4874a2c-8788-4631-93ac-d5203a888009", "Name": "Business Management", "Image": "", "TechnologyId": "", "SubjectId": "", "Source": "", "SubCategories": [], "Path": [ "f4874a2c-8788-4631-93ac-d5203a888009" ] }
Thank you for the update. Once this is fixed will it update in my environment, or will I have to redeploy the learning pathways solution? My concern is that my customer will lose all their customizations if they must redeploy the solution.
Lastly, is there anything that I need to do on my end ?
From: v-prigunasek @.> Sent: Wednesday, March 29, 2023 4:13:17 AM To: pnp/custom-learning-office-365 @.> Cc: Lamar Gardner @.>; Mention @.> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
Hi @lamargardner565https://github.com/lamargardner565 ,
This seems to be a bug and Derek would be checking on that to fix it.
The issue happens when I have some Categories and SubCategories already created in the custom content pack and then if I try to add new Category in Metadata.json file as given below. { "Id": "f4874a2c-8788-4631-93ac-d5203a888009", "Name": "Business Management", "Image": "", "TechnologyId": "", "SubjectId": "", "Source": "", "SubCategories": [] }
Once I refresh the admin webpart after adding the new Category in the metadata.json file, an entry for the above category will be automatically added to the JSONData of the "CustomConfig" item but not to the "CustomSubCategories" item. This missing entry in the CustomSubCategories item is throwing an error.
As a workaround, I have manually added the below entry in the JSONData of the CustomSubCategories item and refreshed the webpart. Then tried to add a SubCategory under this new Category from UI and it worked as expected. { "Id": "f4874a2c-8788-4631-93ac-d5203a888009", "Name": "Business Management", "Image": "", "TechnologyId": "", "SubjectId": "", "Source": "", "SubCategories": [], "Path": [ "f4874a2c-8788-4631-93ac-d5203a888009" ] }
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1488135943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXSCYTMP37JB77ORSGTW6PVJ3ANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.***>
Hi @dcashpeterson , Could you please provide your inputs on the above query? Thanks!
I wanted to update you @v-prigunasek the customer does not use content packs for there deployment of solutions. They are simply using the out of the box creation of new categories.
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: v-prigunasek @.> Sent: Wednesday, March 29, 2023 6:17 AM To: pnp/custom-learning-office-365 @.> Cc: Lamar Gardner @.>; Mention @.> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
Hi @dcashpetersonhttps://github.com/dcashpeterson , Could you please provide your inputs on the above query? Thanks!
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1488325178, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXWJFYBVOVB6TOIIYYLW6QD3PANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.@.>>
Okay, @lamargardner565. This issue was originally created for content packs and since you have mentioned the user is experiencing the same exact issue, I assumed it would be a content pack. In this case, could you please create a separate issue to track it and share us the screenshots and logs to troubleshoot the error? Thanks
Do I have to resubmit if this is technically separate from the post I replied to regarding the content packs? The screen shots and the information that I provided doesnβt show anything with content packs in it.
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: v-prigunasek @.> Sent: Wednesday, March 29, 2023 9:53 AM To: pnp/custom-learning-office-365 @.> Cc: Lamar Gardner @.>; Mention @.> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
Okay, @lamargardner565https://github.com/lamargardner565. This issue was originally created for content packs and since you have mentioned the user is experiencing the same exact issue, I assumed it would be a content pack. In this case, could you please create a separate issue to track it and share us the screenshots and logs to troubleshoot the error? Thanks
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1488660163, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXXJY6HE32INLN4RFSLW6Q5DNANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.@.>>
Good morning, any update on this? I have a customer that is experiencing the same exact issues.
I got confused with this post. Could you please confirm whether the user is facing the issue that you have recently created? https://github.com/pnp/custom-learning-office-365/issues/726 Thanks!
I will create a different ticket. I am not sure how issue #697 and #726 combined.
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: v-prigunasek @.> Sent: Wednesday, March 29, 2023 10:08 AM To: pnp/custom-learning-office-365 @.> Cc: Lamar Gardner @.>; Mention @.> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
Good morning, any update on this? I have a customer that is experiencing the same exact issues.
I got confused with this post. Could you please confirm whether the user is facing the issue that you have recently created? #726https://github.com/pnp/custom-learning-office-365/issues/726 Thanks!
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1488691694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXS27FIHRFKYMEEBP73W6Q627ANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.@.>>
Good morning,
New request submitted:
(Not a Content Pack) Edits to a custom category/playlist/Asset within Microsoft 365 Learning Pathways doesn't hide properly after its saved Β· Issue #727 Β· pnp/custom-learning-office-365 (github.com)https://github.com/pnp/custom-learning-office-365/issues/727
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: Lamar Gardner Sent: Wednesday, March 29, 2023 10:10 AM To: pnp/custom-learning-office-365 @.>; pnp/custom-learning-office-365 @.> Cc: Mention @.***> Subject: RE: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
I will create a different ticket. I am not sure how issue #697 and #726 combined.
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: v-prigunasek @.@.>> Sent: Wednesday, March 29, 2023 10:08 AM To: pnp/custom-learning-office-365 @.@.>> Cc: Lamar Gardner @.@.>>; Mention @.@.>> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
Good morning, any update on this? I have a customer that is experiencing the same exact issues.
I got confused with this post. Could you please confirm whether the user is facing the issue that you have recently created? #726https://github.com/pnp/custom-learning-office-365/issues/726 Thanks!
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1488691694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXS27FIHRFKYMEEBP73W6Q627ANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.@.>>
@lamargardner565 let me know if this issue is resolved with your other post.
Good morning,
My customer is in the process of testing this and will let you know what I get.
V/R Lamar R. Gardner Cloud Solution Architect β Engineering Microsoft Federal | Business Applications SharePoint | Dynamics 365 CRM E: @.@.> | E: @.@.> [Graphical user interface, application Description automatically generated]
From: Derek Cash-Peterson @.> Sent: Monday, April 24, 2023 6:24 AM To: pnp/custom-learning-office-365 @.> Cc: Lamar Gardner @.>; Mention @.> Subject: Re: [pnp/custom-learning-office-365] Reprise: "I can't create subcategories under the Scenarios category" (Issue #697)
@lamargardner565https://github.com/lamargardner565 let me know if this issue is resolved with your other post.
β Reply to this email directly, view it on GitHubhttps://github.com/pnp/custom-learning-office-365/issues/697#issuecomment-1519860163, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZGSAXR4LDQYWVFE4JNJWKTXCZIDNANCNFSM6AAAAAAQE4BJFY. You are receiving this because you were mentioned.Message ID: @.@.>>
Hi Derek,
Please close this ticket. It looks like the bug fixed worked. I had some other colleagues test this. Thank you again for all of your help.
This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.