Whenever I am submitting in checkout, I am getting error "unexpected error" and the websiteMVC.log is showing "Invalid Target User Name" in App Portal.
Kindly advise us.
Shahul Hamid Bathusha
Jul 28, 2022 08:40 AM
If you would, please refrain from both opening a support case and posting to the community. It causes duplicated efforts. If you are seeing an "invalid target user" message in the logs, then it typically indicates that the target user for the request can not be found in the WD_User table. Please verify that the user account you are checking out as is in the WD_User table.
Jul 28, 2022 10:33 AM
You can also check this in the Admin UI under Site Management > Imported Users and Computers > Users. If the user isn't present, then you'll need to check your data sync settings under Site Management > Settings > Deployment > Common. If the settings look correct, check your DataSync.log, DataSyncExceptions.log, and DatabaseCalls_Error.log files to see if there are any errors syncing user data. If you don't see any errors, check your original data sources (SCCM/Active Directory).
Jul 28, 2022 10:49 AM
It is possible, but not necessarily easy. The DataSync process can read from any SQL data source. So, if you have an existing SQL data source that includes all of the information App Broker normally gets from SCCM, you can use the custom sync queries to connect to that custom data source. If you don't have an existing data source, you could write some scripts (e.g. PowerShell) to query Active Directory and write the necessary data to a custom table (either in your App Broker database or a separate database on an accessible SQL server). Then you can configure the custom sync queries to point to that custom table.
Jul 28, 2022 07:40 PM