Base solution for your next web application
Open Closed

Problem with SomeUsersCouldntBeImported->notificationPublisher->SweetAlert2 ??? #7317


User avatar
0
MondAdmin created

Hi I bumped into problem with the excelimport of users where I think there is basefunctionality to return a list of the failed recorords back to client. Just wants to check if this is some known issue or if there are something else basic I've missed before doing further troubleshooting.

On server: _  if (invalidUsers.Any())_ _            {_ _                var file = invalidUserExporter.ExportToFile(invalidUsers); _await appNotifier.SomeUsersCouldntBeImported(args.User, file.FileToken, file.FileType, file.FileName); _            }_ _            else_ _            {_ _                await appNotifier.SendMessageAsync( _                    args.User,_ _                    localizationSource.GetString("AllUsersSuccessfullyImportedFromExcel"), _                    Abp.Notifications.NotificationSeverity.Success);_ _            }_

where file is: FileDto= FileName: "InvalidUserImportList.xlsx" FileToken: "a692744a0bc9489892696fffd713332e" FileType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

On client: Problem once message is presented (no reaction on click):


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @MondAdmin

    This is an expected situtation I guess. If you click on the notification bar or the notification item on the topbar of the page, you will be downloading an excel file which includes not-imported users with exception messages for each user.

  • User Avatar
    0
    MondAdmin created

    Hi

    Yes I'm expecting an excel-file to be "notified somehow" & able to download in browser but there is nothing else after the "User import process...." disapears. I tested with Crome, IE and Edge with same negative result... Will troubleshoot further and get back if I need further help.

    BR MondAdmin

  • User Avatar
    0
    MondAdmin created

    Update!!

    Experience the identical issue with the "Download collected data" (serverfunction GdprDataPrepared) where the same mechanism is used.

    On client it's the samme message when clicking on the notification bar. "scripts.js:46218 SweetAlert2: Unknown parameter "onclick""

    Any idea what could be the problem and how to solve?

    BR MondAdmin

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core/issues/new so we can test and fix this. Please also include your AspNet Zero project type (Angular or jQuery).

    Thanks,